org.codehaus.wadi.replication.manager
Interface ReplicationManager
- All Superinterfaces:
- Lifecycle
- All Known Implementing Classes:
- LoggingReplicationManager, NoOpReplicationManager, SyncReplicationManager
public interface ReplicationManager
- extends Lifecycle
- Version:
- $Revision: 2540 $
NAME
static final ServiceName NAME
create
void create(java.lang.Object key,
Motable tmp)
throws ReplicationKeyAlreadyExistsException,
InternalReplicationManagerException
- Throws:
ReplicationKeyAlreadyExistsException
InternalReplicationManagerException
update
void update(java.lang.Object key,
Motable tmp)
throws ReplicationKeyNotFoundException,
InternalReplicationManagerException
- Throws:
ReplicationKeyNotFoundException
InternalReplicationManagerException
destroy
void destroy(java.lang.Object key)
retrieveReplica
Motable retrieveReplica(java.lang.Object key)
throws InternalReplicationManagerException
- Throws:
InternalReplicationManagerException
promoteToMaster
void promoteToMaster(java.lang.Object key,
ReplicaInfo replicaInfo,
Motable motable,
Peer blackListedSecondary)
throws InternalReplicationManagerException
- Throws:
InternalReplicationManagerException
insertReplicaInfo
void insertReplicaInfo(java.lang.Object key,
ReplicaInfo replicaInfo)
throws ReplicationKeyAlreadyExistsException
- Throws:
ReplicationKeyAlreadyExistsException
releaseReplicaInfo
ReplicaInfo releaseReplicaInfo(java.lang.Object key,
Peer newPrimary)
getManagedReplicaInfoKeys
java.util.Set<java.lang.Object> getManagedReplicaInfoKeys()
Copyright © 2011. All Rights Reserved.