Package org.frankframework.batch
Class RecordHandlerManager
java.lang.Object
org.frankframework.batch.RecordHandlerManager
- All Implemented Interfaces:
IRecordHandlerManager,HasName,NameAware
- Direct Known Subclasses:
FieldPositionRecordHandlerManager,FixedPositionRecordHandlerManager
Deprecated.
Warning: non-maintained functionality.
Basic implementation of RecordHandlerManager, that allows only for a single flow.
The manager decides which handlers to be used for a specific record.
- Author:
- John Dekker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHandler(RecordHandlingFlow handlers) Deprecated.Element that contains the handlers for a specific record type, to be assigned to the managervoidconfigure(Map<String, IRecordHandlerManager> registeredManagers, Map<String, IRecordHandler> registeredRecordHandlers, Map<String, IResultHandler> registeredResultHandlers, IResultHandler defaultHandler) Deprecated.Deprecated.protected Map<String, RecordHandlingFlow> Deprecated.getFullRecord(BufferedReader reader, RecordHandlingFlow flow, String firstPart) Deprecated.getRecordFactoryUsingFilename(PipeLineSession session, String inputFilename) Deprecated.getRecordHandler(PipeLineSession session, String record) Deprecated.getRecordHandlerByKey(String recordKey) Deprecated.Determines the recordhandler to use, based on key.voidsetInitial(boolean b) Deprecated.This manager is the initial manager, i.e. to be used for the first recordvoidDeprecated.Name of the managerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.frankframework.batch.IRecordHandlerManager
isInitial
-
Field Details
-
log
protected org.apache.logging.log4j.Logger logDeprecated.
-
-
Constructor Details
-
RecordHandlerManager
public RecordHandlerManager()Deprecated.
-
-
Method Details
-
getRecordFactoryUsingFilename
public IRecordHandlerManager getRecordFactoryUsingFilename(PipeLineSession session, String inputFilename) Deprecated.- Specified by:
getRecordFactoryUsingFilenamein interfaceIRecordHandlerManager- Returns:
- the IRecordHandlingManager to be used initially based on the name of the input file
-
getFirstPartOfNextRecord
Deprecated.- Specified by:
getFirstPartOfNextRecordin interfaceIRecordHandlerManager- Returns:
- the first part of the next record, containing at least the key
- Throws:
IOException
-
getFullRecord
public String getFullRecord(BufferedReader reader, RecordHandlingFlow flow, String firstPart) throws IOException Deprecated.- Specified by:
getFullRecordin interfaceIRecordHandlerManager- Returns:
- expand the first part to the full record
- Throws:
IOException
-
configure
public void configure(Map<String, IRecordHandlerManager> registeredManagers, Map<String, throws ConfigurationExceptionIRecordHandler> registeredRecordHandlers, Map<String, IResultHandler> registeredResultHandlers, IResultHandler defaultHandler) Deprecated.- Specified by:
configurein interfaceIRecordHandlerManager- Throws:
ConfigurationException
-
addHandler
Deprecated.Element that contains the handlers for a specific record type, to be assigned to the manager- Specified by:
addHandlerin interfaceIRecordHandlerManager
-
getFlowMap
Deprecated. -
getRecordHandler
Deprecated.- Specified by:
getRecordHandlerin interfaceIRecordHandlerManager- Returns:
- the RecordHandlingFlow element to be used to handle the record
- Throws:
Exception
-
getRecordHandlerByKey
Deprecated.Determines the recordhandler to use, based on key. Key is "*" by default, but can be changed by descendant implementations.- Returns:
- RecordHandlingFlow element to be used for handling records of type recordkey
- Throws:
Exception
-
setName
Deprecated.Name of the manager -
setInitial
public void setInitial(boolean b) Deprecated.This manager is the initial manager, i.e. to be used for the first record- Specified by:
setInitialin interfaceIRecordHandlerManager- Default value
- false
-