com.agentfactory.service.ams
Class AgentManagementService
java.lang.Object
java.util.Observable
com.agentfactory.platform.service.PlatformService
com.agentfactory.service.ams.AgentManagementService
- All Implemented Interfaces:
- java.util.Observer
public class AgentManagementService
- extends PlatformService
- implements java.util.Observer
Implementation of the FIPA HTTP Message Transport Service.
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgentManagementService
public AgentManagementService()
init
public void init(PlatformServiceDescriptor descriptor,
PlatformServiceManager manager)
- Overrides:
init in class PlatformService
registerAgent
public void registerAgent(AgentDescription description)
deregisterAgent
public void deregisterAgent(AgentDescription description)
getAgentNames
public java.util.ArrayList getAgentNames()
getUnregisteredAgents
public java.util.ArrayList getUnregisteredAgents()
removeUnregisteredAgent
public void removeUnregisteredAgent(AgentDescription agentD)
getLocalAgents
public java.util.ArrayList getLocalAgents()
modify
public boolean modify(java.lang.String oldName,
java.lang.String newName)
search
public AgentDescription search(java.lang.String name)
resumeAgent
public boolean resumeAgent(java.lang.String name)
suspendAgent
public boolean suspendAgent(java.lang.String name)
terminateAgent
public boolean terminateAgent(java.lang.String name)
terminatePlatform
public void terminatePlatform()
getAgent
public Agent getAgent(java.lang.String name)
getPortAuthorityAgent
public java.lang.String getPortAuthorityAgent()
setPortAuthorityAgent
public void setPortAuthorityAgent(java.lang.String portAuthorityAgent)
update
public void update(java.util.Observable o,
java.lang.Object arg)
- Specified by:
update in interface java.util.Observer
notify
public void notify(java.lang.String message)
bind
public void bind(Agent agent)
- Specified by:
bind in class PlatformService
modifyBinding
public void modifyBinding(java.lang.String oldName,
java.lang.String name)
- Specified by:
modifyBinding in class PlatformService
start
public void start()
- Specified by:
start in class PlatformService
unbind
public void unbind(Agent agent)
- Specified by:
unbind in class PlatformService
createAgent
public Agent createAgent(java.lang.String inName,
java.lang.String inType)
- Create an agent based on an agent description file.
Currently, agents can be created from .afapl code files. .agt is no
longer directly supported.
- Parameters:
inName - -
A String Object. The name of the agent that is to be
constructed.soutinType - -
A String Object, the name of the code file that is to be used
to construct the agent.
- Throws:
AgentConfigurationException - -
thrown if there is a problem constructing an agent.
createAgentFromDesign
public Agent createAgentFromDesign(java.lang.String inName,
java.lang.String agentDesign,
java.lang.String inType)