public interface StreamScriptContext
ScriptNode
/
ScriptWorker
) communicate with the server through this interface.Modifier and Type | Method and Description |
---|---|
void |
debug(String message,
Object... args)
Emit a debug message into the log if debugging is enabled.
|
void |
error(com.levigo.util.log.qualified.MessageID messageId,
Throwable cause,
Object... args) |
void |
error(String message,
Object... args)
Emit an error message into the log.
|
void |
error(String message,
Throwable cause,
Object... args)
Emit an error message into the log.
|
void |
fail(com.levigo.util.log.qualified.MessageID messageId,
Throwable cause,
Object... args) |
void |
fail(String message,
Object... args)
Abort the job giving the specified message as a reason.
|
void |
fail(String message,
Throwable cause,
Object... args)
Abort the job giving the specified message as a reason.
|
Job |
getClientJob() |
Stream |
getNextInput()
Get the next input stream.
|
Map<String,Serializable> |
getParameters() |
ServerJob |
getServerJob() |
ScriptWorker |
getWorker() |
boolean |
hasNextInput() |
void |
info(String message,
Object... args)
Emit an info message into the log if info logging is enabled.
|
void |
loopback(InputStream is,
StreamDescriptor type)
Loop back the given stream (described by the given stream descriptor)
into the current node.
|
void |
loopback(List<Stream> s,
Node inputNode,
Node outputNode) |
void |
loopback(Node input,
Node output)
Process a sub-pipeline defined by the input and output node and loop back
its output into the current node.
|
void |
loopback(Stream s)
Loop back the given stream into the current node.
|
OutputStream |
loopback(StreamDescriptor type) |
void |
loopback(Stream s,
Node inputNode,
Node outputNode) |
void |
output(InputStream is,
StreamDescriptor type)
Output the given stream (described by the given stream descriptor) to
down-stream nodes.
|
void |
output(List<Stream> s,
Node inputNode,
Node outputNode) |
void |
output(Node input,
Node output)
Process a sub-pipeline defined by the input and output node.
|
void |
output(Stream s)
Output the given stream to down-stream nodes.
|
OutputStream |
output(StreamDescriptor type)
Create an
OutputStream described by the given stream descriptor
which feeds into down-stream nodes. |
void |
output(Stream s,
Node inputNode,
Node outputNode) |
StreamBundle |
process(List<Stream> s,
Node inputNode,
Node outputNode) |
StreamBundle |
process(Node inputNode,
Node outputNode)
Execute the sub-pipeline defined by the input and output node and return the result as a
StreamBundle . |
StreamBundle |
process(Stream s,
Node inputNode,
Node outputNode) |
void |
warn(com.levigo.util.log.qualified.MessageID messageId,
Throwable cause,
Object... args) |
void |
warn(String message,
Object... args)
Emit a warning message into the log.
|
void |
warn(String message,
Throwable cause,
Object... args)
Emit a warning message into the log.
|
Stream getNextInput()
Stream
or null
if there are
no more streams to be processed.boolean hasNextInput()
Stream
that waits for being processedgetNextInput()
ScriptWorker getWorker()
ScriptNode
ServerJob getServerJob()
ServerJob
associated with this ScriptNode
Job getClientJob()
Job
associated with this ScriptNode
Map<String,Serializable> getParameters()
void output(Node input, Node output) throws Throwable
input
- output
- Throwable
void output(InputStream is, StreamDescriptor type) throws IOException
is
- type
- IOException
void output(Stream s)
s
- OutputStream output(StreamDescriptor type) throws IOException
OutputStream
described by the given stream descriptor
which feeds into down-stream nodes.type
- IOException
void loopback(Node input, Node output) throws Throwable
input
- output
- Throwable
void loopback(InputStream is, StreamDescriptor type) throws IOException
is
- type
- IOException
void loopback(Stream s)
s
- OutputStream loopback(StreamDescriptor type) throws IOException
type
- IOException
StreamBundle process(Node inputNode, Node outputNode) throws Throwable
StreamBundle
.inputNode
- outputNode
- Throwable
void debug(String message, Object... args)
MessageFormat
.message
- args
- void info(String message, Object... args)
MessageFormat
.message
- args
- void warn(String message, Object... args)
MessageFormat
.
The warning is also forwarded to any JobListener
s of the current
job.message
- args
- void warn(String message, Throwable cause, Object... args)
MessageFormat
.
The warning is also forwarded to any JobListener
s of the current
job.
The message is accompanied with the given Throwable
causing the
warning.message
- cause
- args
- void error(String message, Object... args)
MessageFormat
.
The error message is also forwarded to any JobListener
s of the
current job.message
- args
- void error(String message, Throwable cause, Object... args)
MessageFormat
.
The error message is also forwarded to any JobListener
s of the
current job.
The message is accompanied with the given Throwable
causing the
error.message
- cause
- args
- void fail(String message, Object... args)
MessageFormat
.message
- args
- void fail(String message, Throwable cause, Object... args)
MessageFormat
.
The message is accompanied with the given Throwable
causing the
error.message
- cause
- args
- void loopback(Stream s, Node inputNode, Node outputNode) throws Throwable
Throwable
StreamBundle process(Stream s, Node inputNode, Node outputNode) throws Throwable
Throwable
void loopback(List<Stream> s, Node inputNode, Node outputNode) throws Throwable
Throwable
void output(List<Stream> s, Node inputNode, Node outputNode) throws Throwable
Throwable
StreamBundle process(List<Stream> s, Node inputNode, Node outputNode) throws Throwable
Throwable
void error(com.levigo.util.log.qualified.MessageID messageId, Throwable cause, Object... args)
Copyright © 2017 levigo holding gmbh. All rights reserved.