Interface IPluginMonitor
- All Superinterfaces:
IFCPlugin
,INamedUiElement
,INameProviding
,ITransferable
,Serializable
A plugin for checking the current status of the formcycle system via monitoring MBeans. Contains one main method,
check()
, which lets you return a custom error message in case a web service etc. is currently not available.- Author:
- XIMA MEDIA GmbH
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The constant for a non-successful check.static final String
The constant for a successful check.Fields inherited from interface de.xima.fc.plugin.interfaces.IFCPlugin
CONFIG_FILENAME
Fields inherited from interface de.xima.fc.interfaces.INamedUiElement
ATTR_DISPLAY_NAME
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
-
Method Summary
Methods inherited from interface de.xima.fc.plugin.interfaces.IFCPlugin
getDescription, getDescription, getDisplayName, getName, initialize, initPlugin, install, shutdown, shutdown, uninstall, validateConfigurationData
-
Field Details
-
CHECK_SUCCESS
The constant for a successful check. Evaluates to "success".- See Also:
-
CHECK_ERROR
The constant for a non-successful check. Evaluates to "error".- See Also:
-
-
Method Details
-
getObjectName
Override this method to define a custom monitor name. Defaults to the name of this class. The monitor key is the key for which the error message returned bycheck()
is displayed.- Returns:
- The key for this monitor.
-
check
This method is invoked each time the monitor is refreshed. In case the check was successful, this must returnCHECK_SUCCESS
. If the check was not successful, you have got the following options:- Throw an
Exception
. - Return an error message. This error message is shown by the monitoring MBean. You may return any arbitrary
error message string, or use
CHECK_ERROR
. Make sure you do not return the value ofCHECK_SUCCESS
, as that is interpreted as a successful check.
- Throw an
-