|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Replicator This is used for replicating arbitrary data across a cluster. Data is structured as follows: There is an arbitrary key to identify the data, e.g. the connection factory name Then, for that key, there is an entry for each node id.
Method Summary | |
java.util.Map |
get(java.io.Serializable key)
Return a node-mapped replicated data. |
FailoverMapper |
getFailoverMapper()
TODO - this method doesn't belong here... |
void |
put(java.io.Serializable key,
java.io.Serializable data)
Broadcast data across the cluster, updating replication maps on all nodes, including the local node. |
void |
registerListener(ReplicationListener listener)
|
boolean |
remove(java.io.Serializable key)
Updates the replication maps across the cluster by removing the data corresponding to the give key. |
void |
unregisterListener(ReplicationListener listener)
|
Method Detail |
public void put(java.io.Serializable key, java.io.Serializable data) throws java.lang.Exception
java.lang.Exception
public java.util.Map get(java.io.Serializable key) throws java.lang.Exception
java.lang.Exception
public boolean remove(java.io.Serializable key) throws java.lang.Exception
java.lang.Exception
public void registerListener(ReplicationListener listener)
public void unregisterListener(ReplicationListener listener)
public FailoverMapper getFailoverMapper()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |