Package jade.core
Interface AgentManager
-
- All Known Implementing Classes:
MainContainerImpl
public interface AgentManagerThis interface provides Agent Life Cycle management services to the platform AMS.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAgentManager.ListenerThis callback interface is implemented by the AMS in order to be notified of significant platform-level events (e.g.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate(AID agentID)voidaddListener(AgentManager.Listener l)voidaddTool(AID tool)AID[]agentNames()AID[]agentTools()voidamsDeregister(AMSAgentDescription dsc)voidamsModify(AMSAgentDescription dsc)voidamsRegister(AMSAgentDescription dsc)ListamsSearch(AMSAgentDescription template, long maxResults)ListcontainerAgents(ContainerID cid)ContainerID[]containerIDs()ListcontainerMTPs(ContainerID cid)voidcopy(AID agentID, Location where, String newAgentName)voidcreate(String agentName, String className, Object[] arguments, ContainerID cid, JADEPrincipal owner, Credentials initialCredentials, JADEPrincipal requesterPrincipal, Credentials requesterCredentials)Create an agent on the given container.voiddebugOff(AID debuggerName, List toBeDebugged)voiddebugOn(AID debuggerName, List toBeDebugged)AMSAgentDescriptiongetAMSDescription(AID agentID)ContainerIDgetContainerID(AID agentID)MTPDescriptorinstallMTP(String address, ContainerID cid, String className)voidkill(AID agentID, JADEPrincipal requesterPrincipal, Credentials requesterCredentials)voidkillContainer(ContainerID cid, JADEPrincipal requesterPrincipal, Credentials requesterCredentials)voidmove(AID agentID, Location where)voidremoveListener(AgentManager.Listener l)voidremoveTool(AID tool)voidshutdownPlatform(JADEPrincipal requesterPrincipal, Credentials requesterCredentials)voidsniffOff(AID snifferName, List toBeSniffed)voidsniffOn(AID snifferName, List toBeSniffed)voidsuspend(AID agentID)voidtake(AID agentID, String username, byte[] password)voiduninstallMTP(String address, ContainerID cid)voidwait(AID agentID, String password)voidwake(AID agentID, String password)
-
-
-
Method Detail
-
addListener
void addListener(AgentManager.Listener l)
-
removeListener
void removeListener(AgentManager.Listener l)
-
containerIDs
ContainerID[] containerIDs()
-
agentNames
AID[] agentNames()
-
containerMTPs
List containerMTPs(ContainerID cid) throws NotFoundException
- Throws:
NotFoundException
-
containerAgents
List containerAgents(ContainerID cid) throws NotFoundException
- Throws:
NotFoundException
-
addTool
void addTool(AID tool)
-
removeTool
void removeTool(AID tool)
-
agentTools
AID[] agentTools()
-
getContainerID
ContainerID getContainerID(AID agentID) throws NotFoundException
- Throws:
NotFoundException
-
getAMSDescription
AMSAgentDescription getAMSDescription(AID agentID) throws NotFoundException
- Throws:
NotFoundException
-
create
void create(String agentName, String className, Object[] arguments, ContainerID cid, JADEPrincipal owner, Credentials initialCredentials, JADEPrincipal requesterPrincipal, Credentials requesterCredentials) throws UnreachableException, JADESecurityException, NotFoundException, NameClashException
Create an agent on the given container. If the container-name is null then the agent is created on the main-container.- Throws:
NotFoundException- if the passed container does not existUnreachableException- if the container is unreachableJADESecurityException- if this action is not authorizedNameClashException
-
kill
void kill(AID agentID, JADEPrincipal requesterPrincipal, Credentials requesterCredentials) throws NotFoundException, UnreachableException, JADESecurityException
-
suspend
void suspend(AID agentID) throws NotFoundException, UnreachableException, JADESecurityException
-
activate
void activate(AID agentID) throws NotFoundException, UnreachableException, JADESecurityException
-
wait
void wait(AID agentID, String password) throws NotFoundException, UnreachableException
-
wake
void wake(AID agentID, String password) throws NotFoundException, UnreachableException
-
move
void move(AID agentID, Location where) throws NotFoundException, UnreachableException, JADESecurityException
-
copy
void copy(AID agentID, Location where, String newAgentName) throws NotFoundException, NameClashException, UnreachableException, JADESecurityException
-
shutdownPlatform
void shutdownPlatform(JADEPrincipal requesterPrincipal, Credentials requesterCredentials) throws JADESecurityException
- Throws:
JADESecurityException
-
killContainer
void killContainer(ContainerID cid, JADEPrincipal requesterPrincipal, Credentials requesterCredentials) throws NotFoundException, UnreachableException, JADESecurityException
-
installMTP
MTPDescriptor installMTP(String address, ContainerID cid, String className) throws NotFoundException, UnreachableException, MTPException
-
uninstallMTP
void uninstallMTP(String address, ContainerID cid) throws NotFoundException, UnreachableException, MTPException
-
take
void take(AID agentID, String username, byte[] password) throws NotFoundException, UnreachableException, JADESecurityException
-
sniffOn
void sniffOn(AID snifferName, List toBeSniffed) throws NotFoundException, UnreachableException
-
sniffOff
void sniffOff(AID snifferName, List toBeSniffed) throws NotFoundException, UnreachableException
-
debugOn
void debugOn(AID debuggerName, List toBeDebugged) throws NotFoundException, UnreachableException
-
debugOff
void debugOff(AID debuggerName, List toBeDebugged) throws NotFoundException, UnreachableException
-
amsRegister
void amsRegister(AMSAgentDescription dsc) throws AlreadyRegistered, JADESecurityException
-
amsDeregister
void amsDeregister(AMSAgentDescription dsc) throws NotRegistered, JADESecurityException
- Throws:
NotRegisteredJADESecurityException
-
amsModify
void amsModify(AMSAgentDescription dsc) throws NotRegistered, NotFoundException, UnreachableException, JADESecurityException
-
amsSearch
List amsSearch(AMSAgentDescription template, long maxResults)
-
-