Package org.frankframework.batch
Interface IRecordHandlerManager
- All Known Implementing Classes:
FieldPositionRecordHandlerManager,FixedPositionRecordHandlerManager,RecordHandlerManager
Interface for handling a transformed record.
A RecordHandlerManager decides, based on some implementation dependent algorithm, which record handler
is to be used to process a record.
A record manager keeps a table of flow-elements, that each define a recordhandler, resulthandler and,
optionally, a next-manager.
- Author:
- John Dekker
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddHandler(RecordHandlingFlow flow) Flow to be added to the managed flow elementsvoidconfigure(Map<String, IRecordHandlerManager> registeredManagers, Map<String, IRecordHandler> registeredRecordHandlers, Map<String, IResultHandler> registeredResultHandlers, IResultHandler defaultHandler) getFullRecord(BufferedReader reader, RecordHandlingFlow flow, String firstPart) getRecordFactoryUsingFilename(PipeLineSession session, String filename) getRecordHandler(PipeLineSession session, String record) booleanvoidsetInitial(boolean initialFactory) indicates if this manager is the initial manager
-
Method Details
-
configure
void configure(Map<String, IRecordHandlerManager> registeredManagers, Map<String, throws ConfigurationExceptionIRecordHandler> registeredRecordHandlers, Map<String, IResultHandler> registeredResultHandlers, IResultHandler defaultHandler) - Throws:
ConfigurationException
-
addHandler
Flow to be added to the managed flow elements -
getRecordHandler
- Returns:
- the RecordHandlingFlow element to be used to handle the record
- Throws:
Exception
-
getRecordFactoryUsingFilename
- Returns:
- the IRecordHandlingManager to be used initially based on the name of the input file
-
getFirstPartOfNextRecord
- Returns:
- the first part of the next record, containing at least the key
- Throws:
IOException
-
getFullRecord
String getFullRecord(BufferedReader reader, RecordHandlingFlow flow, String firstPart) throws IOException - Returns:
- expand the first part to the full record
- Throws:
IOException
-
setInitial
void setInitial(boolean initialFactory) indicates if this manager is the initial manager -
isInitial
boolean isInitial()
-