org.almendra.janet.ade.distributor
Class NodeLoadImage

java.lang.Object
  extended by org.almendra.janet.ade.distributor.DistributorAnchorHolder
      extended by org.almendra.janet.ade.distributor.NodeLoadImage

public class NodeLoadImage
extends DistributorAnchorHolder


Field Summary
protected  boolean isEvicting
           
protected  java.lang.String nodeName
           
protected  int queueSizeCategory
           
protected  long waitingTime
           
protected  WorkstationLoadImage workstationLoadImage
           
 
Fields inherited from class org.almendra.janet.ade.distributor.DistributorAnchorHolder
anchor
 
Constructor Summary
protected NodeLoadImage()
          Creates a new NodeLoadImage object.
  NodeLoadImage(DistributorAnchor anchor, WorkstationLoadImage workstationLoadImage, java.lang.String nodeName)
          Creates a new NodeLoadImage object.
 
Method Summary
 long getAgentsCount(java.lang.String nodeName, java.lang.String capabilityPath)
           
 int getCapabilityQueueSize(LocalCapabilityPath path)
           
 int getCapabilityQueueSize(java.lang.String capabilityPath)
           
 java.lang.String getNodeName()
           
static java.util.List getNodeNames(java.util.List nodeLoadImages)
           
 int getNonJanetCPULoad()
           
 int getQueueSizeCategory()
           
 long getWaitingTime()
           
 WorkstationLoadImage getWorkstationLoadImage()
           
 boolean isAboveThreshold()
           
 boolean isBelowTreshold()
           
 boolean isEvicting()
           
 void setEvicting(boolean isEvicting)
           
 void setMinQueueSizeCategory(int qsc)
           
 void setQueueSizeCategory(int queueSizeCategory)
           
 void setWaitingTime(long waitingTime)
           
 
Methods inherited from class org.almendra.janet.ade.distributor.DistributorAnchorHolder
getAnchor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeName

protected java.lang.String nodeName

queueSizeCategory

protected int queueSizeCategory

waitingTime

protected long waitingTime

isEvicting

protected boolean isEvicting

workstationLoadImage

protected WorkstationLoadImage workstationLoadImage
Constructor Detail

NodeLoadImage

protected NodeLoadImage()
Creates a new NodeLoadImage object.


NodeLoadImage

public NodeLoadImage(DistributorAnchor anchor,
                     WorkstationLoadImage workstationLoadImage,
                     java.lang.String nodeName)
Creates a new NodeLoadImage object.

Method Detail

getQueueSizeCategory

public int getQueueSizeCategory()
Returns:
Returns the queueSizeCategory.

setQueueSizeCategory

public void setQueueSizeCategory(int queueSizeCategory)
Parameters:
queueSizeCategory - The queueSizeCategory to set.

isEvicting

public boolean isEvicting()
Returns:

setEvicting

public void setEvicting(boolean isEvicting)
Parameters:
isEvicting - The isEvicting to set.

getNodeName

public java.lang.String getNodeName()
Returns:
Returns the nodeName.

getWaitingTime

public long getWaitingTime()
Returns:
Returns the waitingTime.

setWaitingTime

public void setWaitingTime(long waitingTime)
Parameters:
waitingTime - The waitingTime to set.

getCapabilityQueueSize

public int getCapabilityQueueSize(java.lang.String capabilityPath)

getAgentsCount

public long getAgentsCount(java.lang.String nodeName,
                           java.lang.String capabilityPath)

isAboveThreshold

public boolean isAboveThreshold()
Returns:

getNonJanetCPULoad

public int getNonJanetCPULoad()
Returns:

getWorkstationLoadImage

public WorkstationLoadImage getWorkstationLoadImage()
Returns:
Returns the workstationLoadImage.

getCapabilityQueueSize

public int getCapabilityQueueSize(LocalCapabilityPath path)
Parameters:
path -
Returns:

getNodeNames

public static java.util.List getNodeNames(java.util.List nodeLoadImages)

setMinQueueSizeCategory

public void setMinQueueSizeCategory(int qsc)
Parameters:
i -

isBelowTreshold

public boolean isBelowTreshold()
Returns: