public class ReplicationService extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
ReplicationService() |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteReplicationMetadata(org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v1.NodeReference targetNode)
Delete the replica entry for the target node using the CN router URL
rather than the local CN via D1Client.
|
org.dataone.service.types.v1.NodeReference |
determineReplicationSourceNode(org.dataone.service.types.v2.SystemMetadata sysMeta) |
org.dataone.service.types.v2.SystemMetadata |
getSystemMetadata(org.dataone.service.types.v1.Identifier identifier) |
void |
requestQueuedReplication(org.dataone.service.types.v1.Identifier identifier,
org.dataone.service.types.v1.NodeReference targetNode)
Handles moving a 'queued' replication object into 'requested' state.
|
boolean |
setReplicaToCompleted(org.dataone.service.types.v1.Identifier identifier,
org.dataone.service.types.v1.NodeReference targetNode) |
boolean |
setReplicaToRequested(org.dataone.service.types.v1.Identifier identifier,
org.dataone.service.types.v1.NodeReference targetNode) |
boolean |
updateReplicationMetadata(org.dataone.service.types.v1.Identifier pid,
org.dataone.service.types.v1.Replica replicaMetadata)
Update the replica metadata against the CN router address rather than the
local CN address.
|
public void requestQueuedReplication(org.dataone.service.types.v1.Identifier identifier, org.dataone.service.types.v1.NodeReference targetNode)
identifier
- targetNode
- public boolean deleteReplicationMetadata(org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v1.NodeReference targetNode)
pid
- - the identifier of the object system metadata being modifiedtargetNode
- - the node id of the replica target being deletedserialVersion
- - the serialVersion of the system metadata being operated onpublic boolean setReplicaToRequested(org.dataone.service.types.v1.Identifier identifier, org.dataone.service.types.v1.NodeReference targetNode)
public boolean setReplicaToCompleted(org.dataone.service.types.v1.Identifier identifier, org.dataone.service.types.v1.NodeReference targetNode)
public org.dataone.service.types.v2.SystemMetadata getSystemMetadata(org.dataone.service.types.v1.Identifier identifier) throws org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotFound
public org.dataone.service.types.v1.NodeReference determineReplicationSourceNode(org.dataone.service.types.v2.SystemMetadata sysMeta)
public boolean updateReplicationMetadata(org.dataone.service.types.v1.Identifier pid, org.dataone.service.types.v1.Replica replicaMetadata)
session
- pid
- replicaMetadata
- Copyright © 2018. All rights reserved.