public class MonitoringService extends java.lang.Object implements IMonitoring
Constructor and Description |
---|
MonitoringService(BmContext context) |
Modifier and Type | Method and Description |
---|---|
Config |
getConfig()
TMP: fetches CPU and RAM information
|
MethodInformation |
getMethodInfo(java.lang.String plugin,
java.lang.String service,
java.lang.String method)
Fetches all information from a method belonging to a given service
|
PluginInformation |
getPluginInfo(java.lang.String plugin)
Fetches all information from a single given plugin
|
PluginsList |
getPluginsInfo()
Fetches a list of all information (plugin information, service
information, method information, server information) from every
monitoring plugin.
|
ServerInformation |
getServerInfo(java.lang.String plugin,
java.lang.String service,
java.lang.String method,
java.lang.String server)
Fetches information from a given method belonging to a specific server
|
ServiceInformation |
getServiceInfo(java.lang.String plugin,
java.lang.String service)
Fetches all information from a service belonging to a given plugin
|
public MonitoringService(BmContext context)
public PluginsList getPluginsInfo() throws java.lang.Exception
IMonitoring
getPluginsInfo
in interface IMonitoring
java.lang.Exception
public PluginInformation getPluginInfo(java.lang.String plugin) throws java.lang.Exception
IMonitoring
getPluginInfo
in interface IMonitoring
plugin
- the plugin from which the information must be fetchedjava.lang.Exception
public ServiceInformation getServiceInfo(java.lang.String plugin, java.lang.String service) throws java.lang.Exception
IMonitoring
getServiceInfo
in interface IMonitoring
plugin
- the plugin containing the serviceservice
- the service from which the information must be fetchedjava.lang.Exception
public MethodInformation getMethodInfo(java.lang.String plugin, java.lang.String service, java.lang.String method) throws java.lang.Exception
IMonitoring
getMethodInfo
in interface IMonitoring
plugin
- the plugin containing the serviceservice
- the service containing the methodmethod
- the method from which the information must be fetchedjava.lang.Exception
public ServerInformation getServerInfo(java.lang.String plugin, java.lang.String service, java.lang.String method, java.lang.String server) throws java.lang.Exception
IMonitoring
getServerInfo
in interface IMonitoring
plugin
- the plugin containing the serviceservice
- the service containing the methodmethod
- the method to be usedserver
- the server from which the information must be fetchedjava.lang.Exception
public Config getConfig() throws java.lang.Exception
IMonitoring
getConfig
in interface IMonitoring
java.lang.Exception
Copyright © 2021. All Rights Reserved.