public interface CNReplication
Modifier and Type | Method and Description |
---|---|
boolean |
deleteReplicationMetadata(Session session,
Identifier pid,
NodeReference nodeId,
long serialVersion) |
boolean |
isNodeAuthorized(Session session,
Subject targetNodeSubject,
Identifier pid) |
boolean |
setReplicationPolicy(Session session,
Identifier pid,
ReplicationPolicy policy,
long serialVersion)
Deprecated.
use CNCore.updateSystemMetadata()
|
boolean |
setReplicationStatus(Session session,
Identifier pid,
NodeReference nodeRef,
ReplicationStatus status,
BaseException failure) |
boolean |
updateReplicationMetadata(Session session,
Identifier pid,
Replica replicaMetadata,
long serialVersion) |
boolean setReplicationStatus(Session session, Identifier pid, NodeReference nodeRef, ReplicationStatus status, BaseException failure) throws ServiceFailure, NotImplemented, InvalidToken, NotAuthorized, InvalidRequest, NotFound
ServiceFailure
NotImplemented
InvalidToken
NotAuthorized
InvalidRequest
NotFound
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNReplication.setReplicationStatus
boolean setReplicationPolicy(Session session, Identifier pid, ReplicationPolicy policy, long serialVersion) throws NotImplemented, NotFound, NotAuthorized, ServiceFailure, InvalidRequest, InvalidToken, VersionMismatch
NotImplemented
NotFound
NotAuthorized
ServiceFailure
InvalidRequest
InvalidToken
VersionMismatch
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNReplication.setReplicationPolicy
boolean isNodeAuthorized(Session session, Subject targetNodeSubject, Identifier pid) throws NotImplemented, NotAuthorized, InvalidToken, ServiceFailure, NotFound, InvalidRequest
NotImplemented
NotAuthorized
InvalidToken
ServiceFailure
NotFound
InvalidRequest
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNReplication.isNodeAuthorized
boolean updateReplicationMetadata(Session session, Identifier pid, Replica replicaMetadata, long serialVersion) throws NotImplemented, NotAuthorized, ServiceFailure, NotFound, InvalidRequest, InvalidToken, VersionMismatch
NotImplemented
NotAuthorized
ServiceFailure
NotFound
InvalidRequest
InvalidToken
VersionMismatch
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNReplication.updateReplicationMetadata
boolean deleteReplicationMetadata(Session session, Identifier pid, NodeReference nodeId, long serialVersion) throws InvalidToken, InvalidRequest, ServiceFailure, NotAuthorized, NotFound, NotImplemented, VersionMismatch
InvalidToken
InvalidRequest
ServiceFailure
NotAuthorized
NotFound
NotImplemented
VersionMismatch
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNReplication.deleteReplicationMetadata
Copyright © 2020. All Rights Reserved.