Package edu.ucsb.nceas.metacat.dataone
Class D1NodeVersionChecker
java.lang.Object
edu.ucsb.nceas.metacat.dataone.D1NodeVersionChecker
This class will contact the CN to figure out the version of the service
for the given node
- Author:
- tao
-
Field Summary
-
Constructor Summary
ConstructorDescriptionD1NodeVersionChecker
(org.dataone.service.types.v1.NodeReference nodeId) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetVersion
(String serviceName) Get the version of the service name for the node.
-
Field Details
-
V1
- See Also:
-
V2
- See Also:
-
HIGHESTVERSION
- See Also:
-
SECONDHIGHESTVERSION
- See Also:
-
-
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
-