public class MNode extends D1Node implements MNCore, MNRead, MNAuthorization, MNStorage, MNReplication, MNQuery
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
SERVICE_VERSION
Constructor and Description |
---|
MNode(String nodeBaseServiceUrl)
Construct a new client-side MNode (Member Node) object,
passing in the base url of the member node for calling its services.
|
MNode(String nodeBaseServiceUrl,
Session session)
Construct a new client-side MNode (Member Node) object,
passing in the base url of the member node for calling its services,
and the Session to use for connections to that node.
|
deserializeServiceType, getDefaultSoTimeout, getLatestRequestUrl, getNodeId, getSystemMetadata, getSystemMetadata, query, recastClientSideExceptionToServiceFailure, recastDataONEExceptionToServiceFailure, setDefaultSoTimeout, setLatestRequestUrl, setNodeBaseServiceUrl, setNodeId
public MNode(String nodeBaseServiceUrl)
nodeBaseServiceUrl
- base url for constructing service endpoints.public MNode(String nodeBaseServiceUrl, Session session)
nodeBaseServiceUrl
- base url for constructing service endpoints.session
- - the Session object passed to the CertificateManager
to be used for establishing connectionspublic String getNodeBaseServiceUrl()
D1Node
getNodeBaseServiceUrl
in class D1Node
public Date ping() throws NotImplemented, ServiceFailure, InsufficientResources
ping
in interface MNCore
ping
in class D1Node
NotImplemented
ServiceFailure
InsufficientResources
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_core.ping
public Log getLogRecords() throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
getLogRecords
in class D1Node
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
public Log getLogRecords(Session session) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
getLogRecords
in class D1Node
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
public Log getLogRecords(Date fromDate, Date toDate, Event event, String pidFilter, Integer start, Integer count) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
getLogRecords
in interface MNCore
getLogRecords
in class D1Node
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_core.getLogRecords
public Log getLogRecords(Session session, Date fromDate, Date toDate, Event event, String pidFilter, Integer start, Integer count) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
getLogRecords
in interface MNCore
getLogRecords
in class D1Node
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_core.getLogRecords
public ObjectList listObjects() throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
listObjects
in class D1Node
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
public ObjectList listObjects(Session session) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
listObjects
in class D1Node
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
public ObjectList listObjects(Date fromDate, Date toDate, ObjectFormatIdentifier formatid, Boolean replicaStatus, Integer start, Integer count) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
listObjects
in interface MNRead
listObjects
in class D1Node
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.listObjects
public ObjectList listObjects(Session session, Date fromDate, Date toDate, ObjectFormatIdentifier formatid, Boolean replicaStatus, Integer start, Integer count) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
listObjects
in interface MNRead
listObjects
in class D1Node
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.listObjects
public Node getCapabilities() throws NotImplemented, ServiceFailure
getCapabilities
in interface MNCore
NotImplemented
ServiceFailure
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_core.getCapabilities
public InputStream get(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
D1Node
get
in interface MNRead
get
in class D1Node
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
InsufficientResources
public InputStream get(Session session, Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
D1Node
get
in interface MNRead
get
in class D1Node
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
InsufficientResources
public SystemMetadata getSystemMetadata(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
D1Node
getSystemMetadata
in interface MNRead
getSystemMetadata
in class D1Node
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
DataONE API Reference (MemberNode API)
,
DataONE API Reference (CoordinatingNode API)
public SystemMetadata getSystemMetadata(Session session, Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
D1Node
getSystemMetadata
in interface MNRead
getSystemMetadata
in class D1Node
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
DataONE API Reference (MemberNode API)
,
DataONE API Reference (CoordinatingNode API)
public DescribeResponse describe(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
describe
in interface MNRead
describe
in class D1Node
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.describe
public DescribeResponse describe(Session session, Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
describe
in interface MNRead
describe
in class D1Node
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.describe
public Checksum getChecksum(Identifier pid, String checksumAlgorithm) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
getChecksum
in interface MNRead
getChecksum
in class D1Node
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.getChecksum
public Checksum getChecksum(Session session, Identifier pid, String checksumAlgorithm) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
getChecksum
in interface MNRead
getChecksum
in class D1Node
checksumAlgorithm
- - for MN implementations onlyInvalidRequest
- - for MN implementations onlyInvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.getChecksum
public boolean synchronizationFailed(SynchronizationFailed message) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
synchronizationFailed
in interface MNRead
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.synchronizationFailed
public boolean synchronizationFailed(Session session, SynchronizationFailed message) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
synchronizationFailed
in interface MNRead
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.synchronizationFailed
public boolean isAuthorized(Identifier pid, Permission action) throws ServiceFailure, InvalidRequest, InvalidToken, NotFound, NotAuthorized, NotImplemented
isAuthorized
in interface MNAuthorization
isAuthorized
in class D1Node
ServiceFailure
InvalidRequest
InvalidToken
NotFound
NotAuthorized
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_auth.isAuthorized
public boolean isAuthorized(Session session, Identifier pid, Permission action) throws ServiceFailure, InvalidRequest, InvalidToken, NotFound, NotAuthorized, NotImplemented
isAuthorized
in interface MNAuthorization
isAuthorized
in class D1Node
ServiceFailure
InvalidRequest
InvalidToken
NotFound
NotAuthorized
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_auth.isAuthorized
public Identifier generateIdentifier(String scheme, String fragment) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, InvalidRequest
generateIdentifier
in interface MNStorage
generateIdentifier
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotImplemented
InvalidRequest
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNStorage.generateIdentifier
public Identifier generateIdentifier(Session session, String scheme, String fragment) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, InvalidRequest
generateIdentifier
in interface MNStorage
generateIdentifier
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotImplemented
InvalidRequest
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNStorage.generateIdentifier
public Identifier create(Identifier pid, InputStream object, SystemMetadata sysmeta) throws IdentifierNotUnique, InsufficientResources, InvalidRequest, InvalidSystemMetadata, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, UnsupportedType
create
in interface MNStorage
IdentifierNotUnique
InsufficientResources
InvalidRequest
InvalidSystemMetadata
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
UnsupportedType
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.create
public Identifier create(Session session, Identifier pid, InputStream object, SystemMetadata sysmeta) throws IdentifierNotUnique, InsufficientResources, InvalidRequest, InvalidSystemMetadata, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, UnsupportedType
create
in interface MNStorage
IdentifierNotUnique
InsufficientResources
InvalidRequest
InvalidSystemMetadata
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
UnsupportedType
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.create
public Identifier update(Identifier pid, InputStream object, Identifier newPid, SystemMetadata sysmeta) throws IdentifierNotUnique, InsufficientResources, InvalidRequest, InvalidSystemMetadata, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, UnsupportedType, NotFound
update
in interface MNStorage
IdentifierNotUnique
InsufficientResources
InvalidRequest
InvalidSystemMetadata
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
UnsupportedType
NotFound
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.update
public Identifier update(Session session, Identifier pid, InputStream object, Identifier newPid, SystemMetadata sysmeta) throws IdentifierNotUnique, InsufficientResources, InvalidRequest, InvalidSystemMetadata, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, UnsupportedType, NotFound
update
in interface MNStorage
IdentifierNotUnique
InsufficientResources
InvalidRequest
InvalidSystemMetadata
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
UnsupportedType
NotFound
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.update
public Identifier archive(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
archive
in interface MNStorage
archive
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.archive
public Identifier archive(Session session, Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
archive
in interface MNStorage
archive
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.archive
public Identifier delete(Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
delete
in interface MNStorage
delete
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.delete
public Identifier delete(Session session, Identifier pid) throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, NotImplemented
delete
in interface MNStorage
delete
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotFound
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.delete
public boolean systemMetadataChanged(Identifier pid, long serialVersion, Date dateSystemMetadataLastModified) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, InvalidRequest
systemMetadataChanged
in interface MNAuthorization
InvalidToken
ServiceFailure
NotAuthorized
NotImplemented
InvalidRequest
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_auth.systemMetadataChanged
public boolean systemMetadataChanged(Session session, Identifier pid, long serialVersion, Date dateSystemMetadataLastModified) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, InvalidRequest
systemMetadataChanged
in interface MNAuthorization
InvalidToken
ServiceFailure
NotAuthorized
NotImplemented
InvalidRequest
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_auth.systemMetadataChanged
public boolean replicate(SystemMetadata sysmeta, NodeReference sourceNode) throws NotImplemented, ServiceFailure, NotAuthorized, InvalidRequest, InvalidToken, InsufficientResources, UnsupportedType
replicate
in interface MNReplication
NotImplemented
ServiceFailure
NotAuthorized
InvalidRequest
InvalidToken
InsufficientResources
UnsupportedType
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_replication.replicate
public boolean replicate(Session session, SystemMetadata sysmeta, NodeReference sourceNode) throws NotImplemented, ServiceFailure, NotAuthorized, InvalidRequest, InvalidToken, InsufficientResources, UnsupportedType
replicate
in interface MNReplication
NotImplemented
ServiceFailure
NotAuthorized
InvalidRequest
InvalidToken
InsufficientResources
UnsupportedType
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_replication.replicate
public InputStream getReplica(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
getReplica
in interface MNRead
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
InsufficientResources
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNRead.getReplica
public InputStream getReplica(Session session, Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
getReplica
in interface MNRead
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
InsufficientResources
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNRead.getReplica
public InputStream query(String queryEngine, String query) throws InvalidToken, ServiceFailure, NotAuthorized, InvalidRequest, NotImplemented, NotFound
query
in interface MNQuery
query
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
InvalidRequest
NotImplemented
NotFound
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNQuery.query
public QueryEngineDescription getQueryEngineDescription(String queryEngine) throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented, NotFound
getQueryEngineDescription
in interface MNQuery
getQueryEngineDescription
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotImplemented
NotFound
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNQuery.getQueryEngineDescription
public QueryEngineList listQueryEngines() throws InvalidToken, ServiceFailure, NotAuthorized, NotImplemented
listQueryEngines
in interface MNQuery
listQueryEngines
in class D1Node
InvalidToken
ServiceFailure
NotAuthorized
NotImplemented
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNQuery.listQueryEngines
Copyright © 2014. All Rights Reserved.