org.codehaus.wadi.replication.manager
Interface ReplicationManager

All Superinterfaces:
Lifecycle
All Known Implementing Classes:
NoOpReplicationManager, SyncReplicationManager

public interface ReplicationManager
extends Lifecycle

Version:
$Revision: 2388 $

Field Summary
static ServiceName NAME
           
 
Method Summary
 void create(java.lang.Object key, java.lang.Object tmp)
           
 void destroy(java.lang.Object key)
           
 java.util.Set<java.lang.Object> getManagedReplicaInfoKeys()
           
 void insertReplicaInfo(java.lang.Object key, ReplicaInfo replicaInfo)
           
 ReplicaInfo releaseReplicaInfo(java.lang.Object key, org.codehaus.wadi.group.Peer newPrimary)
           
 java.lang.Object retrieveReplica(java.lang.Object key)
           
 void update(java.lang.Object key, java.lang.Object 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,
            java.lang.Object tmp)
            throws ReplicationKeyAlreadyExistsException,
                   InternalReplicationManagerException
Throws:
ReplicationKeyAlreadyExistsException
InternalReplicationManagerException

update

void update(java.lang.Object key,
            java.lang.Object tmp)
            throws ReplicationKeyNotFoundException,
                   InternalReplicationManagerException
Throws:
ReplicationKeyNotFoundException
InternalReplicationManagerException

destroy

void destroy(java.lang.Object key)

retrieveReplica

java.lang.Object retrieveReplica(java.lang.Object key)
                                 throws ReplicationKeyNotFoundException,
                                        InternalReplicationManagerException
Throws:
ReplicationKeyNotFoundException
InternalReplicationManagerException

insertReplicaInfo

void insertReplicaInfo(java.lang.Object key,
                       ReplicaInfo replicaInfo)
                       throws ReplicationKeyAlreadyExistsException
Throws:
ReplicationKeyAlreadyExistsException

releaseReplicaInfo

ReplicaInfo releaseReplicaInfo(java.lang.Object key,
                               org.codehaus.wadi.group.Peer newPrimary)
                               throws ReplicationKeyNotFoundException
Throws:
ReplicationKeyNotFoundException

getManagedReplicaInfoKeys

java.util.Set<java.lang.Object> getManagedReplicaInfoKeys()


Copyright © 2008. All Rights Reserved.