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 Summary

    Modifier and Type
    Method
    Description
    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.
  • 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