public class LoadMeasureAgent
extends jade.core.Agent
Modifier and Type | Class and Description |
---|---|
class |
LoadMeasureAgent.MonitorBehaviour
This TickerBehaviour measures, displays (if wanted) and stores the measured load values.
|
Modifier and Type | Field and Description |
---|---|
java.util.Vector<java.lang.String> |
loadContainer2Display
The used (dead or alive) nodes of the system, ordered ascending.
|
java.util.Hashtable<java.lang.String,java.lang.Float> |
loadContainerBenchmarkResults
The benchmark value /results in the different container.
|
java.util.Hashtable<java.lang.String,LoadMerger> |
loadJVM4Balancing
The currently running JVM's for this platform.
|
java.util.Hashtable<java.lang.String,LoadMerger> |
loadMachines4Balancing
The currently running physical machines for this platform.
|
java.lang.Integer |
loadThresholdExceededOverAll
The indicator if thresholds exceeded over all.
|
LoadThresholdLevels |
loadThresholdLevels
The currently configured threshold levels.
|
Constructor and Description |
---|
LoadMeasureAgent() |
Modifier and Type | Method and Description |
---|---|
void |
addThreadProtocol(ThreadProtocol tp)
Adds a thread protocol to the information of the agent.
|
DistributionSetup |
getDistributionSetup()
Returns the
DistributionSetup of the current Project if available. |
DynamicLoadBalancingBase |
getLoadBalancing()
Gets the currently use dynamic load balancing algorithm.
|
java.util.Hashtable<java.lang.String,PlatformLoad> |
getLoadContainer()
Returns the current
PlatformLoad by container name. |
LoadAgentMap |
getLoadContainerAgentMap()
Return the current LoadAgentMap.
|
java.util.Hashtable<java.lang.String,jade.core.Location> |
getLoadContainerLoactions()
Returns the current Location information in the different container.
|
double |
getLoadCycleTime()
Return the average cycle time of a sequential simulation.
|
LoadServiceHelper |
getLoadServiceHelper()
Returns the
LoadServiceHelper . |
LoadMeasureAgent.MonitorBehaviour |
getMonitorBehaviour()
Returns the
LoadMeasureAgent.MonitorBehaviour . |
long |
getMonitorBehaviourTickingPeriod()
Returns the monitor behaviour ticking period.
|
Project |
getProject()
Returns the current
Project . |
SimulationSetup |
getSimulationSetup()
Returns the current
SimulationSetup if available. |
ThreadMonitor |
getThreadDialog()
Gets the thread dialog.
|
ThreadInfoStorage |
getThreadInfoStorage()
Gets the thread info storage.
|
ThreadMeasureBehaviour |
getThreadMeasureBehaviour()
Gets the thread measure behaviour.
|
java.lang.Long |
getThreadMeasurementTickingPeriod()
Returns the thread measurement ticking period.
|
ThreadProtocolVector |
getThreadProtocolVector()
Returns the current
ThreadProtocol . |
boolean |
isDynLoadBalancaingStillActivated() |
boolean |
isMonitorSaveLoad()
Checks if the current LoadAgent has to the save the load information in a file.
|
void |
reStartThreadMeasurement(boolean oneShotBehaviour)
(Re-)Starts the thread measurement.
|
void |
setDynLoadBalancaingStillActivated(boolean dynLoadBalancaingStillActivated) |
void |
setLoadBalancing(DynamicLoadBalancingBase loadBalancing)
Sets the instance of the dynamic load balancing algorithm to use.
|
void |
setLoadContainer(java.util.Hashtable<java.lang.String,PlatformLoad> newLoadContainer)
Sets the current
PlatformLoad by container name. |
void |
setLoadContainerAgentMap(LoadAgentMap newLoadAgentMap)
Return the current LoadAgentMap.
|
void |
setLoadContainerLoactions(java.util.Hashtable<java.lang.String,jade.core.Location> newLoadContainerLocation)
Sets the load container loaction's.
|
void |
setLoadCycleTime(double newLoadCycleTime)
Sets the average cycle time of a sequential simulation.
|
void |
setMonitorBehaviourTickingPeriod(long monitorBehaviourTickingPeriod)
Sets the monitor behaviour ticking period.
|
void |
setMonitorSaveLoad(boolean monitorSaveLoad)
Sets the current LoadAgent to save or not save the load information in a file.
|
void |
setThreadDialog(ThreadMonitor threadDialog)
Sets the thread dialog.
|
void |
setThreadMeasurementTickingPeriod(long threadMeasurementTickingPeriod)
Sets the thread measurement ticking period.
|
protected void |
setup() |
protected void |
takeDown() |
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, createMessageQueue, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAID, getAMS, getArguments, getBehavioursCnt, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getExecutedBehavioursCnt, getHap, getHelper, getLocalName, getName, getO2AInterface, getO2AObject, getPostedMessagesCnt, getProperty, getQueueSize, getReceivedMessagesCnt, getState, here, isAlive, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, registerO2AInterface, removeBehaviour, removeTimer, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setO2AManager, setQueueSize, waitUntilStarted, write
public java.lang.Integer loadThresholdExceededOverAll
public LoadThresholdLevels loadThresholdLevels
public java.util.Vector<java.lang.String> loadContainer2Display
public java.util.Hashtable<java.lang.String,java.lang.Float> loadContainerBenchmarkResults
public java.util.Hashtable<java.lang.String,LoadMerger> loadJVM4Balancing
public java.util.Hashtable<java.lang.String,LoadMerger> loadMachines4Balancing
protected void setup()
setup
in class jade.core.Agent
protected void takeDown()
takeDown
in class jade.core.Agent
public LoadMeasureAgent.MonitorBehaviour getMonitorBehaviour()
LoadMeasureAgent.MonitorBehaviour
.public long getMonitorBehaviourTickingPeriod()
public void setMonitorBehaviourTickingPeriod(long monitorBehaviourTickingPeriod)
monitorBehaviourTickingPeriod
- the monitorBehaviourTickingPeriod to setpublic void setLoadBalancing(DynamicLoadBalancingBase loadBalancing)
loadBalancing
- the new load balancingpublic DynamicLoadBalancingBase getLoadBalancing()
public SimulationSetup getSimulationSetup()
SimulationSetup
if available.public DistributionSetup getDistributionSetup()
DistributionSetup
of the current Project
if available.public LoadServiceHelper getLoadServiceHelper()
LoadServiceHelper
.public double getLoadCycleTime()
public void setLoadCycleTime(double newLoadCycleTime)
newLoadCycleTime
- the new load cycle timepublic LoadAgentMap getLoadContainerAgentMap()
public void setLoadContainerAgentMap(LoadAgentMap newLoadAgentMap)
newLoadAgentMap
- the new load container agent mappublic java.util.Hashtable<java.lang.String,PlatformLoad> getLoadContainer()
PlatformLoad
by container name.public void setLoadContainer(java.util.Hashtable<java.lang.String,PlatformLoad> newLoadContainer)
PlatformLoad
by container name.newLoadContainer
- the new load containerpublic java.util.Hashtable<java.lang.String,jade.core.Location> getLoadContainerLoactions()
public void setLoadContainerLoactions(java.util.Hashtable<java.lang.String,jade.core.Location> newLoadContainerLocation)
newLoadContainerLocation
- the new load container locationpublic boolean isDynLoadBalancaingStillActivated()
public void setDynLoadBalancaingStillActivated(boolean dynLoadBalancaingStillActivated)
public boolean isMonitorSaveLoad()
public void setMonitorSaveLoad(boolean monitorSaveLoad)
monitorSaveLoad
- true, if the information should be savedpublic ThreadMeasureBehaviour getThreadMeasureBehaviour()
public void reStartThreadMeasurement(boolean oneShotBehaviour)
oneShotBehaviour
- set true if you want to do a single measurement, otherwise falsepublic void setThreadMeasurementTickingPeriod(long threadMeasurementTickingPeriod)
threadMeasurementTickingPeriod
- the new thread measurement ticking periodpublic java.lang.Long getThreadMeasurementTickingPeriod()
public void addThreadProtocol(ThreadProtocol tp)
tp
- the thread protocolpublic ThreadProtocolVector getThreadProtocolVector()
ThreadProtocol
.public ThreadInfoStorage getThreadInfoStorage()
public void setThreadDialog(ThreadMonitor threadDialog)
threadDialog
- the new thread dialogpublic ThreadMonitor getThreadDialog()