Package com.nt.udc.ndk.node
Interface DataProviderIfc
- All Known Subinterfaces:
DCStreamHandler
- All Known Implementing Classes:
AggregatorFieldProcessor,DCFieldProcessor,DeclNPLFieldProcessor,DiscProcFieldProcessor,DupRemoverFieldProcessor,EITransport,FileEITransport,FileEITransport,FlatFileEIProcessor,FlexibleAggregatorFieldProcessor,FtpEITransport,GenericFlatFileProcessor,GenericUdpEITransport,HCDeDupFieldProcessor,IPDRFileTransport,IPDRTransport,JDBCEITransport,JDBCOIFieldProcessor,KnownFieldLengthFileProcessor,MXNARFileManager,MXNarOutReceiverWrapper,MXNarProvider,MXNPLFieldProcessor,NAREIFileProcessor,NARFileManager,NARFileManagerMT,NARSelectorFieldProcessor,NARStreamHandler,NPLFieldProcessor,OpenFileEITransport,SeqProcFieldProcessor,SoapXmlEITransport,Sol42EITransport,Sol42FieldProcessor,TcpEITransport,UdpEITransport,XMLFileTransport,XMLTransport
public interface DataProviderIfc
Methods which allow a DataReceiver to communicate with a DataProvider
-
Method Summary
Modifier and TypeMethodDescriptionAllows a DataReceiver to obtain the available data in a known format.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.Gets the object that is retrieving data from this DataProviderAllows a DataReceiver to obtain the last processed .arch filebooleanAllows a DataReceiver to determine whether some data is available for processingvoidremoveProcessedFile(File currArchFile) Allows a DataReceiver to remove .arch file once processed currArchFile - processed .arch filevoidsetDataReceiver(DataReceiverIfc receiver) Sets the object to which this DataProvider will send its data.voidsetProcessedArchFile(String processedArchFile) Sets the processed .arch file absolute pathvoidsignalBatchCompletion(String batch) Allows a DataReceiver to know that the nars under the specified batch are completed and handed over to the Data receiverbooleanAllows a DataReceiver to check if Minor Type supported for disaster recovery
-
Method Details
-
isDataAvailable
boolean isDataAvailable()Allows a DataReceiver to determine whether some data is available for processing- Returns:
true, if data is available
-
getData
DCFieldContainer getData()Allows a DataReceiver to obtain the available data in a known format.- Returns:
- DCFieldContainer object containing the data that is available for processing
-
signalBatchCompletion
Allows a DataReceiver to know that the nars under the specified batch are completed and handed over to the Data receiver -
getData
Allows a DataReceiver to obtain the available data in a known format. batch - The nars read will be grouped under the specified batch- Returns:
- DCFieldContainer object containing the data that is available for processing
-
getBulkData
DCFieldContainer[] getBulkData()Allows a DataReceiver to obtain the available data in a known format.- Returns:
- DCFieldContainer object array, containing the data that is for processing
-
setDataReceiver
Sets the object to which this DataProvider will send its data.- Parameters:
receiver- Object which will obtain data from this DataProvider
-
getDataReceiver
DataReceiverIfc getDataReceiver()Gets the object that is retrieving data from this DataProvider- Returns:
- Object to which this DataProvider is sending data
-
getCurrArchFile
File getCurrArchFile()Allows a DataReceiver to obtain the currently processing .arch file- Returns:
- currently processing .arch file
-
removeProcessedFile
Allows a DataReceiver to remove .arch file once processed currArchFile - processed .arch file -
getProcessedArchFile
String getProcessedArchFile()Allows a DataReceiver to obtain the last processed .arch file- Returns:
- currently processing .arch file absolute path
-
setProcessedArchFile
Sets the processed .arch file absolute path- Parameters:
processedArchFile- absolute path of processed .arch file
-
validOIMinorType
boolean validOIMinorType()Allows a DataReceiver to check if Minor Type supported for disaster recovery- Returns:
- true if valid
-