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

Class RmQueriedMachine

    • Field Detail

      • nodepoolId

        String nodepoolId
      • memory

        long memory
      • order

        int order
      • blacklisted

        boolean blacklisted
      • online

        boolean online
      • responsive

        boolean responsive
    • Constructor Detail

      • RmQueriedMachine

        public RmQueriedMachine(String name,
                                String nodepoolId,
                                long memory,
                                int order,
                                boolean blacklisted)
    • Method Detail

      • setOffline

        public void setOffline()
      • setUnresponsive

        public void setUnresponsive()
      • getShares

        public List<RmQueriedShare> getShares()
        Return the list of shares scheduled to this host.
        Returns:
        The list of shares.
      • getId

        public String getId()
        Returns the name of the machin.
        Returns:
        the name of the machine.
      • getMemory

        public long getMemory()
        Returns the amount of RAM in KB (kilobytes) on the machine.
        Returns:
        the amount of RAM in the machine, in kilobytes.
      • getShareOrder

        public int getShareOrder()
        Returns the share order of the machine.
        Returns:
        the number of quantum shares supported by the machine. For example, if the share quantum is 15GB, a 48GB machine is of order 3.
      • isBlacklisted

        public boolean isBlacklisted()
        Returns whether the machine is blacklisted.
        Returns:
        whether the host contains blacklisted processes. A blacklisted process is one whose characteristics no longer match the machine. For example, after reconfiguration, this may be an illegal assignemnt for the request. Until such time as the request is (externally) removed, the RM has to account for the space by maintaining records on the blacklisted work. If a machine is blacklisted, it is not schedulable for new work.
      • isOnline

        public boolean isOnline()
        Returns whether the machine is varied online.
        Returns:
        true if the machine is varied online and false otherwise. Note that a machine might "not varied offline", but not responsive (not sending heartbeats).
      • isResponsive

        public boolean isResponsive()
        Indicates whether the machine is sending heartbeats.
        Returns:
        true if the machine is sending heartbeats. Note that a machine might be sending heartbeats but be varied offline or blacklisted, and hence not schedulable.

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