Package org.cdlib.mrt.tools.loader
Class StoreLoader
java.lang.Object
org.cdlib.mrt.utility.ListProcessorBase
org.cdlib.mrt.utility.ListProcessorSimple
org.cdlib.mrt.tools.loader.StoreLoader
- All Implemented Interfaces:
ListProcessor
Run a Storage load test
- Author:
- dloy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected URLstatic booleanstatic final intprotected Filestatic final Stringprotected Stringprotected Stringprotected intprotected Fileprotected URLprotected Fileprotected URLprotected Fileprotected URLprotected StorageAddClientstatic booleanFields inherited from class org.cdlib.mrt.utility.ListProcessorSimple
m_clientPropertiesFields inherited from class org.cdlib.mrt.utility.ListProcessorBase
logger, m_framework, m_status, PROCESSCNT, PROCESSTIME, TOTALBYTES, TOTALTIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVersion(int nodeID, Identifier objectID, String localContext, String localID, File manifest, Long size, MessageDigest manifestMessageDigest) voidend()Process on EnrichmentList itemgetName()Name of EnrichmentListprotected voidinitialize(TFrame fw) protected voidprotected voidstatic voidMain methodvoidprocess(String line, Properties processProp) Process an incoming line which contains 1) ark 2) sequence number Use the ark for issuing an addVersion to a storage serviceprotected LoaderManifestprocessManifest(String dirName, FileComponent batchComponent, File extractDirectory, String localID, String primaryID) Methods inherited from class org.cdlib.mrt.utility.ListProcessorSimple
getClientProperties, getIntProp, processListMethods inherited from class org.cdlib.mrt.utility.ListProcessorBase
getFileProperties, log, requiredProp
-
Field Details
-
NAME
-
MESSAGE
-
LS
-
DEFAULTDELTA
public static final int DEFAULTDELTA- See Also:
-
DEBUG
public static boolean DEBUG -
SUBMIT
public static boolean SUBMIT -
checksumType
-
processList
-
extractBaseDirectory
-
outputManifestDirectoryBase
-
outputManifestBaseURL
-
componentURLBase
-
outputManifestURL
-
outputBatchFile
-
storageBase
-
nodeID
protected int nodeID -
storeAddClient
-
-
Constructor Details
-
StoreLoader
- Throws:
TException
-
-
Method Details
-
main
Main method -
initialize
- Overrides:
initializein classListProcessorSimple- Throws:
TException
-
initializeStoreLoader
- Throws:
TException
-
getName
Name of EnrichmentList- Specified by:
getNamein interfaceListProcessor- Overrides:
getNamein classListProcessorSimple- Returns:
- name to be applied for identifying process properties
-
process
Process an incoming line which contains 1) ark 2) sequence number Use the ark for issuing an addVersion to a storage service
- Specified by:
processin interfaceListProcessor- Overrides:
processin classListProcessorSimple- Parameters:
line- line containing ark and sequence numberprocessProp- runtime properties- Throws:
TException- process exception
-
processManifest
protected LoaderManifest processManifest(String dirName, FileComponent batchComponent, File extractDirectory, String localID, String primaryID) throws TException - Throws:
TException
-
log
-
addVersion
public Properties addVersion(int nodeID, Identifier objectID, String localContext, String localID, File manifest, Long size, MessageDigest manifestMessageDigest) throws TException - Throws:
TException
-
end
Description copied from class:ListProcessorSimpleProcess on EnrichmentList item- Overrides:
endin classListProcessorSimple- Throws:
TException
-