Class D1NodeVersionChecker

java.lang.Object
edu.ucsb.nceas.metacat.dataone.D1NodeVersionChecker

public class D1NodeVersionChecker extends Object
This class will contact the CN to figure out the version of the service for the given node
Author:
tao
  • Field Details

  • Constructor Details

    • D1NodeVersionChecker

      public D1NodeVersionChecker(org.dataone.service.types.v1.NodeReference nodeId)
      Constructor
      Parameters:
      nodeId -
  • Method Details

    • getVersion

      public String getVersion(String serviceName) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotImplemented
      Get the version of the service name for the node. If we can't find the service for the node, a NotFound exception will return. The null maybe return.
      Parameters:
      serviceName -
      Returns:
      the version of the service
      Throws:
      org.dataone.service.exceptions.NotImplemented
      org.dataone.service.exceptions.ServiceFailure