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 $

Field Summary
static ServiceName NAME
           
 
Method Summary
 void create(java.lang.Object key, Motable tmp)
           
 void destroy(java.lang.Object key)
           
 java.util.Set<java.lang.Object> getManagedReplicaInfoKeys()
           
 void insertReplicaInfo(java.lang.Object key, ReplicaInfo replicaInfo)
           
 void promoteToMaster(java.lang.Object key, ReplicaInfo replicaInfo, Motable motable, Peer blackListedSecondary)
           
 ReplicaInfo releaseReplicaInfo(java.lang.Object key, Peer newPrimary)
           
 Motable retrieveReplica(java.lang.Object key)
           
 void update(java.lang.Object key, Motable tmp)
           
 
Methods inherited from interface org.codehaus.wadi.core.Lifecycle
start, stop
 

Field Detail

NAME

static final ServiceName NAME
Method Detail

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.