Class 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.
    • Constructor Detail

      • PropertiesLogNode

        public PropertiesLogNode()
    • Method Detail

      • getWorkerClassName

        public String getWorkerClassName()
        Description copied from class: Node
        Return the node's associated com.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.
        The package name of the worker class is the name of the Node's package with an appended ".worker".

        This behavior can be overridden in concrete subclasses.

        Overrides:
        getWorkerClassName in class Node
        Returns:
        the full qualified class name of the worker of this node.
      • getPropertyLogMessageMap

        public Map<String,​String> getPropertyLogMessageMap()
      • 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.