@Category(value="NN-Special") public class RekenBoxCaller extends FixedForwardPipe
Note:
The rekenbox-name is currently determined from the first 8 characters of the file, or up
to the first space (' ') or colon (':') character. Beware that if the first character of the
file is a newline character or something similar, less characters are available to pass the
rekenbox-name on. Especially if the inputmessages are constructed by means of an XSLT-stylesheet,
messages often start with a newline character.
parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
RekenBoxCaller() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
checks for correct configuration of forward
|
PipeRunResult |
doPipe(Message message,
PipeLineSession session)
positie 1 t/m 8 bepalen de naam van de executable, of tot aan de ':' (wat het eerst komt)
|
String |
getBaseFileName() |
String |
getCommandLineType() |
String |
getDataFilenamePrefix() |
String |
getExecutableExtension() |
String |
getInputOutputDirectory() |
long |
getMaxRequestNumber() |
String |
getRekenBoxName() |
String |
getRekenboxSessionKey() |
String |
getRunPath() |
String |
getTemplateDir() |
protected boolean |
inputFileExists(long requestno,
String extension) |
boolean |
isCleanup() |
protected String |
makeFileName(long requestno,
String extension) |
void |
setCleanup(boolean newCleanup)
If
true , input and output files are removed after the call to the rekenbox is finished |
void |
setCommandLineType(String newCommandLineType)
Format of commandline of rekenbox.
|
void |
setDataFilenamePrefix(String string)
First part of filenames that communicate requests and replies to rekenbox
|
void |
setExecutableExtension(String newExecutableExtension)
Extension of rekenbox-executable
|
void |
setInputOutputDirectory(String newInputOutputDirectory)
Directory on server where input and output files are (temporarily) stored
|
void |
setMaxRequestNumber(long l)
Maximal number that will be concatenated to dataFilenamePrefix
|
void |
setRekenBoxName(String string)
Fixed name of the rekenbox (or wrapper) to be called.
|
void |
setRekenboxSessionKey(String newRekenboxSessionKey)
Key in pipeLineSession to store rekenbox name in
|
void |
setRunPath(String newRunPath)
Directory on server where rekenbox-executable can be found
|
void |
setTemplateDir(String newTemplateDir)
Rekenbox template directory on server
|
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipe
addParameter, consumesSessionVariable, createBean, findForward, getAdapter, getEventSourceName, getForwards, getInSizeStatDummyObject, getOutSizeStatDummyObject, getParameterList, getParameterOverriddenAttributeValue, getParameterValueList, hasSizeStatistics, registerEvent, registerForward, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, start, stop, throwEvent
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChompCharSize, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getGetInputFromFixedValue, getGetInputFromSessionKey, getLocker, getSecLogSessionKeys, getStoreResultInSessionKey, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, setPipeLine
getMaxThreads
getName
getApplicationContext, getName
getConfigurationClassLoader
getName
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
public void configure() throws ConfigurationException
FixedForwardPipe
configure
in interface IConfigurable
configure
in interface IPipe
configure
in class FixedForwardPipe
ConfigurationException
protected boolean inputFileExists(long requestno, String extension)
public String getBaseFileName()
public PipeRunResult doPipe(Message message, PipeLineSession session) throws PipeRunException
doPipe
in interface IPipe
doPipe
in class AbstractPipe
PipeRunException
public void setRekenBoxName(String string)
public String getRekenBoxName()
public void setRunPath(String newRunPath)
public String getRunPath()
public void setTemplateDir(String newTemplateDir)
public String getTemplateDir()
public void setInputOutputDirectory(String newInputOutputDirectory)
public String getInputOutputDirectory()
public void setCommandLineType(String newCommandLineType)
public String getCommandLineType()
public void setExecutableExtension(String newExecutableExtension)
public String getExecutableExtension()
public void setCleanup(boolean newCleanup)
true
, input and output files are removed after the call to the rekenbox is finishedpublic boolean isCleanup()
public void setRekenboxSessionKey(String newRekenboxSessionKey)
public String getRekenboxSessionKey()
public void setDataFilenamePrefix(String string)
public String getDataFilenamePrefix()
public void setMaxRequestNumber(long l)
public long getMaxRequestNumber()
Copyright © 2023 Frank!Framework. All rights reserved.