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 TypeMethodDescriptionvoid
close()
Deprecated.void
closeBlock
(PipeLineSession session, String streamId, String blockName, Map<String, Object> blocks) Deprecated.void
closeDocument
(PipeLineSession session, String streamId) Deprecated.void
Deprecated.Configure this component.protected int
Deprecated.protected int
getCounter
(String streamId) Deprecated.int
Deprecated.protected int
incCounter
(String streamId) Deprecated.protected int
Deprecated.void
open()
Deprecated.void
Deprecated.void
openDocument
(PipeLineSession session, String streamId) Deprecated.Called once, before the first record of a stream is presented to handleResult.void
Deprecated.Sender to which each block of results is sentMethods inherited from class org.frankframework.batch.Result2StringWriter
createWriter, finalizeResult
Methods inherited from class org.frankframework.batch.ResultWriter
closeRecordType, getWriter, handleResult, openRecordType, replacePattern, setBlockNamePattern, setOnCloseBlock, setOnCloseDocument, setOnOpenBlock, setOnOpenDocument, writeNewLine
Methods inherited from class org.frankframework.batch.AbstractResultHandler
addParameter, getParameterList, hasPrefix, isDefault, setBlockByRecordType, setDefault, setName, setPipe, setPrefix, setSuffix
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoader
Methods inherited from interface org.frankframework.batch.IResultHandler
isBlockByRecordType
-
Constructor Details
-
ResultBlock2Sender
public ResultBlock2Sender()Deprecated.
-
-
Method Details
-
configure
Deprecated.Description copied from interface:IConfigurable
Configure 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:
configure
in interfaceIConfigurable
- Overrides:
configure
in classAbstractResultHandler
- Throws:
ConfigurationException
- in case it was not able to configure the component.
-
open
Deprecated.- Specified by:
open
in interfaceIResultHandler
- Overrides:
open
in classAbstractResultHandler
- Throws:
SenderException
-
close
Deprecated.- Specified by:
close
in interfaceIResultHandler
- Overrides:
close
in classAbstractResultHandler
- Throws:
SenderException
-
openDocument
Deprecated.Description copied from interface:IResultHandler
Called once, before the first record of a stream is presented to handleResult.- Specified by:
openDocument
in interfaceIResultHandler
- Overrides:
openDocument
in classResultWriter
- Parameters:
session
- current PipeLineSessionstreamId
- identification of the original file/stream/message- Throws:
Exception
-
closeDocument
Deprecated.- Specified by:
closeDocument
in interfaceIResultHandler
- Overrides:
closeDocument
in 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:
openBlock
in interfaceIResultHandler
- Overrides:
openBlock
in classResultWriter
- Throws:
Exception
-
closeBlock
public void closeBlock(PipeLineSession session, String streamId, String blockName, Map<String, Object> blocks) throws ExceptionDeprecated.- Specified by:
closeBlock
in interfaceIResultHandler
- Overrides:
closeBlock
in classResultWriter
- Throws:
Exception
-
setSender
Deprecated.Sender to which each block of results is sent
-