public abstract class Node
extends com.levigo.jadice.server.internal.NodeInternal
Modifier and Type | Class and Description |
---|---|
static class |
Node.Cardinality
Cardinality enum for input/output bundles.
|
Constructor and Description |
---|
Node() |
Modifier and Type | Method and Description |
---|---|
protected void |
addTransportReceiver(com.levigo.jadice.server.shared.transport.internal.TransportReceiver receiver)
Add a
TransportReceiver for this node. |
Node |
appendSuccessor(Node successor)
Append one successor ("child" in tree lingo) to this node.
|
void |
apply(Limit limit)
Apply a
Limit to this Node. |
boolean |
equals(Object obj) |
Node.Cardinality |
getInputCardinality()
Return the input cardinality of this node, i.e.
|
Job |
getJob()
Get the associated job, or
null if the node is not yet
initialized. |
Node.Cardinality |
getOutputCardinality()
Return the output cardinality of this node, i.e.
|
List<Node> |
getPredecessors()
Get the predecessors ("parents" in tree lingo) to this node.
|
Set<? extends Node> |
getSubsidiaryNodes()
Node s that were created on behalf of this node while executing the job on the server
side can be retrieved with this method. |
List<Node> |
getSuccessors()
Get the successors ("children" in tree lingo) of this node.
|
protected com.levigo.jadice.server.shared.transport.internal.TransportSender |
getTransportSender()
Return a
TransportSender for this node. |
String |
getUUID()
Get the node's UUID.
|
String |
getWorkerClassName()
Return the node's associated
NodeWorker full qualified class's
name. |
int |
hashCode() |
protected void |
initialize(CommunicationSide side) |
Node |
prependPredecessor(Node predecessor)
Add a predecessor ("parent" in tree lingo) to this node.
|
boolean |
remove(Limit limit)
Remove a previously applied
Limit . |
protected void |
validateConfiguration() |
public List<Node> getSuccessors()
public String getUUID()
public Node.Cardinality getInputCardinality()
public Node.Cardinality getOutputCardinality()
public Node appendSuccessor(Node successor)
successor
- public String getWorkerClassName()
Return the node's associated
NodeWorker
full qualified class's
name. By default, the worker class name is
This behavior can be overridden in concrete subclasses.
public Node prependPredecessor(Node predecessor)
predecessor
- public List<Node> getPredecessors()
public Set<? extends Node> getSubsidiaryNodes()
Node
s that were created on behalf of this node while executing the job on the server
side can be retrieved with this method.public Job getJob()
null
if the node is not yet
initialized.protected void initialize(CommunicationSide side)
initialize
in class com.levigo.jadice.server.internal.NodeInternal
protected final com.levigo.jadice.server.shared.transport.internal.TransportSender getTransportSender()
TransportSender
for this node. The server sided worker
can use this to communicate with the client sided node.protected final void addTransportReceiver(com.levigo.jadice.server.shared.transport.internal.TransportReceiver receiver)
TransportReceiver
for this node.receiver
- protected void validateConfiguration() throws ConfigurationException
validateConfiguration
in class com.levigo.jadice.server.internal.NodeInternal
ConfigurationException
public void apply(Limit limit)
Limit
to this Node.limit
- The limit to applyCopyright © 2017 levigo holding gmbh. All rights reserved.