public class Machine extends Object implements SchedConstants
SchedConstants.EvictionPolicy, SchedConstants.PolicyCOMPONENT_NAME, DEFAULT_INIT_STABILITY_COUNT, DEFAULT_INSTANCES, DEFAULT_MAX_INSTANCES, DEFAULT_MAX_PROCESSES, DEFAULT_NODE_METRICS_RATE, DEFAULT_OR_PUBLISH_RATE, DEFAULT_PRIORITY, DEFAULT_PROCESSES, DEFAULT_RM_PUBLISHING_SLOP, DEFAULT_SCHEDULING_RATE, DEFAULT_SCHEDULING_RATIO, DEFAULT_SHARE_WEIGHT, DEFAULT_STABILITY_COUNT| Constructor and Description |
|---|
Machine(org.apache.uima.ducc.common.Node node) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignShare(Share s) |
void |
blacklist(org.apache.uima.ducc.common.utils.id.DuccId jobid,
org.apache.uima.ducc.common.utils.id.DuccId procid,
int nshares) |
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?
|
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 |
getNodepoolDepth() |
int |
getShareOrder() |
int |
getVirtualShareOrder() |
int |
hashCode() |
void |
heartbeat_down() |
void |
heartbeat_up() |
boolean |
isBlacklisted() |
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() |
void |
whitelist(org.apache.uima.ducc.common.utils.id.DuccId procid) |
public org.apache.uima.ducc.common.Node key()
public void blacklist(org.apache.uima.ducc.common.utils.id.DuccId jobid,
org.apache.uima.ducc.common.utils.id.DuccId procid,
int nshares)
public void whitelist(org.apache.uima.ducc.common.utils.id.DuccId procid)
public boolean isBlacklisted()
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 getNodepoolDepth()
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)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.