Package net.welen.jmole
Interface JMoleMBean
-
- All Known Implementing Classes:
JMole
public interface JMoleMBeanMBean interface for JMole
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectcollectMeasurement(String category, String name, String attribute)Collects all measurements stated in the current configuration that matches the provided parametersStringcollectMeasurementAsJSON(String category, String name, String attribute)Map<String,List<Map<String,Map<String,Object>>>>collectMeasurements()Collects all measurements stated in the current configurationMap<String,Map<String,Object>>collectMeasurements(String category)Collects all measurements stated in the current configuration that matches the provided parametersMap<String,Object>collectMeasurements(String category, String name)Collects all measurements stated in the current configuration that matches the provided parametersStringcollectMeasurementsAsJSON()StringcollectMeasurementsAsJSON(String category)StringcollectMeasurementsAsJSON(String category, String name)voidconfigure()Read and parses the config files and construct a new internal java representation.Map<String,Map<String,String>>criticalMessages()Get all currently triggered critical thresholdsStringcriticalMessagesAsJSON()String[]getAllJMoleSystemProperties()StringgetConfigFileNames()intgetLevel()intgetNumberOfConfigurations()intgetNumberOfThresholds()intgetNumberOfThresholdThreads()Map<String,Map<String,String>>warningMessages()Get all currently triggered warning thresholdsStringwarningMessagesAsJSON()
-
-
-
Method Detail
-
configure
void configure() throws MalformedObjectNameException, FileNotFoundException, MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, IntrospectionExceptionRead and parses the config files and construct a new internal java representation. Also activates any thresholds present in that config
-
collectMeasurements
Map<String,List<Map<String,Map<String,Object>>>> collectMeasurements() throws InstanceNotFoundException, ReflectionException, MBeanException, AttributeNotFoundException, IntrospectionException
Collects all measurements stated in the current configuration- Returns:
- A complex Map of data
- Throws:
InstanceNotFoundExceptionReflectionExceptionMBeanExceptionAttributeNotFoundExceptionIntrospectionException
-
collectMeasurementsAsJSON
String collectMeasurementsAsJSON() throws InstanceNotFoundException, ReflectionException, MBeanException, AttributeNotFoundException, IntrospectionException
-
collectMeasurements
Map<String,Map<String,Object>> collectMeasurements(String category) throws InstanceNotFoundException, ReflectionException, MBeanException, AttributeNotFoundException, IntrospectionException
Collects all measurements stated in the current configuration that matches the provided parameters- Parameters:
category- The category- Returns:
- A complex Map of data
- Throws:
InstanceNotFoundExceptionReflectionExceptionMBeanExceptionAttributeNotFoundExceptionIntrospectionException
-
collectMeasurementsAsJSON
String collectMeasurementsAsJSON(String category) throws InstanceNotFoundException, ReflectionException, MBeanException, AttributeNotFoundException, IntrospectionException
-
collectMeasurements
Map<String,Object> collectMeasurements(String category, String name) throws InstanceNotFoundException, ReflectionException, MBeanException, AttributeNotFoundException, IntrospectionException
Collects all measurements stated in the current configuration that matches the provided parameters- Parameters:
category- The categoryname- The name of the measurement group- Returns:
- A complex Map of data
- Throws:
InstanceNotFoundExceptionReflectionExceptionMBeanExceptionAttributeNotFoundExceptionIntrospectionException
-
collectMeasurementsAsJSON
String collectMeasurementsAsJSON(String category, String name) throws InstanceNotFoundException, ReflectionException, MBeanException, AttributeNotFoundException, IntrospectionException
-
collectMeasurement
Object collectMeasurement(String category, String name, String attribute) throws InstanceNotFoundException, ReflectionException, MBeanException, AttributeNotFoundException, IntrospectionException
Collects all measurements stated in the current configuration that matches the provided parameters- Parameters:
category- The categoryname- The name of the measurement groupattribute- The attribute- Returns:
- A complex Map of data
- Throws:
InstanceNotFoundExceptionReflectionExceptionMBeanExceptionAttributeNotFoundExceptionIntrospectionException
-
collectMeasurementAsJSON
String collectMeasurementAsJSON(String category, String name, String attribute) throws InstanceNotFoundException, ReflectionException, MBeanException, AttributeNotFoundException, IntrospectionException
-
warningMessages
Map<String,Map<String,String>> warningMessages() throws AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException
Get all currently triggered warning thresholds- Returns:
- The warnings
- Throws:
AttributeNotFoundExceptionInstanceNotFoundExceptionMBeanExceptionReflectionException
-
warningMessagesAsJSON
String warningMessagesAsJSON() throws AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException
-
criticalMessages
Map<String,Map<String,String>> criticalMessages() throws AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException
Get all currently triggered critical thresholds- Returns:
- The critical errors
- Throws:
AttributeNotFoundExceptionInstanceNotFoundExceptionMBeanExceptionReflectionException
-
criticalMessagesAsJSON
String criticalMessagesAsJSON() throws AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException
-
getLevel
int getLevel()
-
getNumberOfThresholdThreads
int getNumberOfThresholdThreads()
-
getNumberOfThresholds
int getNumberOfThresholds()
-
getNumberOfConfigurations
int getNumberOfConfigurations()
-
getConfigFileNames
String getConfigFileNames()
-
getAllJMoleSystemProperties
String[] getAllJMoleSystemProperties()
-
-