Package i5.las2peer.logging
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 TypeMethodDescriptionvoid
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.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.
-
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 eventevent
- the event to logsourceNode
- 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 eventevent
- the event to logsourceNode
- 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 remarkscaseId
- caseId of the eventactivityName
- activityName of the eventresourceId
- resourceId of the eventresourceType
- resourceType of the event
-