public class HttpMNode extends MultipartMNode implements MNode
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
nodeType, restClient, session
SERVICE_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, systemMetadataChanged
deserializeServiceType, getLatestRequestUrl, getNodeId, getNodeType, getSystemMetadata, getSystemMetadata, localizeInputStream, query, setNodeBaseServiceUrl, setNodeId, setNodeType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLatestRequestUrl, getNodeBaseServiceUrl, getNodeId, getNodeType, setNodeId, setNodeType
getCapabilities, ping
describe, describe, getChecksum, getChecksum, synchronizationFailed, synchronizationFailed
isAuthorized, isAuthorized, systemMetadataChanged, systemMetadataChanged
archive, archive, delete, delete, generateIdentifier, generateIdentifier
getQueryEngineDescription, 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 MultipartMNode
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
public Log getLogRecords(Session session) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
getLogRecords
in class MultipartMNode
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 MultipartMNode
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 MultipartMNode
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 MultipartMNode
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
public ObjectList listObjects(Session session) throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, ServiceFailure
listObjects
in class MultipartMNode
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 MultipartMNode
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 MultipartMNode
InvalidRequest
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_read.listObjects
public InputStream get(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
MultipartD1Node
get
in interface MNRead
get
in class MultipartMNode
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
InsufficientResources
public InputStream get(Session session, Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InsufficientResources
MultipartD1Node
get
in interface MNRead
get
in class MultipartMNode
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
InsufficientResources
public SystemMetadata getSystemMetadata(Identifier pid) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound
MultipartD1Node
getSystemMetadata
in interface MNRead
getSystemMetadata
in class MultipartMNode
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
MultipartD1Node
getSystemMetadata
in interface MNRead
getSystemMetadata
in class MultipartMNode
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
DataONE 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 MNStorage
create
in class MultipartMNode
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
create
in class MultipartMNode
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
update
in class MultipartMNode
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
update
in class MultipartMNode
IdentifierNotUnique
InsufficientResources
InvalidRequest
InvalidSystemMetadata
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
UnsupportedType
NotFound
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MN_storage.update
public boolean replicate(SystemMetadata sysmeta, NodeReference sourceNode) throws NotImplemented, ServiceFailure, NotAuthorized, InvalidRequest, InvalidToken, InsufficientResources, UnsupportedType
replicate
in interface MNReplication
replicate
in class MultipartMNode
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
replicate
in class MultipartMNode
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
getReplica
in class MultipartMNode
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
getReplica
in class MultipartMNode
InvalidToken
NotAuthorized
NotImplemented
ServiceFailure
NotFound
InsufficientResources
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNRead.getReplica
protected org.apache.http.client.config.RequestConfig setTimeouts(Integer milliseconds)
public Integer getDefaultSoTimeout()
public void setDefaultSoTimeout(Integer defaultSoTimeout)
Copyright © 2014. All Rights Reserved.