|
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 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. |
int |
getState()
Returns the current state of this bean. |
void |
init()
Initialize and configure the bean. |
void |
init(java.lang.Object theArg)
Initialize and configure the bean, using the specified Object. |
void |
process()
Perform the main, synchronous, standard processing function performed by this bean. |
java.lang.Object |
process(java.lang.Object theArg)
Perform the main, standard processing function performed by this bean, using the argument Object (usually passed via an AbleEvent). |
void |
quitAll()
Stop all of the bean's asynchronous threads of control. |
void |
reset()
Reset this bean. |
void |
resumeAll()
Resume all of the bean's suspended asynchronous threads of control. |
void |
suspendAll()
Temporarily suspend 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.
|
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 |