org.apache.uima.ducc.rm.scheduler
Class Machine

java.lang.Object
  extended by org.apache.uima.ducc.rm.scheduler.Machine
All Implemented Interfaces:
SchedConstants

public class Machine
extends Object
implements SchedConstants


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.uima.ducc.rm.scheduler.SchedConstants
SchedConstants.EvictionPolicy, SchedConstants.Policy
 
Field Summary
 
Fields inherited from interface org.apache.uima.ducc.rm.scheduler.SchedConstants
COMPONENT_NAME, DEFAULT_INIT_STABILITY_COUNT, DEFAULT_INSTANCES, DEFAULT_MAX_INSTANCES, DEFAULT_MAX_PROCESSES, DEFAULT_NODE_METRICS_RATE, DEFAULT_PRIORITY, DEFAULT_PROCESSES, DEFAULT_SCHEDULING_RATE, DEFAULT_SCHEDULING_RATIO, DEFAULT_SHARE_WEIGHT, DEFAULT_STABILITY_COUNT
 
Constructor Summary
Machine(org.apache.uima.ducc.common.Node node)
           
 
Method Summary
 void assignShare(Share s)
           
 int countFreedUpShares()
          How much is left unused, plus the shares that are marked for eviction.
 int countFreeShares()
           
 int countFreeShares(int order)
          How many shares of the given order can I support without preemption? (Virtual, not quantum shares.)
 int countProcesses()
           
 boolean equals(Object o)
           
 int get_heartbeat()
           
static String getDashes()
           
static String getHeader()
           
 String getId()
           
 int getInvestment()
          A machine's investment is the sum of it's share's investments.
 String getIp()
           
 long getMemory()
           
 org.apache.uima.ducc.common.Node getNode()
           
 org.apache.uima.ducc.common.NodeIdentity getNodeIdentity()
           
 org.apache.uima.ducc.rm.scheduler.NodePool getNodepool()
           
 int getShareOrder()
           
 int getVirtualShareOrder()
           
 int hashCode()
           
 void heartbeat_down()
           
 void heartbeat_up()
           
 boolean isFree()
           
 boolean isFreeable()
          Can preemption free this machine?
 org.apache.uima.ducc.common.Node key()
          Return the hashmap key for this thing.
 boolean matches(String s)
          Does this machine match the thing specified in the input string 's'?
 void removeShare(Share s)
           
 void resetVirtualShareOrder()
           
 void setId(String id)
           
 void setMemory(long memory)
           
 void setNodepool(org.apache.uima.ducc.rm.scheduler.NodePool np)
           
 void setShareOrder(int o)
           
 void setVirtualShareOrder(int o)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Machine

public Machine(org.apache.uima.ducc.common.Node node)
Method Detail

key

public org.apache.uima.ducc.common.Node key()
Return the hashmap key for this thing.


heartbeat_down

public void heartbeat_down()

heartbeat_up

public void heartbeat_up()

get_heartbeat

public int get_heartbeat()

getNodeIdentity

public org.apache.uima.ducc.common.NodeIdentity getNodeIdentity()

setNodepool

public void setNodepool(org.apache.uima.ducc.rm.scheduler.NodePool np)

getNodepool

public org.apache.uima.ducc.rm.scheduler.NodePool getNodepool()

isFree

public boolean isFree()

isFreeable

public boolean isFreeable()
Can preemption free this machine?


countProcesses

public int countProcesses()

assignShare

public void assignShare(Share s)

getNode

public org.apache.uima.ducc.common.Node getNode()

getId

public String getId()

getIp

public String getIp()

setId

public void setId(String id)

getMemory

public long getMemory()

setMemory

public void setMemory(long memory)

getShareOrder

public int getShareOrder()

getVirtualShareOrder

public int getVirtualShareOrder()

setShareOrder

public void setShareOrder(int o)

setVirtualShareOrder

public void setVirtualShareOrder(int o)

resetVirtualShareOrder

public void resetVirtualShareOrder()

removeShare

public void removeShare(Share s)

countFreeShares

public int countFreeShares(int order)
How many shares of the given order can I support without preemption? (Virtual, not quantum shares.)


countFreeShares

public int countFreeShares()

countFreedUpShares

public int countFreedUpShares()
How much is left unused, plus the shares that are marked for eviction.


getInvestment

public int getInvestment()
A machine's investment is the sum of it's share's investments.


getDashes

public static String getDashes()

getHeader

public static String getHeader()

matches

public boolean matches(String s)
Does this machine match the thing specified in the input string 's'?


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


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