org.apache.uima.ducc.common.admin.event

Class RmQueriedShare

    • Field Detail

      • jobId

        long jobId
      • shareId

        long shareId
      • investmentInit

        long investmentInit
      • investmentRt

        long investmentRt
      • order

        int order
      • evicted

        boolean evicted
      • purged

        boolean purged
      • fixed

        boolean fixed
      • initialized

        boolean initialized
      • blacklisted

        boolean blacklisted
    • Constructor Detail

      • RmQueriedShare

        public RmQueriedShare(long job_id,
                              long share_id,
                              int order,
                              long investment_init,
                              long investment_rt)
    • Method Detail

      • setEvicted

        public void setEvicted(boolean v)
      • setPurged

        public void setPurged(boolean v)
      • setFixed

        public void setFixed(boolean v)
      • setInitialized

        public void setInitialized(boolean v)
      • setBlacklisted

        public void setBlacklisted()
      • getJobId

        public long getJobId()
        Returns:
        the numeric ID of the request, as assigned by the Orchestrator. Note that many shares may have the same job id, if the work is scaled-out in thecluster.
      • getId

        public long getId()
        Returns:
        the unique ID of the scheduled work, as assigned by the RM. If a job is scaled out, its processes will have the same JobId, but a different share ID as returned by this method.
      • getInvestmentInit

        public long getInvestmentInit()
        Returns:
        the initialization investment, in millliseconds. This is the amount of time spent thus far by the processes in its initialization phase.
      • getInvestmentRt

        public long getInvestmentRt()
        Returns:
        the runtime investment, in milliseconds. This is the sum of the time spent by each thread in the processes, on its current CAS. When the work represented by a CAS is completed, the thread contributes nothing to the investment until (or unless) it starts the process a new CAS. The runtime investment is a heuristic used by the RM to determine which processes would lose the least amount of work if it was preempted. Note that as of DUCC 2.0.0, a thread may request a reset of its investment, e.g. after it has checkpointed, allowing for very long-running CASs while still providing an accurate reflection of its investment.
      • getShareOrder

        public int getShareOrder()
        Returns:
        the share-order of the processes. This is the number of quantum shares occupied by each processes in the job. For example, if the quantum is 15GB a 45GB process is an order 3 process.
      • isEvicted

        public boolean isEvicted()
        Returns:
        true if the process has been preempted but the Orchestrator has not yet acknowledged that the process has exited, and false otherwise.
      • isPurged

        public boolean isPurged()
        Returns:
        true if the host the processes is running on has stopped responding, the RM has send a purge order to the Orchestrator, but has not yet received confirmation that the processes has exited, and false otherwise.
      • isFixed

        public boolean isFixed()
        Returns:
        true of the process is non-preemptable, and true otherwise.
      • isInitialized

        public boolean isInitialized()
        Returns:
        true if the process has completed its initialization phase, and false otherwise.

Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.