public interface CompositeProcessorDiagram extends ProcessorDiagram
CompositeProcessor
objects to store
nodes. It allows connections between the two pseudo nodes,
(the input connector and output connector) and other nodes in the diagram
to be edited.CompositeProcessor
Modifier and Type | Method and Description |
---|---|
void |
disconnectInputConnector()
Removes any direct links between the diagram's input connector and other nodes
in the diagram.
|
void |
disconnectOutputConnector()
Removes any direct links between the diagram's output connector and other nodes
in the diagram.
|
Processor |
getInputConnector()
Returns the input connector from this diagram,
or
null if the diagram belongs to
an initial node and has no input connector. |
Processor |
getOutputConnector()
Returns the output connector from this diagram,
or
null if the diagram belongs to
a terminal node and has no output connector. |
void |
linkFromInputConnector(Processor node)
Creates a link from the input connector to the supplied node.
|
void |
linkToOutputConnector(Processor node)
Creates a link from the supplied node to the output connector.
|
ExecutionHandle |
runAll(java.util.Collection results)
Executes the executable nodes within this sub-stream synchronously and waits for it to complete.
|
ExecutionHandle |
runSelected(Processor[] nodes,
java.util.Collection results)
Executes the supplied array of nodes synchronously and waits for them to complete.
|
void |
unlinkFromInputConnector(Processor node)
Removes any direct link from the input connector to the supplied node.
|
void |
unlinkToOutputConnector(Processor node)
Removes any direct link from the supplied node to the output connector.
|
clear, commentCount, comments, create, createAt, createCommentAt, createCompositeAt, createModelApplier, createModelApplierAt, delete, deleteAll, deleteComment, deleteComments, disconnect, expandComposite, findAll, findAll, findAll, findByID, findByType, findCommentByID, findDownstream, findProcessorForID, findProcessorForID, findProcessorLabel, findProcessorType, findUpstream, flushCaches, getHeight, getProcessorCount, getProcessorFactory, getWidth, insert, insert, isEnabled, isOwner, isValidLink, iterator, link, link, linkBetween, linkPath, linkUpdater, predecessorAt, predecessorCount, predecessors, processorIterator, replace, setEnabled, setSize, size, successorAt, successorCount, successors, unlink, unlink, unlinkPath, unlinkUpdater
void disconnectInputConnector() throws ObjectLockedException
ObjectLockedException
- if the diagram is currently lockedvoid disconnectOutputConnector() throws ObjectLockedException
ObjectLockedException
- if the diagram is currently lockedvoid linkFromInputConnector(Processor node) throws OwnerException, ObjectLockedException, InvalidEditException
OwnerException
- if any objects in the path are not owned
by this diagramObjectLockedException
- if the diagram is currently lockedInvalidEditException
- if the connection would be invalidvoid linkToOutputConnector(Processor node) throws OwnerException, ObjectLockedException, InvalidEditException
OwnerException
- if any objects in the path are not owned
by this diagramObjectLockedException
- if the diagram is currently lockedInvalidEditException
- if the connection would be invalidvoid unlinkFromInputConnector(Processor node) throws OwnerException, ObjectLockedException, InvalidEditException
OwnerException
- if any objects in the path are not owned
by this diagramObjectLockedException
- if the diagram is currently lockedInvalidEditException
- if the connection would be invalidvoid unlinkToOutputConnector(Processor node) throws OwnerException, ObjectLockedException, InvalidEditException
OwnerException
- if any objects in the path are not owned
by this diagramObjectLockedException
- if the diagram is currently lockedInvalidEditException
- if the connection would be invalidProcessor getInputConnector()
null
if the diagram belongs to
an initial node and has no input connector.Processor getOutputConnector()
null
if the diagram belongs to
a terminal node and has no output connector.ExecutionHandle runAll(java.util.Collection results) throws OwnerException, ObjectLockedException, ServerConnectionException, SessionException
ExecutionHandle
which can be used to access the exit status and any result from the task.
Note that this should only be called on a terminal CompositeProcessor
.
results
- an empty collection that will contain any built objects once execution has completedOwnerException
- if the stream was not created by this sessionObjectLockedException
- if the stream is lockedServerConnectionException
- if the stream is not connected to a serverSessionException
- if the session is already running
another task, cannot execute the task or if execution completes in
a state other than SUCCESS
runSelected(Processor[], Collection)
,
Processor.run(Collection)
ExecutionHandle runSelected(Processor[] nodes, java.util.Collection results) throws OwnerException, ObjectLockedException, ServerConnectionException, SessionException
ExecutionHandle
which can be used to access the exit status and any result from the task.
Note that this should only be called on a terminal CompositeProcessor
.
nodes
- the array of Processor
objects to be executedresults
- an empty collection that will contain any built objects once execution has completedOwnerException
- if the nodes are not all owned by this streamObjectLockedException
- if the stream is lockedServerConnectionException
- if the stream is not connected to a serverSessionException
- if the session is already running a stream,
another task, cannot execute the task or if execution completes in
a state other than SUCCESS
java.lang.IllegalArgumentException
- if the array is emptyProcessor.run(Collection)
(C) Copyright IBM Corp. 1994, 2015. All Rights Reserved.