Class MXNarProvider
java.lang.Object
com.metasolv.nm.processor.MXAggregator.MXNarProvider
- All Implemented Interfaces:
DataProviderIfc
New interface between field processor threads and the NarInputProcessor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Only return an array of one NAR.Allows a DataReceiver to obtain the currently processing .arch filegetData()
Allows a DataReceiver to obtain the available data in a known format.Allows a DataReceiver to obtain the available data in a known format.Deprecated.Allows a DataReceiver to obtain the last processed .arch fileboolean
Allows a DataReceiver to determine whether some data is available for processingvoid
removeProcessedFile
(File currArchFile) Allows a DataReceiver to remove .arch file once processed currArchFile - processed .arch filevoid
setDataReceiver
(DataReceiverIfc receiver) Deprecated.void
setProcessedArchFile
(String file) Sets the processed .arch file absolute pathvoid
signalBatchCompletion
(String batch) Allows a DataReceiver to know that the nars under the specified batch are completed and handed over to the Data receiverboolean
Allows a DataReceiver to check if Minor Type supported for disaster recovery
-
Constructor Details
-
MXNarProvider
-
-
Method Details
-
isDataAvailable
public boolean isDataAvailable()Description copied from interface:DataProviderIfc
Allows a DataReceiver to determine whether some data is available for processing- Specified by:
isDataAvailable
in interfaceDataProviderIfc
- Returns:
true
, if data is available
-
getData
Description copied from interface:DataProviderIfc
Allows a DataReceiver to obtain the available data in a known format.- Specified by:
getData
in interfaceDataProviderIfc
- Returns:
- DCFieldContainer object containing the data that is available for processing
-
getBulkData
Only return an array of one NAR.- Specified by:
getBulkData
in interfaceDataProviderIfc
- Returns:
- DCFieldContainer object array, containing the data that is for processing
-
setDataReceiver
Deprecated.Not used.- Specified by:
setDataReceiver
in interfaceDataProviderIfc
- Parameters:
receiver
- Object which will obtain data from this DataProvider
-
getDataReceiver
Deprecated.Not used.- Specified by:
getDataReceiver
in interfaceDataProviderIfc
- Returns:
- Object to which this DataProvider is sending data
-
endRecordProcessing
-
getData
Description copied from interface:DataProviderIfc
Allows a DataReceiver to obtain the available data in a known format. batch - The nars read will be grouped under the specified batch- Specified by:
getData
in interfaceDataProviderIfc
- Returns:
- DCFieldContainer object containing the data that is available for processing
-
signalBatchCompletion
Description copied from interface:DataProviderIfc
Allows a DataReceiver to know that the nars under the specified batch are completed and handed over to the Data receiver- Specified by:
signalBatchCompletion
in interfaceDataProviderIfc
-
removeProcessedFile
Description copied from interface:DataProviderIfc
Allows a DataReceiver to remove .arch file once processed currArchFile - processed .arch file- Specified by:
removeProcessedFile
in interfaceDataProviderIfc
-
getProcessedArchFile
Description copied from interface:DataProviderIfc
Allows a DataReceiver to obtain the last processed .arch file- Specified by:
getProcessedArchFile
in interfaceDataProviderIfc
- Returns:
- currently processing .arch file absolute path
-
setProcessedArchFile
Description copied from interface:DataProviderIfc
Sets the processed .arch file absolute path- Specified by:
setProcessedArchFile
in interfaceDataProviderIfc
- Parameters:
file
- absolute path of processed .arch file
-
getCurrArchFile
Description copied from interface:DataProviderIfc
Allows a DataReceiver to obtain the currently processing .arch file- Specified by:
getCurrArchFile
in interfaceDataProviderIfc
- Returns:
- currently processing .arch file
-
validOIMinorType
public boolean validOIMinorType()Description copied from interface:DataProviderIfc
Allows a DataReceiver to check if Minor Type supported for disaster recovery- Specified by:
validOIMinorType
in interfaceDataProviderIfc
- Returns:
- true if valid
-