public interface LoadServiceHelper
extends jade.core.ServiceHelper
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SERVICE_NAME
The name of this service.
|
| Modifier and Type | Method and Description |
|---|---|
RemoteContainerConfig |
getAutoRemoteContainerConfig()
Provides the default remote container configuration.
|
ClientAvailableMachinesReply |
getAvailableMachines()
Gets the available machines.
|
double |
getAvgCycleTime()
Provides the average cycle time for a simulation.
|
LoadInformation.NodeDescription |
getContainerDescription(java.lang.String containerName)
Gets the NodeDescription of a specified container.
|
java.util.Hashtable<java.lang.String,LoadInformation.NodeDescription> |
getContainerDescriptions()
Gets the NodeDescription of all involved nodes.
|
PlatformLoad |
getContainerLoad(java.lang.String containerName)
Returns the load of a specified container.
|
java.util.Hashtable<java.lang.String,PlatformLoad> |
getContainerLoadHash()
Returns the load of all connected container.
|
jade.core.Location |
getContainerLocation(java.lang.String containerName)
Gets the container location of a specified container.
|
java.util.Hashtable<java.lang.String,jade.core.Location> |
getContainerLocations()
Provides the container locations of all connected container.
|
java.util.Vector<java.lang.String> |
getContainerNames()
Returns the list of all available container.
|
LoadAgentMap |
getLoadAgentMap()
Returns the current LoadAgentMap.
|
ClientRemoteContainerReply |
getLocalCRCReply()
Returns the locally saved ClientRemoteContainerReply.
|
void |
putAvailableMachines(ClientAvailableMachinesReply availableMachines)
Puts the available machines to the load information.
|
void |
putContainerDescription(ClientRemoteContainerReply crcReply)
Broadcasts a container description to all involved node, if the ClientRemoteContainerReply is valid.
|
void |
requestAvailableMachines()
Requests at the main container for the available machines.
|
void |
requestThreadMeasurements(LoadMeasureAgent loadMeasureAgent)
Requests all involved JVMs to do the thread measurements.
|
void |
setAgentMigration(java.util.Vector<LoadAgentMap.AID_Container> transferAgents)
Sets the agent migration.
|
void |
setAndSaveCRCReplyLocal(ClientRemoteContainerReply crcReply)
Sets and save the local ClientRemoteContainerReply.
|
void |
setDefaults4RemoteContainerConfig(RemoteContainerConfig remoteContainerConfig)
Sets the default remote container configuration.
|
void |
setSimulationCycleStartTimeStamp()
Sets System.currentTimeMillis() as an indicator for the start of an new simulations cycle.
|
void |
setThresholdLevels(LoadThresholdLevels currThresholdLevels)
Sets the threshold levels for all involved container.
|
boolean |
startAgent(java.lang.String agentName,
java.lang.String agentClassName,
java.lang.Object[] args,
java.lang.String containerName)
Start an agent on a specified location.
|
java.lang.String |
startNewRemoteContainer()
Will start a new remote container.
|
java.lang.String |
startNewRemoteContainer(RemoteContainerConfig remoteConfig)
Will start a new remote container.
|
LoadInformation.Container2Wait4 |
startNewRemoteContainerStaus(java.lang.String containerName)
Returns the current status of the requested new container.
|
static final java.lang.String SERVICE_NAME
boolean startAgent(java.lang.String agentName,
java.lang.String agentClassName,
java.lang.Object[] args,
java.lang.String containerName)
throws jade.core.ServiceException
agentName - the local name for the agentagentClassName - the class of the agentargs - the serializable Object array for the start argumentscontainerName - the name of the container, where the agent should startjade.core.ServiceException - the service exceptionjava.lang.String startNewRemoteContainer()
throws jade.core.ServiceException
jade.core.ServiceException - the service exceptionjava.lang.String startNewRemoteContainer(RemoteContainerConfig remoteConfig) throws jade.core.ServiceException
remoteConfig - the remote container configurationjade.core.ServiceException - the service exceptionRemoteContainerConfig getAutoRemoteContainerConfig() throws jade.core.ServiceException
jade.core.ServiceException - the service exceptionvoid setDefaults4RemoteContainerConfig(RemoteContainerConfig remoteContainerConfig) throws jade.core.ServiceException
remoteContainerConfig - the new default remote container configurationjade.core.ServiceException - the service exceptionLoadInformation.Container2Wait4 startNewRemoteContainerStaus(java.lang.String containerName) throws jade.core.ServiceException
containerName - the new containers namejade.core.ServiceException - the service exceptionLoadInformation.Container2Wait4java.util.Vector<java.lang.String> getContainerNames()
throws jade.core.ServiceException
jade.core.ServiceException - the service exceptiondouble getAvgCycleTime()
throws jade.core.ServiceException
jade.core.ServiceException - the service exceptionsetSimulationCycleStartTimeStamp()void setSimulationCycleStartTimeStamp()
throws jade.core.ServiceException
jade.core.ServiceException - the service exceptiongetAvgCycleTime()void setThresholdLevels(LoadThresholdLevels currThresholdLevels) throws jade.core.ServiceException
currThresholdLevels - the new threshold levelsjade.core.ServiceException - the service exceptionjava.util.Hashtable<java.lang.String,PlatformLoad> getContainerLoadHash() throws jade.core.ServiceException
jade.core.ServiceException - the service exceptionPlatformLoad getContainerLoad(java.lang.String containerName) throws jade.core.ServiceException
containerName - the container namejade.core.ServiceException - the service exceptionjava.util.Hashtable<java.lang.String,jade.core.Location> getContainerLocations()
throws jade.core.ServiceException
jade.core.ServiceException - the service exceptionjade.core.Location getContainerLocation(java.lang.String containerName)
throws jade.core.ServiceException
containerName - the container namejade.core.ServiceException - the service exceptionvoid setAndSaveCRCReplyLocal(ClientRemoteContainerReply crcReply) throws jade.core.ServiceException
crcReply - the ClientRemoteContainerReply to savejade.core.ServiceException - the service exceptionClientRemoteContainerReply getLocalCRCReply() throws jade.core.ServiceException
jade.core.ServiceException - the service exceptionvoid putContainerDescription(ClientRemoteContainerReply crcReply) throws jade.core.ServiceException
crcReply - the crc replyjade.core.ServiceException - the service exceptionjava.util.Hashtable<java.lang.String,LoadInformation.NodeDescription> getContainerDescriptions() throws jade.core.ServiceException
jade.core.ServiceException - the service exceptionLoadInformation.NodeDescriptionLoadInformation.NodeDescription getContainerDescription(java.lang.String containerName) throws jade.core.ServiceException
containerName - the container namejade.core.ServiceException - the service exceptionLoadInformation.NodeDescriptionLoadAgentMap getLoadAgentMap() throws jade.core.ServiceException
jade.core.ServiceException - the service exceptionLoadAgentMapvoid setAgentMigration(java.util.Vector<LoadAgentMap.AID_Container> transferAgents) throws jade.core.ServiceException
transferAgents - the agents, which has to be migratedjade.core.ServiceException - the service exceptionvoid requestThreadMeasurements(LoadMeasureAgent loadMeasureAgent) throws jade.core.ServiceException
loadMeasureAgent - the load measure agentjade.core.ServiceException - the service exceptionvoid requestAvailableMachines()
throws jade.core.ServiceException
jade.core.ServiceException - the service exceptionvoid putAvailableMachines(ClientAvailableMachinesReply availableMachines) throws jade.core.ServiceException
availableMachines - the available machinesjade.core.ServiceException - the service exceptionClientAvailableMachinesReply getAvailableMachines() throws jade.core.ServiceException
jade.core.ServiceException - the service exception