public interface MicroAgentContainer extends MicroAgentServer
Modifier and Type | Method and Description |
---|---|
void |
addContainerEventListener(ContainerEventListener l)
Registers a listener which receives microagent add/remove events.
|
MicroAgentID |
addMicroAgent(MicroAgent micro,
java.lang.String[] args)
Adds a microagent to the container.
|
void |
removeContainerEventListener(ContainerEventListener l)
Removes a listener
|
void |
removeMicroAgent(MicroAgent micro)
Used to remove a microagent from the container.
|
describe, getMicroAgentIDs, getMicroAgentIDs, getMicroAgentIDs, groupOp, invoke, shutdown, subscribe
MicroAgentID addMicroAgent(MicroAgent micro, java.lang.String[] args) throws MicroAgentException
Once this method is called, the microagent's initializeMicroAgent() method is called first. If the microagent is also a ServiceMicroAgent, then its setMicroAgentContainer() method will be called next. This is followed by a call to the describeMicroAgent() method. Finally, once the microagent has been successfully loaded into the container, its thisMicroAgentAdded() method will be called.
micro
- The microagent to addargs
- Arguments to be passed to the microagent upon registrationMicroAgentException
- If the microagent could not be added.void removeMicroAgent(MicroAgent micro) throws MicroAgentException
micro
- The microagent to remove. This must be the same MicroAgent
object that was used to add the microagent in the addMicroAgent
method.MicroAgentException
- If the microagent could not be removedvoid addContainerEventListener(ContainerEventListener l)
l
- The listenervoid removeContainerEventListener(ContainerEventListener l)
l
- The listenerCopyright © 2000-2019 TIBCO Inc. All Rights Reserved.