org.almendra.janet.ade.distributor.interpreters
Class WorkloadDistributionInterpreter
java.lang.Object
org.almendra.janet.ade.distributor.interpreters.DistributorInterpreter
org.almendra.janet.ade.distributor.interpreters.WorkloadDistributionInterpreter
- All Implemented Interfaces:
- IInterpreter
public class WorkloadDistributionInterpreter
- extends DistributorInterpreter
- implements IInterpreter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkloadDistributionInterpreter
public WorkloadDistributionInterpreter()
- Creates a new
WorkloadDistributionInterpreter
object.
execute
public void execute(CommandAccessor cmdAccessor)
- Specified by:
execute
in interface IInterpreter
logPanicCannotFindAnyAgent
protected void logPanicCannotFindAnyAgent(CommandAccessor cmdAccessor)
- Parameters:
logger
- path
-
getCapabilityWithShortestQueueAtLeastOne
protected AgentPath getCapabilityWithShortestQueueAtLeastOne(DistributorAnchor anchor,
AgentPath originAgentPath,
LeastLoadedNodeDecisionInformation decisionInformation)
- Parameters:
agentPath
-
- Returns:
getLeastLoadedNodeName
protected java.lang.String getLeastLoadedNodeName(DistributorAnchor anchor,
java.util.List leastLoadedNodesForCapability,
LeastLoadedNodeDecisionInformation decisionInformation)
- Parameters:
anchor
- leastLoadedNodesForCapability
-
setSelectNodeName
protected java.lang.String setSelectNodeName(DistributorAnchor anchor,
java.lang.String selectedNodeName)
- Parameters:
anchor
- leastLoadedNodesForCapability
-
- Returns:
commandNames
public StringVector commandNames()
- Specified by:
commandNames
in interface IInterpreter
registeredLogEvents
public java.util.List registeredLogEvents()