public abstract class XMLTransport extends EITransport
| Modifier and Type | Field and Description |
|---|---|
protected ConfigIfc |
m_config
This field is used to get configuration information.
|
protected int |
m_debugLevel
This member is used for debugging.
|
protected java.io.FilenameFilter |
m_iFilenameFilter
This member is used to select the files to process.
|
protected LoggerIfc |
m_iLogger
This field is used to log errors.
|
protected IStreamSource |
m_iStreamSource
This member is used to provide the data input stream.
|
protected XMLProcessor |
m_processor |
protected COSARReporter |
m_reporter
This member is used to send reports to.
|
protected java.io.File |
m_scratchDir |
dataReceiver, fdChecked, filedataReceiver, fileduplicateCheck, fileToProcess, inputCount, lockFile, movedFile, node, pollingInterval, processing, processingData, running| Constructor and Description |
|---|
XMLTransport(LoggerIfc logger,
ConfigIfc config,
java.io.File scratchDir)
Construct a new XMLTransport to be used within the specified EINode.
|
| Modifier and Type | Method and Description |
|---|---|
DCFieldContainer[] |
getBulkData()
This method is used by the DataReceiver to fetch several
DCFieldContainer objects.
|
DCFieldContainer |
getData()
This method is used by the DataReceiver to fetch a single
DCFieldContainer.
|
protected void |
initFilenameFilter()
This function is used to initialize the filename filter
|
void |
initialize()
This function is used to create and initialize the
Transport's components.
|
protected abstract void |
initStreamSource()
This is to be implemented by subclasses for various
transportation types.
|
boolean |
isDataAvailable()
This method is used by the DataReceiver to ask this provider if
data is available.
|
void |
run()
This method is used when the EITransport runs within its own thread.
|
void |
setProcessor(XMLProcessor processor) |
void |
shutdown()
Stop the transport.
|
getCurrArchFile, getData, getDataReceiver, getDubCheckObj, getDupCheckFlag, getFileBulkData, getFileData, getFileDataReceiver, getFileList, getMovedFileStatus, getNode, getPollingInterval, getProcessedArchFile, handleRejectOfFile, incrementIn, incrementIn, isEndOfFile, isFileDataAvailable, isHealthy, isProcessing, isProcessingData, isStartOfFile, moveCurrentFileToBackUp, openInputFile, rejectFile, removeProcessedFile, setCountsSuspect, setDataReceiver, setFileDataReceiver, setFileToProcess, setMovedFileStatus, setNode, setPollingInterval, setProcessedArchFile, setProcessing, signalBatchCompletion, validOIMinorTypeprotected int m_debugLevel
protected IStreamSource m_iStreamSource
protected java.io.FilenameFilter m_iFilenameFilter
protected COSARReporter m_reporter
protected LoggerIfc m_iLogger
protected ConfigIfc m_config
protected java.io.File m_scratchDir
protected XMLProcessor m_processor
public boolean isDataAvailable()
isDataAvailable in interface DataProviderIfcisDataAvailable in class EITransporttrue, if data is availablepublic DCFieldContainer getData()
getData in interface DataProviderIfcgetData in class EITransportpublic DCFieldContainer[] getBulkData()
getBulkData in interface DataProviderIfcgetBulkData in class EITransportpublic void setProcessor(XMLProcessor processor)
public void run()
run in interface java.lang.Runnablerun in class EITransportpublic void shutdown()
shutdown in interface DCTransportshutdown in class EITransportpublic void initialize()
throws java.lang.Exception
java.lang.Exceptionprotected void initFilenameFilter()
throws java.lang.Exception
java.lang.Exceptionprotected abstract void initStreamSource()
throws java.lang.Exception
java.lang.Exception