gov.nasa.pds.registry.resource
Class ReplicationResource

java.lang.Object
  extended by 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)
          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
 

Constructor Detail

ReplicationResource

public ReplicationResource(javax.ws.rs.core.UriInfo uriInfo,
                           javax.ws.rs.core.Request request,
                           gov.nasa.pds.registry.service.RegistryService registryService)
Method Detail

performReplication

public javax.ws.rs.core.Response performReplication(String registryUrl,
                                                    DateParam lastModified,
                                                    String objectType)
Requests a replication of a remote registry contents to be initiated.

Parameters:
registryUrl - to replicate contents from
lastModified - time to constrain which registry objects are relevant to replicate. This time is inclusive. If set to null all will be pulled.
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-2013 Planetary Data System. All Rights Reserved.