public interface LogicalGraphInstance extends LogicalGraphInstanceView
LogicalGraph
in a specified execution environment.
A LogicalGraphInstance is the central point of management
for the execution of a logical graph. It:
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Cancels any executing processes.
|
OperatorInstance |
getOperatorInstance(LogicalOperator operator)
Looks up an operator instance by the
LogicalOperator added to the
graph. |
InputPortInstance |
getPortInstance(LogicalPort inputPort)
Looks up an operator instance by the input port of a
LogicalOperator
that was added to the graph. |
void |
join()
Waits for an already executing graph instance
to terminate.
|
void |
run()
Executes the graph instance synchronously.
|
void |
start()
Executes the graph instance in the background
Control is immediately returned to the caller.
|
getChildren, getGraphInstanceGUID, getName, getPath, getSnapshot, getStatevoid run()
complete state.
This is similar to calling start(), then
join().
DROperatorException - if errors occur during
execution of the graphGraphCancellationException - if the graph is canceled
using abort() or if the calling thread is
is interrupted while blocked. If the caller should
handle its own interruptions, use start() and
join() instead.IllegalStateException - if the instance has already
been executed or canceled.void start()
EXECUTING.IllegalStateException - if the instance has
already been executed or canceled.void abort()
complete, the
request is ignored.void join() throws InterruptedException
complete.InterruptedException - if the wait is interruptedDROperatorException - if errors occurred during
execution of the process network.GraphCancellationException - if the graph was
canceled using abort().OperatorInstance getOperatorInstance(LogicalOperator operator)
LogicalOperator added to the
graph.operator - must be an operator that was added to the graphnull if not found.InputPortInstance getPortInstance(LogicalPort inputPort)
LogicalOperator
that was added to the graph.inputPort - must be an input port of a LogicalOperatornull if not found.Copyright © 2016 Actian Corporation. All rights reserved.