Package org.cdlib.mrt.cloud
Class VersionData
java.lang.Object
org.cdlib.mrt.cloud.VersionData
This object imports the formatTypes.xml and builds a local table of supported format types.
Note, that the ObjectFormat is being deprecated and replaced by a single format id (fmtid).
This change is happening because formatName is strictly a description and has no functional
use. The scienceMetadata flag is being dropped because the ORE Resource Map is more flexible
and allows for a broader set of data type.
- Author:
- dloy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected File
protected LoggerInf
protected File
protected VersionMap
protected String
protected int
protected Identifier
protected File
protected String
-
Constructor Summary
ConstructorsConstructorDescriptionVersionData
(URL manifestXML, File outputDir, LoggerInf logger) VersionData
(VersionMap map, File outputDir, LoggerInf logger) VersionData
(Identifier objectID, String storageBase, int node, File outputDir, LoggerInf logger) -
Method Summary
Modifier and TypeMethodDescriptionaddComponentFile
(int versionID, File versionDir, FileComponent component) int
addComponentsList
(int versionID, File versionDir) int
int
int
copyContent
(String copyStorageBase, int copyNode, Identifier copyObjectID) copyVersion
(StorageAddClient client, String copyStorageBase, int copyNode, Identifier copyObjectID, File versionManifest) int
getMap()
int
getNode()
static void
Main methodstatic void
Main methodstatic void
Main methodstatic void
Main methodstatic void
void
saveComponentContent
(int versionID, File componentFile, String id, String name)
-
Field Details
-
objectID
-
node
protected int node -
current
protected int current -
map
-
storageBase
-
outputDir
-
logger
-
dataDir
-
manifestDir
-
mapLink
-
-
Constructor Details
-
VersionData
- Throws:
TException
-
VersionData
- Throws:
TException
-
VersionData
public VersionData(Identifier objectID, String storageBase, int node, File outputDir, LoggerInf logger) throws TException - Throws:
TException
-
-
Method Details
-
dump
-
buildManifests
- Throws:
TException
-
buildContent
- Throws:
TException
-
copyContent
public int copyContent(String copyStorageBase, int copyNode, Identifier copyObjectID) throws TException - Throws:
TException
-
copyVersion
public Properties copyVersion(StorageAddClient client, String copyStorageBase, int copyNode, Identifier copyObjectID, File versionManifest) throws TException - Throws:
TException
-
addComponentsList
- Throws:
TException
-
addComponentFile
public File addComponentFile(int versionID, File versionDir, FileComponent component) throws TException - Throws:
TException
-
saveComponentContent
public void saveComponentContent(int versionID, File componentFile, String id, String name) throws TException - Throws:
TException
-
main
Main method -
main1
Main method -
main2
Main method -
main3
Main method -
main4
-
getObjectID
-
getNode
public int getNode() -
getCurrent
public int getCurrent() -
getMap
-
getStorageBase
-