org.almendra.janet.ade.distributor.interpreters
Class WorkloadDistributionInterpreter

java.lang.Object
  extended by org.almendra.janet.ade.distributor.interpreters.DistributorInterpreter
      extended by org.almendra.janet.ade.distributor.interpreters.WorkloadDistributionInterpreter
All Implemented Interfaces:
IInterpreter

public class WorkloadDistributionInterpreter
extends DistributorInterpreter
implements IInterpreter


Field Summary
 
Fields inherited from class org.almendra.janet.ade.distributor.interpreters.DistributorInterpreter
anchor
 
Constructor Summary
WorkloadDistributionInterpreter()
          Creates a new WorkloadDistributionInterpreter object.
 
Method Summary
 StringVector commandNames()
           
 void execute(CommandAccessor cmdAccessor)
           
protected  AgentPath getCapabilityWithShortestQueueAtLeastOne(DistributorAnchor anchor, AgentPath originAgentPath, LeastLoadedNodeDecisionInformation decisionInformation)
           
protected  java.lang.String getLeastLoadedNodeName(DistributorAnchor anchor, java.util.List leastLoadedNodesForCapability, LeastLoadedNodeDecisionInformation decisionInformation)
           
protected  void logPanicCannotFindAnyAgent(CommandAccessor cmdAccessor)
           
 java.util.List registeredLogEvents()
           
protected  java.lang.String setSelectNodeName(DistributorAnchor anchor, java.lang.String selectedNodeName)
           
 
Methods inherited from class org.almendra.janet.ade.distributor.interpreters.DistributorInterpreter
getDistributorAnchor, getLoadAdministratorAgent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkloadDistributionInterpreter

public WorkloadDistributionInterpreter()
Creates a new WorkloadDistributionInterpreter object.

Method Detail

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()