com.vladium.emma.data
Class MergeProcessor

java.lang.Object
  extended bycom.vladium.emma.Processor
      extended bycom.vladium.emma.data.MergeProcessor
All Implemented Interfaces:
IAppErrorCodes

public final class MergeProcessor
extends Processor
implements IAppErrorCodes

Author:
Vlad Roubtsov, (C) 2003

Field Summary
private static java.lang.Class[] EXPECTED_FAILURES
           
private  int m_dataFileCount
           
private  java.io.File[] m_dataPath
           
private  java.io.File m_sdataOutFile
           
 
Fields inherited from class com.vladium.emma.Processor
m_appName, m_log, m_propertyOverrides
 
Fields inherited from interface com.vladium.emma.IAppErrorCodes
ARGS_IO_FAILURE, CLASS_STAMP_MISMATCH, INSTR_IO_FAILURE, INVALID_COLUMN_NAME, INVALID_PARAMETER_VALUE, MAIN_CLASS_BAD_DELEGATION, MAIN_CLASS_LOAD_FAILURE, MAIN_CLASS_NOT_FOUND, MAIN_METHOD_FAILURE, MAIN_METHOD_NOT_FOUND, OUT_IO_FAILURE, OUT_MKDIR_FAILURE, REPORT_GEN_FAILURE, REPORT_IO_FAILURE, REQUIRED_PARAMETER_MISSING, SECURITY_RESTRICTION, UNEXPECTED_FAILURE
 
Constructor Summary
private MergeProcessor()
           
 
Method Summary
protected  void _run(IProperties toolProperties)
           
static MergeProcessor create()
           
private  void reset()
           
 void setDataPath(java.lang.String[] path)
           
 void setSessionOutFile(java.lang.String fileName)
          NOTE: there is no setter for merge attribute because this processor always overwrites the out file [to ensure compaction]
protected  void validateState()
           
 
Methods inherited from class com.vladium.emma.Processor
run, setAppName, setPropertyOverrides, setPropertyOverrides
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_dataPath

private java.io.File[] m_dataPath

m_sdataOutFile

private java.io.File m_sdataOutFile

m_dataFileCount

private int m_dataFileCount

EXPECTED_FAILURES

private static final java.lang.Class[] EXPECTED_FAILURES
Constructor Detail

MergeProcessor

private MergeProcessor()
Method Detail

create

public static MergeProcessor create()

setDataPath

public final void setDataPath(java.lang.String[] path)
Parameters:
path - [null is equivalent to an empty array]

setSessionOutFile

public final void setSessionOutFile(java.lang.String fileName)
NOTE: there is no setter for merge attribute because this processor always overwrites the out file [to ensure compaction]

Parameters:
fileName - [null unsets the previous override setting]

validateState

protected void validateState()
Overrides:
validateState in class Processor

_run

protected void _run(IProperties toolProperties)
Specified by:
_run in class Processor

reset

private void reset()