|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The AbleRemoteAgent interface defines a remote AbleAgent, an AbleRemoteBean container which can contain other AbleBeans. The AbleRemoteAgent interface provides methods to manipulate contained beans, maintain a registry of user-definable methods on those beans, and determine the agent's address, host name, and input structure, and maintain a registry of user-definable methods on those beans it contains. Implementors must provide:
Method Summary | |
---|---|
void |
addEventConnection(AbleEventConnection theConnection)
Adds an event connection. |
java.lang.String |
getAgentAddr()
Returns the address of this agent. |
java.lang.String |
getAgentHost()
Returns the name of the host on which this agent is running. |
java.lang.String |
getAgentName()
Returns the current formal agent name of this agent. |
AbleDataSource |
getDataSource()
Returns the current active DataSource from the contained beans, null if none. |
boolean |
isActiveDataSource()
Indicates if this agent has an active data source. |
void |
removeEventConnection(AbleEventConnection theConnection)
Removes an event connection. |
void |
setActiveDataSource(boolean theState)
Sets the flag indicating if this agent contains an active data source. |
Methods inherited from interface com.ibm.able.AbleRemoteBean |
---|
getName, getState, init, init, process, process, quitAll, reset, resumeAll, suspendAll |
Methods inherited from interface com.ibm.able.AbleRemoteEventListener |
---|
handleAbleEvent |
Methods inherited from interface com.ibm.able.AbleEventListenerRemoteManager |
---|
addAbleEventListener, notifyAbleEventListeners, removeAbleEventListener |
Methods inherited from interface com.ibm.able.AbleBeanRemoteContainer |
---|
addBean, containsBean, containsBean, getBean, getBeans, removeAllBeans, removeBean, removeBean |
Methods inherited from interface com.ibm.able.AbleUserDefinedFunctionRemoteManager |
---|
addUserDefinedFunction, containsUserDefinedFunction, getUserDefinedFunction, getUserDefinedFunctions, invokeUserDefinedFunction, removeUserDefinedFunction, setUserDefinedFunctions |
Method Detail |
public java.lang.String getAgentAddr() throws java.rmi.RemoteException
java.rmi.RemoteException
- If an error occurs.public java.lang.String getAgentHost() throws java.rmi.RemoteException
java.rmi.RemoteException
- If an error occurs.public java.lang.String getAgentName() throws java.rmi.RemoteException
The agent name may be in the form of a simple name
(the same as returned by AbleRemoteBean.getName()
), an RMI registry
name, or a JAS-type name, depending on the environment
in which the agent is created and used.
The value is never expected to be null and will be the
empty string if the agent is not initialized.
java.rmi.RemoteException
- If an error occurs.public void setActiveDataSource(boolean theState) throws java.rmi.RemoteException
theState
- The state is true
if the agent contains
an active data source, and false
otherwise.java.rmi.RemoteException
- If an error occurs.public boolean isActiveDataSource() throws java.rmi.RemoteException
true
if agent contains an active data source;
false
otherwise.java.rmi.RemoteException
- If an error occurs.public AbleDataSource getDataSource() throws java.rmi.RemoteException
java.rmi.RemoteException
- If an error occurs.public void addEventConnection(AbleEventConnection theConnection) throws java.rmi.RemoteException
theConnection
- The connection to add.java.rmi.RemoteException
- If an error occurs.public void removeEventConnection(AbleEventConnection theConnection) throws java.rmi.RemoteException
theConnection
- The connection to remove.java.rmi.RemoteException
- If an error occurs.
The implementor may choose to throw
an exception if the connection does not exist.
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |