Package com.levigo.jadice.server.nodes
Class PropertiesLogNode
- java.lang.Object
-
- com.levigo.jadice.server.internal.NodeInternal
-
- com.levigo.jadice.server.Node
-
- com.levigo.jadice.server.nodes.PropertiesLogNode
-
public class PropertiesLogNode extends Node
This node allows to define job properties that are printed out in the server's log messages. In order to provide contextual information the client further provides this contextual information via predefined log messages (mapped to the property name) that contain placeholder that are on the server side replaced by the actual value of the job property.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.levigo.jadice.server.Node
Node.Cardinality
-
-
Constructor Summary
Constructors Constructor Description PropertiesLogNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getPropertyLogMessageMap()
String
getWorkerClassName()
Return the node's associatedcom.levigo.jadice.server.core.NodeWorker
full qualified class's name.void
setPropertyLogMessageMap(Map<String,String> propertyLogMessageMap)
This method allows to set a user-defined mapping between property name and the log message that shall provide contextual information when printing out the property value.-
Methods inherited from class com.levigo.jadice.server.Node
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, hashCode, initialize, prependPredecessor, remove, validateConfiguration
-
-
-
-
Method Detail
-
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.
-
setPropertyLogMessageMap
public void setPropertyLogMessageMap(Map<String,String> propertyLogMessageMap)
This method allows to set a user-defined mapping between property name and the log message that shall provide contextual information when printing out the property value. Utilization: A user can define the log messages that contain a placeholder "{}". During job processing via this node's worker the corresponding property value is inserted instead of the placeholder.- Parameters:
propertyLogMessageMap
- the user defined property name to log message mapping.
-
-