Package org.cdlib.mrt.core
Class ManifestRowCheckmAbs
java.lang.Object
org.cdlib.mrt.core.ManifestRowAbs
org.cdlib.mrt.core.ManifestRowCheckmAbs
- All Implemented Interfaces:
FileComponentContentInf,ManifestRowInf
- Direct Known Subclasses:
ManifestRowAdd,ManifestRowBatch,ManifestRowIngest,ManifestRowObject
public abstract class ManifestRowCheckmAbs
extends ManifestRowAbs
implements ManifestRowInf, FileComponentContentInf
Dflat POST manifest row support This routine is used in conjunction with Manifest for parsing the manifest process line. This manifest is passed as part of a POST addVersion process. For this format this consists of: URL for accessing file checksum type checksum file size last modified date String (or -) if not spplied file name
- Author:
- David Loy
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cdlib.mrt.core.ManifestRowAbs
ManifestRowAbs.ManifestType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Checkmprotected static final booleanprotected FileComponentprotected static final Stringprotected static final StringFields inherited from class org.cdlib.mrt.core.ManifestRowAbs
m_logger -
Constructor Summary
ConstructorsConstructorDescriptionManifestRowCheckmAbs(String outputProfile, LoggerInf logger, String[] profiles, String[] cols) ManifestRowCheckmAbs(LoggerInf logger, String[] profiles, String[] cols) ManifestRowCheckmAbs(LoggerInf logger, Checkm checkm) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddumpHeaders(String msg, String[] headers) abstract String[]Get FileStateString[]Return the checkm headersString[]getHeaders(String profile) static String[]getHeaders(String[] profiles, String[] columns) static String[]getHeaders(String outputProfile, String[] profiles, String[] columns) getLine()Build a Manifest line for output to a manifest fileabstract ManifestRowCheckmAbsgetManifestRow(String line) Get ManifestRow object based on passed lineString[]Return the checkm headersIf profile associated with this manifest then return valueabstract String[]voidAny specialized EOF handling required.voidhandleHeaders(String[] comments) Process all manifest headers beginning with the form #% The headers exist before any processed manifest linevoidsetFileComponent(FileComponent fileState) Set FileStatevoidProcess Manifest line.Methods inherited from class org.cdlib.mrt.core.ManifestRowAbs
getManifestRow, getManifestRow
-
Field Details
-
NAME
- See Also:
-
MESSAGE
- See Also:
-
DEBUG
protected static final boolean DEBUG- See Also:
-
checkm
-
fileComponent
-
-
Constructor Details
-
ManifestRowCheckmAbs
- Throws:
TException
-
ManifestRowCheckmAbs
- Throws:
TException
-
ManifestRowCheckmAbs
public ManifestRowCheckmAbs(String outputProfile, LoggerInf logger, String[] profiles, String[] cols) throws TException - Throws:
TException
-
-
Method Details
-
dumpHeaders
-
getFileComponent
Description copied from interface:FileComponentContentInfGet FileState- Specified by:
getFileComponentin interfaceFileComponentContentInf- Returns:
- FileState
-
setFileComponent
Description copied from interface:FileComponentContentInfSet FileState- Specified by:
setFileComponentin interfaceFileComponentContentInf- Parameters:
fileState- saved FileState
-
handleHeaders
Description copied from interface:ManifestRowInfProcess all manifest headers beginning with the form #% The headers exist before any processed manifest line- Specified by:
handleHeadersin interfaceManifestRowInf- Parameters:
comments- array of Strings containing each identified header- Throws:
TException
-
setRow
Description copied from interface:ManifestRowInfProcess Manifest line. This line is passed from Manifest. This method parses the content of this Manifest line and saves it locally- Specified by:
setRowin interfaceManifestRowInf- Parameters:
line- a line delimited String extracted from a Manifest- Throws:
TException- process exception
-
getLine
Description copied from interface:ManifestRowInfBuild a Manifest line for output to a manifest file- Specified by:
getLinein interfaceManifestRowInf- Returns:
- Manifest line
- Throws:
TException- process exception
-
handleEOF
Description copied from interface:ManifestRowInfAny specialized EOF handling required. e.g. The last line of a Post manifest is #@EOF- Specified by:
handleEOFin interfaceManifestRowInf- Parameters:
prevLine- last line of manifest- Throws:
TException- process exception
-
getManifestRow
Description copied from interface:ManifestRowInfGet ManifestRow object based on passed line- Specified by:
getManifestRowin interfaceManifestRowInf- Parameters:
line- Manifest line- Returns:
- ManifestRow object built from this line
- Throws:
TException- process exception
-
getHeaders
Description copied from interface:ManifestRowInfReturn the checkm headers- Specified by:
getHeadersin interfaceManifestRowInf- Returns:
- checkm headers
-
getHeaders
-
getHeaders
-
getOutputHeaders
Description copied from interface:ManifestRowInfReturn the checkm headers- Specified by:
getOutputHeadersin interfaceManifestRowInf- Returns:
- checkm headers
-
getHeaders
public static String[] getHeaders(String outputProfile, String[] profiles, String[] columns) throws TException - Throws:
TException
-
getProfile
Description copied from interface:ManifestRowInfIf profile associated with this manifest then return value- Specified by:
getProfilein interfaceManifestRowInf- Returns:
- manifest profile
-
getManifestRow
- Throws:
TException
-
getColumns
-
getProfiles
-