|
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 | |||||||||||
The AbleRemoteBean interface represents the unique behaviors required
for remote AbleBeans.
It extends interfaces required for event processing
as well as providing specific methods for its name, state
parentage, and methods which result in state changes such as init(),
suspendAll() and reset().
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the name of this bean. |
java.util.Map |
getProperties()
Returns the entire current collection of properties. |
java.lang.String |
getProperty(java.lang.String theName)
Gets the property associated with the specified name. |
int |
getState()
Returns the current state of this bean. |
void |
init()
Initializes and configures the bean. |
void |
init(java.lang.Object theArg)
Initializes and configures the bean, using the specified Object. |
void |
process()
Performs the main, synchronous, standard processing function performed by this bean. |
java.lang.Object |
process(java.lang.Object theArg)
Performs the main, standard processing function performed by this bean, using the argument Object (usually passed via an AbleEvent). |
void |
quitAll()
Stops all of the bean's asynchronous threads of control. |
java.lang.String |
removeProperty(java.lang.String theName)
Removes the property and the specified name from the collection of properties. |
void |
reset()
Resets this bean. |
void |
resumeAll()
Resumes all of the bean's suspended asynchronous threads of control. |
void |
setProperties(java.util.Map theProperties)
Sets the entire collection of properties to the specified collection. |
void |
setProperty(java.lang.String theName,
java.lang.String theValue)
Sets the specified property to the specified value. |
void |
suspendAll()
Suspends, temporarily, all of the bean's asynchronous threads of control. |
| Methods inherited from interface com.ibm.able.AbleRemoteEventListener |
|---|
handleAbleEvent |
| Methods inherited from interface com.ibm.able.AbleEventListenerRemoteManager |
|---|
addAbleEventListener, notifyAbleEventListeners, removeAbleEventListener |
| Method Detail |
public java.lang.String getName()
throws java.rmi.RemoteException
java.rmi.RemoteException - If an error occurs.
public int getState()
throws java.rmi.RemoteException
AbleState value.
java.rmi.RemoteException - If an error occurs.
public void init()
throws java.rmi.RemoteException
AbleEventQueueRemoteManager.startEnabledEventProcessing()
to start a new thread for asynchronous or timer event processing.
The bean's state changes to AbleState.Initiated or
AbleState.Waiting.
A bean implementing AbleBeanRemoteContainer may
choose to call this method on each bean it contains and
accumulate errors from each contained bean.
java.rmi.RemoteException - If an error occurs.
public void init(java.lang.Object theArg)
throws java.rmi.RemoteException
AbleEventQueueRemoteManager.startEnabledEventProcessing()
to start a new thread for asynchronous or timer event processing.
The bean's state changes to AbleState.Initiated or
AbleState.Waiting.
A bean implementing AbleBeanContainer may choose to
call this method on each bean it contains and accumulate errors
from each contained bean.
theArg - An Object used to initialize the bean, typically by
getting parameters of interest.
java.rmi.RemoteException - If an error occurs.
public void reset()
throws java.rmi.RemoteException
AbleBean.reset().
A bean implementing AbleBeanRemoteContainer should
reset each bean it contains and accumulate errors from each
contained bean.
java.rmi.RemoteException - If an error occurs.
public void process()
throws java.rmi.RemoteException
A bean implementing AbleBeanRemoteContainer may
choose to call process on each bean it contains and accumulate
errors from each contained bean.
java.rmi.RemoteException - If an error occurs.
public java.lang.Object process(java.lang.Object theArg)
throws java.rmi.RemoteException
A bean implementing AbleBeanRemoteContainer may
choose to call process on each bean it contains and accumulate
errors from each contained bean.
theArg - An Object used to provide data for the bean derive a
result.
java.rmi.RemoteException - If an error occurs.
public void quitAll()
throws java.rmi.RemoteException
AbleState.Unknown.
If the bean is a simple AbleBean, this method just calls
AbleEventQueueRemoteManager.quitEnabledEventProcessing().
A bean implementing AbleBeanRemoteContainer should call quitAll
on each bean it contains and accumulate errors from each contained bean.
java.rmi.RemoteException - If an error occurs.
public void suspendAll()
throws java.rmi.RemoteException
AbleState.Suspended.
If the bean is a simple AbleBean, this method just calls
AbleEventQueueRemoteManager.suspendEnabledEventProcessing().
A bean implementing AbleBeanRemoteContainer should call
this method on each bean it contains and accumulate errors from
each contained bean.
java.rmi.RemoteException - If an error occurs.
public void resumeAll()
throws java.rmi.RemoteException
AbleState.Suspended to
AbleState.Waiting.
If the bean is a simple AbleBean, this method just calls
AbleEventQueueRemoteManager.resumeEnabledEventProcessing().
A bean implementing AbleBeanRemoteContainer should call
this method on each bean it contains and accumulate errors from
each contained bean.
java.rmi.RemoteException - If an error occurs.
public void setProperty(java.lang.String theName,
java.lang.String theValue)
throws java.rmi.RemoteException
theName - The name of the property to be placed into the
collection of properties.theValue - The value associated with the specified property.
java.rmi.RemoteException
public java.lang.String getProperty(java.lang.String theName)
throws java.rmi.RemoteException
theName - The name of the property to be returned.
java.rmi.RemoteException
public java.lang.String removeProperty(java.lang.String theName)
throws java.rmi.RemoteException
theName - The name of the property to be removed.
java.rmi.RemoteException
public void setProperties(java.util.Map theProperties)
throws java.rmi.RemoteException
theProperties - The set of properties that will replace the current
collection of properties. If this parameter is
specified as null, the call is ignored; that
is, the underlying data member is not changed.
Otherwise, the underlying data member is changed to
point to the specified collection.
Keys and values of the properties collection must be confined to the String data type.
java.rmi.RemoteException
public java.util.Map getProperties()
throws java.rmi.RemoteException
java.rmi.RemoteException
|
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 | |||||||||||