public abstract class MasterSlaveDiscoveryAgent extends DiscoveryAgent
| Modifier and Type | Field and Description |
|---|---|
protected LeaseTimeHandler |
locals
The local slaves.
|
protected LeaseTimeHandler |
remotes
The local slaves.
|
agent, allcodecs, defaultcodecs, delay, excludes, fast, includes, killed, received_self, receiver, root, sender, started, timer| Constructor and Description |
|---|
MasterSlaveDiscoveryAgent() |
| Modifier and Type | Method and Description |
|---|---|
jadex.commons.future.IFuture<java.lang.Void> |
agentKilled()
Called just before the agent is removed from the platform.
|
protected abstract java.lang.String |
createMasterId()
Create the master id.
|
void |
executeBody()
Execute the functional body of the agent.
|
LeaseTimeHandler |
getLocals()
Get the locals.
|
protected abstract java.lang.String |
getMyMasterId()
Get the local master id.
|
LeaseTimeHandler |
getRemotes()
Get the remotes.
|
protected abstract boolean |
isMaster()
Test if is master.
|
agentCreated, createAwarenessInfo, createAwarenessInfo, createReceiveHandler, createSendHandler, decodeObject, doWaitFor, encodeObject, getAllCodecs, getClockTime, getDefaultCodecs, getDelay, getExcludes, getIncludes, getMicroAgent, getReceiver, getRoot, getSender, initNetworkRessource, isFast, isKilled, isStarted, republish, setDelay, setExcludes, setFast, setIncludes, setKilled, setRoot, setStarted, terminateNetworkRessourceprotected LeaseTimeHandler locals
protected LeaseTimeHandler remotes
public void executeBody()
executeBody in class DiscoveryAgentpublic LeaseTimeHandler getLocals()
public LeaseTimeHandler getRemotes()
protected abstract boolean isMaster()
protected abstract java.lang.String createMasterId()
createMasterId in class DiscoveryAgentprotected abstract java.lang.String getMyMasterId()
public jadex.commons.future.IFuture<java.lang.Void> agentKilled()
DiscoveryAgentagentKilled in class DiscoveryAgent