Class NotificationNode
- java.lang.Object
-
- com.levigo.jadice.server.internal.NodeInternal
-
- com.levigo.jadice.server.Node
-
- com.levigo.jadice.server.notification.NotificationNode
-
public class NotificationNode extends Node
ANode
that notifies the client about everyStream
that passes through it. RegisterNotificationNode.NotificationListener
s that care about these events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NotificationNode.NotificationListener
The listener that's notified when aStream
passes through this node.-
Nested classes/interfaces inherited from class com.levigo.jadice.server.Node
Node.Cardinality
-
-
Constructor Summary
Constructors Constructor Description NotificationNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNotificationResultListener(NotificationNode.NotificationListener listener)
Adds a listener to be informed about aStream
passing through this node.String
getWorkerClassName()
Return the node's associatedcom.levigo.jadice.server.core.NodeWorker
full qualified class's name.protected void
initialize(CommunicationSide side)
void
removeNotificationResultListener(NotificationNode.NotificationListener listener)
Removes aNotificationNode.NotificationListener
for the events.-
Methods inherited from class com.levigo.jadice.server.Node
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, hashCode, prependPredecessor, remove, validateConfiguration
-
-
-
-
Method Detail
-
initialize
protected void initialize(CommunicationSide side)
- Overrides:
initialize
in classNode
-
addNotificationResultListener
public void addNotificationResultListener(NotificationNode.NotificationListener listener)
Adds a listener to be informed about aStream
passing through this node.- Parameters:
listener
- The listener to add
-
removeNotificationResultListener
public void removeNotificationResultListener(NotificationNode.NotificationListener listener)
Removes aNotificationNode.NotificationListener
for the events.- Parameters:
listener
- The listener to remove
-
getWorkerClassName
public String getWorkerClassName()
Description copied from class:Node
Return the node's associatedcom.levigo.jadice.server.core.NodeWorker
full qualified class's name. By default, the worker class name is- The same as the node name with the trailing "Node" replaced by "Worker" if the node name ends in "Node"
- The node class name with an appended "Worker" otherwise.
This behavior can be overridden in concrete subclasses.
- Overrides:
getWorkerClassName
in classNode
- Returns:
- the full qualified class name of the worker of this node.
-
-