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 String
protected URL
static boolean
static final int
protected File
static final String
protected String
protected String
protected int
protected File
protected URL
protected File
protected URL
protected File
protected URL
protected StorageAddClient
static boolean
Fields inherited from class org.cdlib.mrt.utility.ListProcessorSimple
m_clientProperties
Fields 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) void
end()
Process on EnrichmentList itemgetName()
Name of EnrichmentListprotected void
initialize
(TFrame fw) protected void
protected void
static void
Main methodvoid
process
(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 LoaderManifest
processManifest
(String dirName, FileComponent batchComponent, File extractDirectory, String localID, String primaryID) Methods inherited from class org.cdlib.mrt.utility.ListProcessorSimple
getClientProperties, getIntProp, processList
Methods 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:
initialize
in classListProcessorSimple
- Throws:
TException
-
initializeStoreLoader
- Throws:
TException
-
getName
Name of EnrichmentList- Specified by:
getName
in interfaceListProcessor
- Overrides:
getName
in 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:
process
in interfaceListProcessor
- Overrides:
process
in 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:ListProcessorSimple
Process on EnrichmentList item- Overrides:
end
in classListProcessorSimple
- Throws:
TException
-