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 Checkm
protected static final boolean
protected FileComponent
protected static final String
protected static final String
Fields 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 void
dumpHeaders
(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 ManifestRowCheckmAbs
getManifestRow
(String line) Get ManifestRow object based on passed lineString[]
Return the checkm headersIf profile associated with this manifest then return valueabstract String[]
void
Any specialized EOF handling required.void
handleHeaders
(String[] comments) Process all manifest headers beginning with the form #% The headers exist before any processed manifest linevoid
setFileComponent
(FileComponent fileState) Set FileStatevoid
Process 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:FileComponentContentInf
Get FileState- Specified by:
getFileComponent
in interfaceFileComponentContentInf
- Returns:
- FileState
-
setFileComponent
Description copied from interface:FileComponentContentInf
Set FileState- Specified by:
setFileComponent
in interfaceFileComponentContentInf
- Parameters:
fileState
- saved FileState
-
handleHeaders
Description copied from interface:ManifestRowInf
Process all manifest headers beginning with the form #% The headers exist before any processed manifest line- Specified by:
handleHeaders
in interfaceManifestRowInf
- Parameters:
comments
- array of Strings containing each identified header- Throws:
TException
-
setRow
Description copied from interface:ManifestRowInf
Process Manifest line. This line is passed from Manifest. This method parses the content of this Manifest line and saves it locally- Specified by:
setRow
in interfaceManifestRowInf
- Parameters:
line
- a line delimited String extracted from a Manifest- Throws:
TException
- process exception
-
getLine
Description copied from interface:ManifestRowInf
Build a Manifest line for output to a manifest file- Specified by:
getLine
in interfaceManifestRowInf
- Returns:
- Manifest line
- Throws:
TException
- process exception
-
handleEOF
Description copied from interface:ManifestRowInf
Any specialized EOF handling required. e.g. The last line of a Post manifest is #@EOF- Specified by:
handleEOF
in interfaceManifestRowInf
- Parameters:
prevLine
- last line of manifest- Throws:
TException
- process exception
-
getManifestRow
Description copied from interface:ManifestRowInf
Get ManifestRow object based on passed line- Specified by:
getManifestRow
in interfaceManifestRowInf
- Parameters:
line
- Manifest line- Returns:
- ManifestRow object built from this line
- Throws:
TException
- process exception
-
getHeaders
Description copied from interface:ManifestRowInf
Return the checkm headers- Specified by:
getHeaders
in interfaceManifestRowInf
- Returns:
- checkm headers
-
getHeaders
-
getHeaders
-
getOutputHeaders
Description copied from interface:ManifestRowInf
Return the checkm headers- Specified by:
getOutputHeaders
in interfaceManifestRowInf
- Returns:
- checkm headers
-
getHeaders
public static String[] getHeaders(String outputProfile, String[] profiles, String[] columns) throws TException - Throws:
TException
-
getProfile
Description copied from interface:ManifestRowInf
If profile associated with this manifest then return value- Specified by:
getProfile
in interfaceManifestRowInf
- Returns:
- manifest profile
-
getManifestRow
- Throws:
TException
-
getColumns
-
getProfiles
-