Class OpsViewManager
java.lang.Object
ecmwf.common.opsview.OpsViewManager
The Class OpsViewManager.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA wrapper aroundClientResponsethat implementsCloseable. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Constant ACQUISITION_FILTER_NAME.static final StringThe Constant DISSEMINATION_FILTER_NAME.protected static final String[]The Constant filtersList.static final StringThe Constant OTHER_FILTER_NAME.static final org.apache.wink.client.RestClientThe Constant REST_CLIENT. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdds the notes.static voidclearNotes(String destination) Clear notes.static voidDetail.static booleanChecks if is activated.static voidsync(Destination[] destinations) Sync.
-
Field Details
-
DISSEMINATION_FILTER_NAME
The Constant DISSEMINATION_FILTER_NAME. -
ACQUISITION_FILTER_NAME
The Constant ACQUISITION_FILTER_NAME. -
OTHER_FILTER_NAME
The Constant OTHER_FILTER_NAME. -
REST_CLIENT
public static final org.apache.wink.client.RestClient REST_CLIENTThe Constant REST_CLIENT. -
filtersList
The Constant filtersList.
-
-
Method Details
-
isActivated
public static boolean isActivated()Checks if is activated.- Returns:
- true, if is activated
-
detail
public static void detail(String hostname, String service, int status, String message) throws OpsViewManagerException, IOException, org.apache.wink.json4j.JSONException Detail.- Parameters:
hostname- the host nameservice- the servicestatus- the statusmessage- the message- Throws:
OpsViewManagerException- the ops view manager exceptionIOException- Signals that an I/O exception has occurred.org.apache.wink.json4j.JSONException- the JSON exception
-
sync
public static void sync(Destination[] destinations) throws OpsViewManagerException, IOException, org.apache.wink.json4j.JSONException Sync.- Parameters:
destinations- the destinations- Throws:
OpsViewManagerException- the ops view manager exceptionIOException- Signals that an I/O exception has occurred.org.apache.wink.json4j.JSONException- the JSON exception
-
clearNotes
public static void clearNotes(String destination) throws OpsViewManagerException, IOException, org.apache.wink.json4j.JSONException Clear notes.- Parameters:
destination- the destination- Throws:
OpsViewManagerException- the ops view manager exceptionIOException- Signals that an I/O exception has occurred.org.apache.wink.json4j.JSONException- the JSON exception
-
addNotes
public static void addNotes(String destination, String metadata) throws OpsViewManagerException, IOException, org.apache.wink.json4j.JSONException Adds the notes.- Parameters:
destination- the destinationmetadata- the metadata- Throws:
OpsViewManagerException- the ops view manager exceptionIOException- Signals that an I/O exception has occurred.org.apache.wink.json4j.JSONException- the JSON exception
-