Package com.streambase.sb.monitor
Interface MonitorListener
public interface MonitorListener
Implement this interface in order to receive the information produced by a
StreamBaseMonitor object.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
snapshotReceived
(Snapshot monSnap) Called by a StreamBaseMonitor object when it has received a Snapshot.
-
Method Details
-
snapshotReceived
Called by a StreamBaseMonitor object when it has received a Snapshot.The snapshot object must only be used within the invocation of this method, as it will cease to be valid as soon as snapshotReceived returns. For example, an implementation of this interface should not pass the snapshot object to another thread for asynchronous processing, because the snapshot may have become invalid by the time that thread receives the snapshot.
If you need to store a snapshot for later processing, you may
clone()
individual objects in the snapshot (ThreadInfo, SystemInfo, etc.)- Parameters:
monSnap
- Snapshot just received from the StreamBase server.- See Also:
-