org.codehaus.wadi.replication.storage.memory
Class SyncMemoryReplicaStorage
java.lang.Object
org.codehaus.wadi.replication.storage.memory.SyncMemoryReplicaStorage
- All Implemented Interfaces:
- Lifecycle, ReplicaStorage
public class SyncMemoryReplicaStorage
- extends java.lang.Object
- implements ReplicaStorage
- Version:
- $Revision: 2469 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyncMemoryReplicaStorage
public SyncMemoryReplicaStorage(ObjectStateHandler objectStateHandler)
start
public void start()
throws java.lang.Exception
- Specified by:
start
in interface Lifecycle
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Specified by:
stop
in interface Lifecycle
- Throws:
java.lang.Exception
insert
public void insert(java.lang.Object key,
ReplicaInfo replicaInfo)
throws ReplicaKeyAlreadyExistsException
- Specified by:
insert
in interface ReplicaStorage
- Throws:
ReplicaKeyAlreadyExistsException
mergeCreate
public void mergeCreate(java.lang.Object key,
ReplicaStorageInfo createStorageInfo)
throws ReplicaKeyAlreadyExistsException
- Specified by:
mergeCreate
in interface ReplicaStorage
- Throws:
ReplicaKeyAlreadyExistsException
mergeUpdate
public void mergeUpdate(java.lang.Object key,
ReplicaStorageInfo updateStorageInfo)
throws ReplicaKeyNotFoundException
- Specified by:
mergeUpdate
in interface ReplicaStorage
- Throws:
ReplicaKeyNotFoundException
mergeDestroy
public void mergeDestroy(java.lang.Object key)
- Specified by:
mergeDestroy
in interface ReplicaStorage
mergeDestroyIfExist
public void mergeDestroyIfExist(java.lang.Object key)
- Specified by:
mergeDestroyIfExist
in interface ReplicaStorage
retrieveReplicaStorageInfo
public ReplicaStorageInfo retrieveReplicaStorageInfo(java.lang.Object key)
- Specified by:
retrieveReplicaStorageInfo
in interface ReplicaStorage
storeReplicaInfo
public boolean storeReplicaInfo(java.lang.Object key)
- Specified by:
storeReplicaInfo
in interface ReplicaStorage
Copyright © 2010. All Rights Reserved.