Class LocalReplicatorService
java.lang.Object
io.clonecloudstore.accessor.server.application.LocalReplicatorService
Interface of Replicator Client and Broker
-
Constructor Summary
ConstructorsConstructorDescriptionLocalReplicatorService
(LocalBrokerService localBrokerService, LocalReplicatorApiClientFactory localReplicatorApiClientFactory, LocalReplicatorOrderEmitter localReplicatorOrderEmitter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Through Broker, asks to replicate this Bucketvoid
Through Broker, asks to replicate this Objectvoid
Through Broker, asks to delete this Bucketvoid
Through Broker, asks to delete this Objectvoid
generateLocalReplicationOrder
(ReplicatorOrder replicatorOrder) Local Replication order as self repairingremoteCheckBucket
(String bucketName, String clientId, String opId) Through API Client, asks if this Bucket exists in remoteremoteCheckObject
(String bucketName, String objectName, String clientId, String opId) Through API Client, asks if this Object exists in remoteremoteGetBucket
(String bucketName, String clientId, String opId) Through API Client, asks if this Bucket exists in remoteremoteReadObject
(String bucketName, String objectName, String clientId, String targetId, String opId) Through API Client, Get this Object and Content from remote
-
Constructor Details
-
LocalReplicatorService
public LocalReplicatorService(LocalBrokerService localBrokerService, LocalReplicatorApiClientFactory localReplicatorApiClientFactory, LocalReplicatorOrderEmitter localReplicatorOrderEmitter)
-
-
Method Details
-
create
Through Broker, asks to replicate this Bucket- Throws:
CcsOperationException
-
delete
Through Broker, asks to delete this Bucket- Throws:
CcsOperationException
-
delete
public void delete(String bucketName, String objectName, String clientId) throws CcsOperationException Through Broker, asks to delete this Object- Throws:
CcsOperationException
-
create
public void create(String bucketName, String objectName, String clientId, long size, String hash) throws CcsOperationException Through Broker, asks to replicate this Object- Throws:
CcsOperationException
-
remoteCheckBucket
public ReplicatorResponse<StorageType> remoteCheckBucket(String bucketName, String clientId, String opId) throws CcsOperationException Through API Client, asks if this Bucket exists in remote- Throws:
CcsOperationException
-
remoteGetBucket
public ReplicatorResponse<AccessorBucket> remoteGetBucket(String bucketName, String clientId, String opId) throws CcsOperationException Through API Client, asks if this Bucket exists in remote- Throws:
CcsOperationException
-
remoteCheckObject
public ReplicatorResponse<StorageType> remoteCheckObject(String bucketName, String objectName, String clientId, String opId) throws CcsOperationException Through API Client, asks if this Object exists in remote- Throws:
CcsOperationException
-
remoteReadObject
public InputStreamBusinessOut<AccessorObject> remoteReadObject(String bucketName, String objectName, String clientId, String targetId, String opId) throws CcsOperationException Through API Client, Get this Object and Content from remote- Throws:
CcsOperationException
-
generateLocalReplicationOrder
Local Replication order as self repairing
-