Interface MonitorInterface
- All Known Implementing Classes:
OpsviewProvider
public interface MonitorInterface
ECMWF Product Data Store (OpenECPDS) Project
This interface should be implemented by any class which implement a monitoring protocol (e.g. Nagios, Bigsister).
- Since:
- 2024-07-01
- Version:
- 6.7.7
- Author:
- Laurent Gougeon - syi@ecmwf.int, ECMWF.
-
Method Summary
-
Method Details
-
sendMessage
-
addNotes
Adds/replaces the notes attached to a destination/host. Adefaultmethod (rather than a second abstract one) so thatsendMessage(String, String, int, String)remains this interface's only abstract method - existing providers set up as a lambda (a single-method functional interface, e.g. a DataMover relayingsendMessagecalls to the MasterServer over its REST proxy) keep compiling unchanged, and simply don't support notes: the default throwsUnsupportedOperationException, whichMonitorManager.addNotes(String, int, String)turns into aMonitorExceptionfor the caller.- Parameters:
destination- the destinationtype- the destination's type (ecmwf.ecpds.master.transfer.DestinationOption), used by providers that group destinations by type (e.g. Opsview's Acquisition/Dissemination/Other filters)metadata- the metadata- Throws:
Exception- the exception
-