public class ProcessorBinding extends AbstractNamed implements Child<Profile>
ProcessorBinding
specifies that when enacting a
Workflow
, if this particular ProcessorBinding
is
used, then the boundActivity will be used to implement the boundProcessor.
The ProcessorBinding
specifies the sets of input and output port bindings for the ports of the
Processor
. Note that there may not need to be a binding for every Processor
port, nor for every
Activity
port. However, the ports must be of the bound Processor
and Activity
.
It has not been decided if the binding must be unique for a given Processor
or Activity
port
within a ProcessorBinding
.
AbstractCloneable.Cloning, AbstractCloneable.CopyVisitor
Constructor and Description |
---|
ProcessorBinding() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Visitor visitor)
Accepts a
Visitor to this WorkflowBean . |
protected void |
cloneInto(WorkflowBean clone,
AbstractCloneable.Cloning cloning) |
Integer |
getActivityPosition()
Returns the relative position of the bound
Activity within the Processor (for the purpose of
Failover). |
Activity |
getBoundActivity()
Returns the
Activity that will be used to enact the Processor if this ProcessorBinding is
used. |
Processor |
getBoundProcessor()
Returns the
Processor for which a possible means of enactment is specified. |
Set<ProcessorInputPortBinding> |
getInputPortBindings()
Returns the bindings for individual input ports of the bound
Processor . |
Set<ProcessorOutputPortBinding> |
getOutputPortBindings()
Returns the bindings for individual output ports of the bound
Processor . |
Profile |
getParent()
Returns the parent of this workflow bean, or
null if it is orphan. |
void |
setActivityPosition(Integer activityPosition)
Sets the relative position of the bound
Activity within the processor (for the purpose of
Failover). |
void |
setBoundActivity(Activity boundActivity)
Sets the Activity that will be used to enact the
Processor if this ProcessorBinding is
used. |
void |
setBoundProcessor(Processor boundProcessor)
Sets the
Processor for which a possible means of enactment is specified. |
void |
setInputPortBindings(Set<ProcessorInputPortBinding> inputPortBindings)
Sets the bindings for individual input ports of the bound
Processor . |
void |
setOutputPortBindings(Set<ProcessorOutputPortBinding> outputPortBindings)
Sets the bindings for individual output ports of the bound
Processor . |
void |
setParent(Profile parent)
Sets the parent of this workflow bean.
|
String |
toString() |
compareTo, equals, getName, hashCode, setName
clone, cloneWorkflowBean
finalize, getClass, notify, notifyAll, wait, wait, wait
clone
public boolean accept(Visitor visitor)
WorkflowBean
Visitor
to this WorkflowBean
.accept
in interface WorkflowBean
visitor
- the Visitor
to accepttrue
if this WorkflowBeans
children should be visited.public final Integer getActivityPosition()
Activity
within the Processor
(for the purpose of
Failover).
Activity
s will be ordered by this position. Gaps will be ignored, overlapping Activity
positions will have an undetermined order.
Activity
within the Processor
public Activity getBoundActivity()
Activity
that will be used to enact the Processor
if this ProcessorBinding is
used.Activity
that will be used to enact the Processor
public Processor getBoundProcessor()
Processor
for which a possible means of enactment is specified.Processor
for which a possible means of enactment is specifiedpublic Set<ProcessorInputPortBinding> getInputPortBindings()
Processor
.Processor
public Set<ProcessorOutputPortBinding> getOutputPortBindings()
Processor
.Processor
public Profile getParent()
Child
null
if it is orphan.public void setActivityPosition(Integer activityPosition)
Activity
within the processor (for the purpose of
Failover).
Activity
s will be ordered by this position. Gaps will be ignored, overlapping Activity
positions will have an undetermined order.
activityPosition
- the relative position of the bound Activity
within the Processor
public void setBoundActivity(Activity boundActivity)
Processor
if this ProcessorBinding is
used.boundActivity
- the Activity that will be used to enact the Processor
public void setBoundProcessor(Processor boundProcessor)
Processor
for which a possible means of enactment is specified.boundProcessor
- the Processor
for which a possible means of enactment is specifiedpublic void setInputPortBindings(Set<ProcessorInputPortBinding> inputPortBindings)
Processor
.inputPortBindings
- the bindings for individual input ports of the bound Processor
public void setOutputPortBindings(Set<ProcessorOutputPortBinding> outputPortBindings)
Processor
.outputPortBindings
- the bindings for individual output ports of the bound Processor
public void setParent(Profile parent)
Child
Setting the parent would normally also add the object to the relevant collection in the parent if it does not already exist there.
If the child has an existing, object-identity different parent, the child will first be removed from the parent collection if it exists there.
Note:If the child is Named
the parent collection will be a
NamedSet
. This implicit insertion would overwrite any conflicting sibling with the
same Named.getName()
- to avoid this, add the child to the parent collection by using
NamedSet.addWithUniqueName(Named)
before setting the parent.
public String toString()
toString
in class AbstractNamed
protected void cloneInto(WorkflowBean clone, AbstractCloneable.Cloning cloning)
cloneInto
in class AbstractNamed
Copyright © 2013 myGrid. All rights reserved.