|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.AbleObject
com.ibm.able.AbleDefaultAgent
com.ibm.able.AbleRemoteDefaultAgent
The AbleRemoteDefaultAgent class provides a remotely exported
AbleDefaultAgent.
| Field Summary | |
|---|---|
protected java.lang.String |
agentAddr
The address of this agent. |
protected java.lang.String |
agentHost
The name of the host where this agent is running. |
protected java.lang.String |
agentName
The formal, remotely addressable name of the agent. |
static java.lang.String |
defaultName
The default name for an AbleRemoteDefaultAgent agent. |
protected java.rmi.Remote |
myRemoteStub
The remote stub of this agent when the agent is exported. |
| Fields inherited from class com.ibm.able.AbleDefaultAgent |
|---|
activeDataSource, eventConnections, myBeans, numEpochs, processList, processListOK, userDefinedFunctions |
| Fields inherited from class com.ibm.able.AbleObject |
|---|
changed, chgSupport, comment, dataFlowEnabled, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, properties, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
| Constructor Summary | |
|---|---|
AbleRemoteDefaultAgent()
Construct a remote ABLE agent. |
|
AbleRemoteDefaultAgent(java.lang.String theName)
Construct and export a remote agent wrapped around an AbleDefaultAgent instance with specified name. |
|
AbleRemoteDefaultAgent(java.lang.String theName,
java.lang.String theComment)
Construct and export a remote agent wrapped around an AbleDefaultAgent instance with specified name and comment. |
|
| Method Summary | |
|---|---|
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. |
void |
init()
Initializes and configures the agent. |
void |
init(java.lang.Object theArg)
Initializes and configures the agent using the specified Object. |
void |
rmiRebind()
Make this agent a distributed agent, accessible through the RMI naming registry, and able to participate in a distributed agent platform. |
void |
rmiUnbind()
Unbind this agent from the RMI naming registry so that it is no longer accessible in a distributed agent platform. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.able.AbleRemoteAgent |
|---|
addEventConnection, getDataSource, isActiveDataSource, removeEventConnection, setActiveDataSource |
| Methods inherited from interface com.ibm.able.AbleRemoteBean |
|---|
getName, getProperties, getProperty, getState, process, process, quitAll, removeProperty, reset, resumeAll, setProperties, setProperty, 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 |
| Methods inherited from interface com.ibm.able.AbleBean |
|---|
getComment, getLogger, getName, getParent, getProperties, getProperty, getState, getTraceLogger, isChanged, process, removeProperty, setChanged, setComment, setLogger, setName, setParent, setProperties, setProperty, setState, setTraceLogger |
| Methods inherited from interface com.ibm.able.AbleEventListenerManager |
|---|
addAbleEventListener, dataChanged, getAbleEventListeners, notifyAbleEventListeners, removeAbleEventListener |
| Methods inherited from interface com.ibm.able.AbleEventQueueProcessor |
|---|
processAbleEvent, processNoEventProcessingEnabledSituation, processTimerEvent |
| Methods inherited from interface com.ibm.able.AblePropertyChangeManager |
|---|
addPropertyChangeListener, addPropertyConnection, getPropertyChangeListeners, getPropertyConnectionManager, removeAllPropertyConnections, removePropertyChangeListener, removePropertyConnection |
| Methods inherited from interface com.ibm.able.AbleSerializable |
|---|
getFileName, restoreFromFile, restoreFromFile, saveToFile, saveToFile, setFileName |
| Methods inherited from interface com.ibm.able.AbleBeanContainer |
|---|
getName |
| Field Detail |
public static final java.lang.String defaultName
protected java.lang.String agentAddr
init(), and changed if
the agent migrates to another computer.
protected java.lang.String agentHost
init(), and changed if
the agent migrates to another computer.
protected java.lang.String agentName
protected java.rmi.Remote myRemoteStub
| Constructor Detail |
public AbleRemoteDefaultAgent()
throws java.rmi.RemoteException
java.rmi.RemoteException - If an error occurs.
public AbleRemoteDefaultAgent(java.lang.String theName)
throws java.rmi.RemoteException
theName - The name of this bean.
java.rmi.RemoteException - If an error occurs.
public AbleRemoteDefaultAgent(java.lang.String theName,
java.lang.String theComment)
throws java.rmi.RemoteException
theName - The name of this bean.theComment - A comment or description of this bean.
java.rmi.RemoteException - If an error occurs.| Method Detail |
public void init()
throws AbleException
AbleState.Initiated or
AbleState.Waiting.
Also, the agent's formal name and address is determined, based upon the agent's simple name and the host on which the agent is running. Therefore, it is important that the agent's simple name not be changed once init() has been called.
init in interface AbleRemoteBeaninit in class AbleDefaultAgentAbleException - If an error occurs.AbleObject.init()
public void init(java.lang.Object theArg)
throws AbleException
AbleState.Initiated or
AbleState.Waiting.
Also, the agent's formal name and address is determined, based upon the agent's simple name and the host on which the agent is running. Therefore, it is important that the agent's simple name not be changed once init() has been called.
init in interface AbleRemoteBeaninit in class AbleObjecttheArg - An Object used to initialize the bean.
In this implementation, the argument parameter is
passed on to super.
AbleException - If an error occurs.AbleObject.init()
public java.lang.String getAgentAddr()
throws AbleException
getAgentAddr in interface AbleRemoteAgentAbleException - If an error occurs.
public java.lang.String getAgentHost()
throws AbleException
getAgentHost in interface AbleRemoteAgentAbleException - If an error occurs.
public java.lang.String getAgentName()
throws AbleException
getAgentName in interface AbleRemoteAgentThe agent name may be in the form of a simple name (the same as returned by getName() ), an RMI registry name, or a JAS-type name, depending on the environment in which the agent is created and used.
AbleException - If an error occurs.
public void rmiRebind()
throws AbleException
AbleException - If an error occurs.
public void rmiUnbind()
throws AbleException
AbleException - If an error occurs.
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||