|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Replicator
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.
| Field Summary | |
|---|---|
static java.lang.String |
CF_PREFIX
|
static java.lang.String |
JVM_ID_KEY
|
| Method Summary | |
|---|---|
java.util.Map |
get(java.io.Serializable key)
Return a node-mapped replicated data. |
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. |
boolean |
remove(java.io.Serializable key)
Updates the replication maps across the cluster by removing the data corresponding to the give key. |
| Field Detail |
|---|
static final java.lang.String CF_PREFIX
static final java.lang.String JVM_ID_KEY
| Method Detail |
|---|
void put(java.io.Serializable key,
java.io.Serializable data)
throws java.lang.Exception
java.lang.Exception
java.util.Map get(java.io.Serializable key)
throws java.lang.Exception
java.lang.Exception
boolean remove(java.io.Serializable key)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||