|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.ducc.rm.scheduler.Machine
public class Machine
| 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 |
|---|
public Machine(org.apache.uima.ducc.common.Node node)
| Method Detail |
|---|
public org.apache.uima.ducc.common.Node key()
public void heartbeat_down()
public void heartbeat_up()
public int get_heartbeat()
public org.apache.uima.ducc.common.NodeIdentity getNodeIdentity()
public void setNodepool(org.apache.uima.ducc.rm.scheduler.NodePool np)
public org.apache.uima.ducc.rm.scheduler.NodePool getNodepool()
public boolean isFree()
public boolean isFreeable()
public int countProcesses()
public void assignShare(Share s)
public org.apache.uima.ducc.common.Node getNode()
public String getId()
public String getIp()
public void setId(String id)
public long getMemory()
public void setMemory(long memory)
public int getShareOrder()
public int getVirtualShareOrder()
public void setShareOrder(int o)
public void setVirtualShareOrder(int o)
public void resetVirtualShareOrder()
public void removeShare(Share s)
public int countFreeShares(int order)
public int countFreeShares()
public int countFreedUpShares()
public int getInvestment()
public static String getDashes()
public static String getHeader()
public boolean matches(String s)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||