public class HttpMNode extends MultipartMNode implements MNode
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
nodeType, restClient, sessionSERVICE_VERSION| Constructor and Description |
|---|
HttpMNode(MultipartRestClient mrc,
String nodeBaseServiceUrl)
Construct a new client-side MultipartMNode (Member Node) object,
passing in the base url of the member node for calling its services.
|
HttpMNode(MultipartRestClient mrc,
String nodeBaseServiceUrl,
Session session)
Construct a new client-side MultipartMNode (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.
|
HttpMNode(String nodeBaseServiceUrl)
Deprecated.
|
HttpMNode(String nodeBaseServiceUrl,
Session session)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Identifier |
create(Identifier pid,
InputStream object,
SystemMetadata sysmeta)
|
Identifier |
create(Session session,
Identifier pid,
InputStream object,
SystemMetadata sysmeta)
|
InputStream |
get(Identifier pid)
Get the resource with the specified pid.
|
InputStream |
get(Session session,
Identifier pid)
Get the resource with the specified pid.
|
Integer |
getDefaultSoTimeout() |
Log |
getLogRecords()
|
Log |
getLogRecords(Date fromDate,
Date toDate,
Event event,
String pidFilter,
Integer start,
Integer count)
|
Log |
getLogRecords(Session session)
|
Log |
getLogRecords(Session session,
Date fromDate,
Date toDate,
Event event,
String pidFilter,
Integer start,
Integer count)
|
InputStream |
getReplica(Identifier pid)
|
InputStream |
getReplica(Session session,
Identifier pid)
|
SystemMetadata |
getSystemMetadata(Identifier pid)
Get the system metadata from a resource with the specified guid.
|
SystemMetadata |
getSystemMetadata(Session session,
Identifier pid)
Get the system metadata from a resource with the specified guid.
|
ObjectList |
listObjects()
|
ObjectList |
listObjects(Date fromDate,
Date toDate,
ObjectFormatIdentifier formatid,
Boolean replicaStatus,
Integer start,
Integer count)
|
ObjectList |
listObjects(Session session)
|
ObjectList |
listObjects(Session session,
Date fromDate,
Date toDate,
ObjectFormatIdentifier formatid,
Boolean replicaStatus,
Integer start,
Integer count)
|
boolean |
replicate(Session session,
SystemMetadata sysmeta,
NodeReference sourceNode)
|
boolean |
replicate(SystemMetadata sysmeta,
NodeReference sourceNode)
|
void |
setDefaultSoTimeout(Integer defaultSoTimeout) |
protected org.apache.http.client.config.RequestConfig |
setTimeouts(Integer milliseconds) |
Identifier |
update(Identifier pid,
InputStream object,
Identifier newPid,
SystemMetadata sysmeta)
|
Identifier |
update(Session session,
Identifier pid,
InputStream object,
Identifier newPid,
SystemMetadata sysmeta)
|
archive, archive, delete, delete, describe, describe, generateIdentifier, generateIdentifier, getCapabilities, getChecksum, getChecksum, getNodeBaseServiceUrl, getQueryEngineDescription, isAuthorized, isAuthorized, listQueryEngines, ping, query, synchronizationFailed, synchronizationFailed, systemMetadataChanged, systemMetadataChangeddeserializeServiceType, getLatestRequestUrl, getNodeId, getNodeType, getSystemMetadata, getSystemMetadata, localizeInputStream, query, setNodeBaseServiceUrl, setNodeId, setNodeTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLatestRequestUrl, getNodeBaseServiceUrl, getNodeId, getNodeType, setNodeId, setNodeTypegetCapabilities, pingdescribe, describe, getChecksum, getChecksum, synchronizationFailed, synchronizationFailedisAuthorized, isAuthorized, systemMetadataChanged, systemMetadataChangedarchive, archive, delete, delete, generateIdentifier, generateIdentifiergetQueryEngineDescription, listQueryEngines, query@Deprecated public HttpMNode(String nodeBaseServiceUrl)
nodeBaseServiceUrl - base url for constructing service endpoints.@Deprecated public HttpMNode(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 HttpMNode(MultipartRestClient mrc, String nodeBaseServiceUrl)
nodeBaseServiceUrl - base url for constructing service endpoints.public HttpMNode(MultipartRestClient mrc, 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 Log getLogRecords() throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
getLogRecords in class MultipartMNodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurepublic Log getLogRecords(Session session) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
getLogRecords in class MultipartMNodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurepublic Log getLogRecords(Date fromDate, Date toDate, Event event, String pidFilter, Integer start, Integer count) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
getLogRecords in interface MNCoregetLogRecords in class MultipartMNodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_core.getLogRecordspublic 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 MNCoregetLogRecords in class MultipartMNodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_core.getLogRecordspublic ObjectList listObjects() throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
listObjects in class MultipartMNodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurepublic ObjectList listObjects(Session session) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
listObjects in class MultipartMNodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurepublic ObjectList listObjects(Date fromDate, Date toDate, ObjectFormatIdentifier formatid, Boolean replicaStatus, Integer start, Integer count) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
listObjects in interface MNReadlistObjects in class MultipartMNodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.listObjectspublic 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 MNReadlistObjects in class MultipartMNodeInvalidRequestInvalidTokenNotAuthorizedNotImplementedServiceFailurehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.listObjectspublic InputStream get(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
MultipartD1Nodeget in interface MNReadget in class MultipartMNodeInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundInsufficientResourcespublic InputStream get(Session session, Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
MultipartD1Nodeget in interface MNReadget in class MultipartMNodeInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundInsufficientResourcespublic SystemMetadata getSystemMetadata(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
MultipartD1NodegetSystemMetadata in interface MNReadgetSystemMetadata in class MultipartMNodeInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundDataONE API Reference (MemberNode API),
DataONE API Reference (CoordinatingNode API)public SystemMetadata getSystemMetadata(Session session, Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
MultipartD1NodegetSystemMetadata in interface MNReadgetSystemMetadata in class MultipartMNodeInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundDataONE API Reference (MemberNode API),
DataONE API Reference (CoordinatingNode API)public Identifier create(Identifier pid, InputStream object, SystemMetadata sysmeta) throws IdentifierNotUnique, InsufficientResources, InvalidRequest, InvalidSystemMetadata, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, UnsupportedType
create in interface MNStoragecreate in class MultipartMNodeIdentifierNotUniqueInsufficientResourcesInvalidRequestInvalidSystemMetadataInvalidTokenNotAuthorizedNotImplementedServiceFailureUnsupportedTypehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.createpublic Identifier create(Session session, Identifier pid, InputStream object, SystemMetadata sysmeta) throws IdentifierNotUnique, InsufficientResources, InvalidRequest, InvalidSystemMetadata, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, UnsupportedType
create in interface MNStoragecreate in class MultipartMNodeIdentifierNotUniqueInsufficientResourcesInvalidRequestInvalidSystemMetadataInvalidTokenNotAuthorizedNotImplementedServiceFailureUnsupportedTypehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.createpublic Identifier update(Identifier pid, InputStream object, Identifier newPid, SystemMetadata sysmeta) throws IdentifierNotUnique, InsufficientResources, InvalidRequest, InvalidSystemMetadata, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, UnsupportedType, NotFound
update in interface MNStorageupdate in class MultipartMNodeIdentifierNotUniqueInsufficientResourcesInvalidRequestInvalidSystemMetadataInvalidTokenNotAuthorizedNotImplementedServiceFailureUnsupportedTypeNotFoundhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.updatepublic 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 MNStorageupdate in class MultipartMNodeIdentifierNotUniqueInsufficientResourcesInvalidRequestInvalidSystemMetadataInvalidTokenNotAuthorizedNotImplementedServiceFailureUnsupportedTypeNotFoundhttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.updatepublic boolean replicate(SystemMetadata sysmeta, NodeReference sourceNode) throws NotImplemented, ServiceFailure, NotAuthorized, InvalidRequest, InvalidToken, InsufficientResources, UnsupportedType
replicate in interface MNReplicationreplicate in class MultipartMNodeNotImplementedServiceFailureNotAuthorizedInvalidRequestInvalidTokenInsufficientResourcesUnsupportedTypehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_replication.replicatepublic boolean replicate(Session session, SystemMetadata sysmeta, NodeReference sourceNode) throws NotImplemented, ServiceFailure, NotAuthorized, InvalidRequest, InvalidToken, InsufficientResources, UnsupportedType
replicate in interface MNReplicationreplicate in class MultipartMNodeNotImplementedServiceFailureNotAuthorizedInvalidRequestInvalidTokenInsufficientResourcesUnsupportedTypehttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_replication.replicatepublic InputStream getReplica(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
getReplica in interface MNReadgetReplica in class MultipartMNodeInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundInsufficientResourceshttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNRead.getReplicapublic InputStream getReplica(Session session, Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
getReplica in interface MNReadgetReplica in class MultipartMNodeInvalidTokenNotAuthorizedNotImplementedServiceFailureNotFoundInsufficientResourceshttp://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNRead.getReplicaprotected org.apache.http.client.config.RequestConfig setTimeouts(Integer milliseconds)
public Integer getDefaultSoTimeout()
public void setDefaultSoTimeout(Integer defaultSoTimeout)
Copyright © 2014. All Rights Reserved.