|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ContinuousQueryManager
function.
public interface ClientReplicableMap
This interface represents a replicable client map. A replicable client map can be a continuous replica or a snapshot replica of the server map.
If the client is a continuous replica of the server map, the data in the server will be replicated to the client continuously in an asynchronous manner.
If the client is a snapshot replica of the server map, a snapshot on the data in the server will be taken and the snapshot will be replicated to the client in an asynchronous manner. A snapshot replication is a one-time replication.
A ReplicationMapListener can be used to listen for the data changes as well as the replication lifecycle events.
ReplicationMapListener
Nested Class Summary | |
---|---|
static class |
ClientReplicableMap.Mode
Deprecated. Client Replication mode |
Field Summary | |
---|---|
static ClientReplicableMap.Mode |
CONTINUOUS_REPLICATION
Deprecated. Full replication mode. |
static ClientReplicableMap.Mode |
NONE
Deprecated. No replication mode, aka normal mode. |
static ClientReplicableMap.Mode |
SNAPSHOT_REPLICATION
Deprecated. Snapshot replication mode. |
Method Summary | |
---|---|
void |
disableClientReplication()
Deprecated. Disables the replication for this client. |
void |
enableClientReplication(ClientReplicableMap.Mode mode,
int[] partitions,
ReplicationMapListener listener)
Deprecated. Make the client map a replica of the server side map. |
ClientReplicableMap.Mode |
getReplicationMode()
Deprecated. Returns the current replication mode |
Field Detail |
---|
static final ClientReplicableMap.Mode NONE
static final ClientReplicableMap.Mode CONTINUOUS_REPLICATION
static final ClientReplicableMap.Mode SNAPSHOT_REPLICATION
Method Detail |
---|
void enableClientReplication(ClientReplicableMap.Mode mode, int[] partitions, ReplicationMapListener listener) throws ObjectGridException
When security is enabled, this method requires a ServerMapPermission
with action "replicate". Refer to ServerMapPermission
for more
permission details.
Required Client Permission: ServerMapPermission.REPLICATE
mode
- The replication mode.partitions
- The array of partition IDs represent which partitions the data should be replicated
from. If the value is null or an empty array, it indicates the data should be
replicated from all partitions.listener
- a listener to receive client replication events
IllegalArgumentException
- if mode is not CONTINUOUS_REPLICATION
or SNAPSHOT_REPLICATION
or
the map isn't currently in the mode specified or is not in NONE
mode
IllegalStateException
- if this method is invoked on a map other than a client map
ObjectGridException
- if an error occurs during processing this requestReplicationMapListener
,
CONTINUOUS_REPLICATION
,
SNAPSHOT_REPLICATION
,
getReplicationMode()
,
BackingMap.CLIENT
ClientReplicableMap.Mode getReplicationMode()
NONE
,
CONTINUOUS_REPLICATION
,
SNAPSHOT_REPLICATION
void disableClientReplication() throws ObjectGridException
When security is enabled, this method requires a ServerMapPermission
with action "replicate". Refer to ServerMapPermission
for more
permission details.
IllegalStateException
- if this method is invoked on a map other than a client map
ObjectGridException
- if an error occurs during processing this requestBackingMap.CLIENT
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |