gov.nasa.pds.registry.resource
Class ReplicationResource
java.lang.Object
gov.nasa.pds.registry.resource.ReplicationResource
public class ReplicationResource
- extends Object
This resource is responsible for managing replication requests.
- Author:
- pramirez
Constructor Summary |
ReplicationResource(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
gov.nasa.pds.registry.service.RegistryService registryService)
|
Method Summary |
gov.nasa.pds.registry.model.ReplicationReport |
getReplicationReport()
Retrieves information about an ongoing replication request. |
javax.ws.rs.core.Response |
performReplication(String registryUrl,
DateParam lastModified,
String objectType,
String packageGuid,
String packageName)
Requests a replication of a remote registry contents to be initiated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplicationResource
public ReplicationResource(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
gov.nasa.pds.registry.service.RegistryService registryService)
performReplication
public javax.ws.rs.core.Response performReplication(String registryUrl,
DateParam lastModified,
String objectType,
String packageGuid,
String packageName)
- Requests a replication of a remote registry contents to be initiated.
- Parameters:
registryUrl
- to replicate contents fromlastModified
- time to constrain which registry objects are relevant to
replicate. This time is inclusive. If set to null all will be
pulled.objectType
- to replicate, all others will be ignored.packageGuid
- identifier for the package which all replicated items will be
associated with.packageName
- used for the replication package
- Returns:
- an HTTP response that indicates an error or location of the report
for this replication request.
getReplicationReport
public gov.nasa.pds.registry.model.ReplicationReport getReplicationReport()
- Retrieves information about an ongoing replication request.
- Returns:
- the report of the ongoing or last finished replication event if no
replication event has occurred since the server was restarted a 404
will be returned.
Copyright © 2010–2015 Planetary Data System. All rights reserved.