Interface NodeObserver

All Known Implementing Classes:
L2pLogger, MonitoringObserver

public interface NodeObserver
The NodeObserver is an interface providing all necessary methods to monitor all interesting node events for a Node (mainly PastryNodeImpl).
  • Method Details

    • log

      void log(Long timestamp, MonitoringEvent event, String sourceNode, String sourceAgentId, String destinationNode, String destinationAgentId, String remarks)
      Each call represents one event to log by this observer. All parameters except the time stamp and the event may be null.
      Parameters:
      timestamp - UNIX time stamp of the event
      event - the event to log
      sourceNode - a source (p2p) node of the event (e.g. message sender)
      sourceAgentId - a source (las2peer) agent of the event (e.g. message sender)
      destinationNode - a destination (p2p) node for the event (e.g. message receiver)
      destinationAgentId - a destination (las2peer) agent of the event (e.g. message receiver)
      remarks - (optional) additional remarks
    • logXESEvent

      void logXESEvent(Long timestamp, MonitoringEvent event, String sourceNode, String sourceAgentId, String destinationNode, String destinationAgentId, String remarks, String caseId, String activityName, String resourceId, String resourceType, String lifecyclePhase, Long timeOfEvent)
      Each call represents one event to log by this observer. All parameters except the time stamp and the event may be null. Additionally, this method logs the caseId, activityName, resourceId and resourceType of the event.
      Parameters:
      timestamp - UNIX time stamp of the event
      event - the event to log
      sourceNode - a source (p2p) node of the event (e.g. message sender)
      sourceAgentId - a source (las2peer) agent of the event (e.g. message sender)
      destinationNode - a destination (p2p) node for the event (e.g. message receiver)
      destinationAgentId - a destination (las2peer) agent of the event (e.g. message receiver)
      remarks - (optional) additional remarks
      caseId - caseId of the event
      activityName - activityName of the event
      resourceId - resourceId of the event
      resourceType - resourceType of the event