Package org.frankframework.batch
Class ResultBlock2Sender
java.lang.Object
org.frankframework.batch.AbstractResultHandler
org.frankframework.batch.ResultWriter
org.frankframework.batch.Result2StringWriter
org.frankframework.batch.ResultBlock2Sender
- All Implemented Interfaces:
IResultHandler,FrankElement,HasApplicationContext,HasName,IConfigurable,IScopeProvider,IWithParameters,NameAware,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
Deprecated.
Warning: non-maintained functionality.
ResultHandler that collects a number of records and sends them together to a sender.
- Since:
- 4.7
- Author:
- Gerrit van Brakel
- Parameters
- any parameters defined on the resultHandler will be handed to the sender, if this is a
ISenderWithParameters
-
Field Summary
Fields inherited from class org.frankframework.batch.AbstractResultHandler
log, paramList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.voidcloseBlock(PipeLineSession session, String streamId, String blockName, Map<String, Object> blocks) Deprecated.voidcloseDocument(PipeLineSession session, String streamId) Deprecated.voidDeprecated.Configure this component.protected intDeprecated.protected intgetCounter(String streamId) Deprecated.intDeprecated.protected intincCounter(String streamId) Deprecated.protected intDeprecated.voidopen()Deprecated.voidDeprecated.voidopenDocument(PipeLineSession session, String streamId) Deprecated.Called once, before the first record of a stream is presented to handleResult.voidDeprecated.Sender to which each block of results is sentMethods inherited from class org.frankframework.batch.Result2StringWriter
createWriter, finalizeResultMethods inherited from class org.frankframework.batch.ResultWriter
closeRecordType, getWriter, handleResult, openRecordType, replacePattern, setBlockNamePattern, setOnCloseBlock, setOnCloseDocument, setOnOpenBlock, setOnOpenDocument, writeNewLineMethods inherited from class org.frankframework.batch.AbstractResultHandler
addParameter, getParameterList, hasPrefix, isDefault, setBlockByRecordType, setDefault, setName, setPipe, setPrefix, setSuffixMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.batch.IResultHandler
isBlockByRecordType
-
Constructor Details
-
ResultBlock2Sender
public ResultBlock2Sender()Deprecated.
-
-
Method Details
-
configure
Deprecated.Description copied from interface:IConfigurableConfigure this component.configure()is called once at startup of the framework in the configure method of the owner of thisIConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in theconfigure(), to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configurein interfaceIConfigurable- Overrides:
configurein classAbstractResultHandler- Throws:
ConfigurationException- in case it was not able to configure the component.
-
open
Deprecated.- Specified by:
openin interfaceIResultHandler- Overrides:
openin classAbstractResultHandler- Throws:
SenderException
-
close
Deprecated.- Specified by:
closein interfaceIResultHandler- Overrides:
closein classAbstractResultHandler- Throws:
SenderException
-
openDocument
Deprecated.Description copied from interface:IResultHandlerCalled once, before the first record of a stream is presented to handleResult.- Specified by:
openDocumentin interfaceIResultHandler- Overrides:
openDocumentin classResultWriter- Parameters:
session- current PipeLineSessionstreamId- identification of the original file/stream/message- Throws:
Exception
-
closeDocument
Deprecated.- Specified by:
closeDocumentin interfaceIResultHandler- Overrides:
closeDocumentin classResultWriter
-
getCounter
Deprecated.- Throws:
SenderException
-
incCounter
Deprecated.- Throws:
SenderException
-
getLevel
Deprecated.- Throws:
SenderException
-
incLevel
Deprecated.- Throws:
SenderException
-
decLevel
Deprecated.- Throws:
SenderException
-
openBlock
public void openBlock(PipeLineSession session, String streamId, String blockName, Map<String, Object> blocks) throws ExceptionDeprecated.- Specified by:
openBlockin interfaceIResultHandler- Overrides:
openBlockin classResultWriter- Throws:
Exception
-
closeBlock
public void closeBlock(PipeLineSession session, String streamId, String blockName, Map<String, Object> blocks) throws ExceptionDeprecated.- Specified by:
closeBlockin interfaceIResultHandler- Overrides:
closeBlockin classResultWriter- Throws:
Exception
-
setSender
Deprecated.Sender to which each block of results is sent
-