public interface LoadServiceSlice
extends jade.core.Service.Slice
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE_GET_AID_LIST
The Constant SERVICE_GET_AID_LIST.
|
static java.lang.String |
SERVICE_GET_AID_LIST_SENSOR
The Constant SERVICE_GET_AID_LIST_SENSOR.
|
static java.lang.String |
SERVICE_GET_AUTO_REMOTE_CONTAINER_CONFIG
The Constant SERVICE_GET_AUTO_REMOTE_CONTAINER_CONFIG.
|
static java.lang.String |
SERVICE_GET_CONTAINER_DESCRIPTION
The Constant SERVICE_GET_CONTAINER_DESCRIPTION.
|
static java.lang.String |
SERVICE_GET_LOCATION
The Constant SERVICE_GET_LOCATION.
|
static java.lang.String |
SERVICE_GET_NEW_CONTAINER_2_WAIT_4_STATUS
The Constant SERVICE_GET_NEW_CONTAINER_2_WAIT_4_STATUS.
|
static java.lang.String |
SERVICE_MEASURE_LOAD
The Constant SERVICE_MEASURE_LOAD.
|
static java.lang.String |
SERVICE_PUT_CONTAINER_DESCRIPTION
The Constant SERVICE_PUT_CONTAINER_DESCRIPTION.
|
static java.lang.String |
SERVICE_REQUEST_AVAILABLE_MACHINES |
static java.lang.String |
SERVICE_SET_AGENT_MIGRATION
The Constant SERVICE_SET_AGENT_MIGRATION.
|
static java.lang.String |
SERVICE_SET_DEFAULTS_4_REMOTE_CONTAINER_CONFIG
The Constant SERVICE_SET_DEFAULTS_4_REMOTE_CONTAINER_CONFIG.
|
static java.lang.String |
SERVICE_SET_THRESHOLD_LEVEL
The Constant SERVICE_SET_THRESHOLD_LEVEL.
|
static java.lang.String |
SERVICE_START_AGENT
The Constant SERVICE_START_AGENT.
|
static java.lang.String |
SERVICE_START_NEW_REMOTE_CONTAINER
The Constant SERVICE_START_NEW_REMOTE_CONTAINER.
|
static java.lang.String |
SERVICE_THREAD_MEASUREMENT_PUT |
static java.lang.String |
SERVICE_THREAD_MEASUREMENT_REQUEST
The Constant SERVICE_REQUEST_THREAD_MEASUREMENT.
|
Modifier and Type | Method and Description |
---|---|
jade.core.AID[] |
getAIDList()
Gets the array of all available agents in a (remote) container.
|
jade.core.AID[] |
getAIDListSensorAgents()
Gets the array of all available agents in a (remote) container, which are connected to the SimulationService.
|
RemoteContainerConfig |
getAutoRemoteContainerConfig()
Provides the Default remote container configuration.
|
ClientRemoteContainerReply |
getCRCReply()
Gets the remotely available ClientRemoteContainerReply.
|
jade.core.Location |
getLocation()
Gets the Location of a container.
|
LoadInformation.Container2Wait4 |
getNewContainer2Wait4Status(java.lang.String containerName2Wait4)
Returns the current status of the requested new container.
|
void |
mainRequestAvailableMachines()
Main request available machines.
|
PlatformLoad |
measureLoad()
Will measure the load of a (remote) container.
|
void |
putContainerDescription(ClientRemoteContainerReply crcReply)
Sends a container description to the node.
|
void |
putThreadProtocol(ThreadProtocol threadProtocol)
Put thread protocol.
|
void |
requestThreadMeasurement(long timestamp)
Requests the thread measurement from the contacted container.
|
void |
setAgentMigration(java.util.Vector<LoadAgentMap.AID_Container> transferAgents)
Sets the Vector of agents, which have to migrate to a different container/location.
|
void |
setDefaults4RemoteContainerConfig(RemoteContainerConfig remoteConfig)
Sets the defaults for a remote container configuration.
|
void |
setThresholdLevels(LoadThresholdLevels thresholdLevels)
Sets the threshold levels at a remote container.
|
boolean |
startAgent(java.lang.String nickName,
java.lang.String agentClassName,
java.lang.Object[] args)
Start an agent.
|
java.lang.String |
startNewRemoteContainer(RemoteContainerConfig remoteConfig)
Start new remote container.
|
static final java.lang.String SERVICE_START_AGENT
static final java.lang.String SERVICE_START_NEW_REMOTE_CONTAINER
static final java.lang.String SERVICE_SET_DEFAULTS_4_REMOTE_CONTAINER_CONFIG
static final java.lang.String SERVICE_GET_AUTO_REMOTE_CONTAINER_CONFIG
static final java.lang.String SERVICE_GET_NEW_CONTAINER_2_WAIT_4_STATUS
static final java.lang.String SERVICE_PUT_CONTAINER_DESCRIPTION
static final java.lang.String SERVICE_GET_CONTAINER_DESCRIPTION
static final java.lang.String SERVICE_GET_LOCATION
static final java.lang.String SERVICE_SET_THRESHOLD_LEVEL
static final java.lang.String SERVICE_MEASURE_LOAD
static final java.lang.String SERVICE_GET_AID_LIST
static final java.lang.String SERVICE_GET_AID_LIST_SENSOR
static final java.lang.String SERVICE_SET_AGENT_MIGRATION
static final java.lang.String SERVICE_THREAD_MEASUREMENT_REQUEST
static final java.lang.String SERVICE_THREAD_MEASUREMENT_PUT
static final java.lang.String SERVICE_REQUEST_AVAILABLE_MACHINES
boolean startAgent(java.lang.String nickName, java.lang.String agentClassName, java.lang.Object[] args) throws jade.core.IMTPException
nickName
- the local name of the agentagentClassName
- the agent classargs
- the serializable Object array of the start start argumentsjade.core.IMTPException
- the IMTPExceptionjava.lang.String startNewRemoteContainer(RemoteContainerConfig remoteConfig) throws jade.core.IMTPException
remoteConfig
- the RemoteContainerConfigjade.core.IMTPException
- the IMTPExceptionvoid setDefaults4RemoteContainerConfig(RemoteContainerConfig remoteConfig) throws jade.core.IMTPException
remoteConfig
- the ontology instance for the default remote container configurationjade.core.IMTPException
- the iMTP exceptionRemoteContainerConfig getAutoRemoteContainerConfig() throws jade.core.IMTPException
jade.core.IMTPException
- the IMTPExceptionLoadInformation.Container2Wait4 getNewContainer2Wait4Status(java.lang.String containerName2Wait4) throws jade.core.IMTPException
containerName2Wait4
- the new containers namejade.core.IMTPException
- the IMTPExceptionLoadInformation.Container2Wait4
void putContainerDescription(ClientRemoteContainerReply crcReply) throws jade.core.IMTPException
crcReply
- the ClientRemoteContainerReplyjade.core.IMTPException
- the IMTPExceptionClientRemoteContainerReply getCRCReply() throws jade.core.IMTPException
jade.core.IMTPException
- the IMTPExceptionjade.core.Location getLocation() throws jade.core.IMTPException
jade.core.IMTPException
- the IMTPExceptionLocation
void setThresholdLevels(LoadThresholdLevels thresholdLevels) throws jade.core.IMTPException
thresholdLevels
- the new threshold levelsjade.core.IMTPException
- the IMTPExceptionLoadThresholdLevels
PlatformLoad measureLoad() throws jade.core.IMTPException
jade.core.IMTPException
- the IMTPExceptionjade.core.AID[] getAIDList() throws jade.core.IMTPException
jade.core.IMTPException
- the IMTPExceptionjade.core.AID[] getAIDListSensorAgents() throws jade.core.IMTPException
jade.core.IMTPException
- the IMTPExceptionSimulationService
,
ServiceActuator
void setAgentMigration(java.util.Vector<LoadAgentMap.AID_Container> transferAgents) throws jade.core.IMTPException
transferAgents
- the new agent migrationjade.core.IMTPException
- the IMTPExceptionvoid requestThreadMeasurement(long timestamp) throws jade.core.IMTPException
jade.core.IMTPException
- the IMTP exceptionvoid putThreadProtocol(ThreadProtocol threadProtocol) throws jade.core.IMTPException
threadProtocol
- the thread protocoljade.core.IMTPException
- the IMTP exceptionvoid mainRequestAvailableMachines() throws jade.core.IMTPException
jade.core.IMTPException
- the IMTP exception