|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DistributedReadOnlyBeanService
DistributedReadOnlyBeanService defines the methods that can be used to implement a distributed ReadOnly beans. An instance of ReadOnlyBeanRefreshEventHandler is used to handle requests received from other server instances. An instance of DistributedReadOnlyBeanNotifier is used to notify other server instances.
ReadOnlyBeanRefreshEventHandler| Method Summary | |
|---|---|
void |
addReadOnlyBeanRefreshEventHandler(long ejbID,
java.lang.ClassLoader loader,
ReadOnlyBeanRefreshEventHandler handler)
Called from ReadOnlyBeanContainer to register itself as a ReadOnlyBeanRefreshEventHandler. |
void |
handleRefreshAllRequest(long ejbID)
Called from the DistributedReadOnlyBeanNotifier when it receives a (remote) request to refresh all RO beans |
void |
handleRefreshRequest(long ejbID,
byte[] pkData)
Called from the DistributedReadOnlyBeanNotifier when it receives a (remote) request to refresh a RO bean |
void |
notifyRefresh(long ejbID,
java.lang.Object pk)
Called by the container after it has refreshed the RO bean |
void |
notifyRefreshAll(long ejbID)
Called by the container after it has refreshed all RO beans |
void |
removeReadOnlyBeanRefreshEventHandler(long ejbID)
Called from ReadOnlyBeanContainer to unregister itself as a ReadOnlyBeanRefreshEventHandler. |
void |
setDistributedReadOnlyBeanNotifier(DistributedReadOnlyBeanNotifier notifier)
This is typically done during appserver startup time. |
| Method Detail |
|---|
void setDistributedReadOnlyBeanNotifier(DistributedReadOnlyBeanNotifier notifier)
notifier - the notifier who is responsible for notifying refresh
event(s) to other instances
void addReadOnlyBeanRefreshEventHandler(long ejbID,
java.lang.ClassLoader loader,
ReadOnlyBeanRefreshEventHandler handler)
ejbID - the ejbID that uniquely identifies the containerloader - the class loader that will be used to serialize/de-serialize
the primary keyhandler - The handler that is responsible for
correctly refresing the state of a RO beanvoid removeReadOnlyBeanRefreshEventHandler(long ejbID)
ejbID -
void notifyRefresh(long ejbID,
java.lang.Object pk)
ejbID - the ejbID that uniquely identifies the containerpk - the primary key to be refreshedvoid notifyRefreshAll(long ejbID)
ejbID - the ejbID that uniquely identifies the container
void handleRefreshRequest(long ejbID,
byte[] pkData)
ejbID - the ejbID that uniquely identifies the containerpk - the primary key to be refreshedvoid handleRefreshAllRequest(long ejbID)
ejbID - the ejbID that uniquely identifies the container
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||