Class ApplicationMXBeanImpl
java.lang.Object
org.glassfish.jersey.server.internal.monitoring.jmx.ApplicationMXBeanImpl
- All Implemented Interfaces:
ApplicationMXBean
MXBean implementing
ApplicationMXBean
MXBean interface.- Author:
- Miroslav Fuksa
-
Constructor Summary
ConstructorDescriptionApplicationMXBeanImpl
(ApplicationInfo applicationInfo, MBeanExposer mBeanExposer, String parentName) Create a new application MXBean and register it to the mbean server usingmBeanExposer
. -
Method Summary
Modifier and TypeMethodDescriptionGet theapplication class
used for configuration of Jersey application.Get the application name.Get the map of configuration properties converted to strings.Get classes of registered providers.Get a set of string names of resource classes registered by the user.Get a set of string names of classes of user registered instances.Get the start time of the application (when application was initialized).
-
Constructor Details
-
ApplicationMXBeanImpl
public ApplicationMXBeanImpl(ApplicationInfo applicationInfo, MBeanExposer mBeanExposer, String parentName) Create a new application MXBean and register it to the mbean server usingmBeanExposer
.- Parameters:
applicationInfo
- Application info which should be exposed.mBeanExposer
- MBean exposer.parentName
-Object name
prefix of parent mbeans.
-
-
Method Details
-
getApplicationName
Description copied from interface:ApplicationMXBean
Get the application name.- Specified by:
getApplicationName
in interfaceApplicationMXBean
- Returns:
- Application name.
-
getApplicationClass
Description copied from interface:ApplicationMXBean
Get theapplication class
used for configuration of Jersey application.- Specified by:
getApplicationClass
in interfaceApplicationMXBean
- Returns:
- Application class name.
-
getProperties
Description copied from interface:ApplicationMXBean
Get the map of configuration properties converted to strings.- Specified by:
getProperties
in interfaceApplicationMXBean
- Returns:
- Map property keys to property string values.
-
getStartTime
Description copied from interface:ApplicationMXBean
Get the start time of the application (when application was initialized).- Specified by:
getStartTime
in interfaceApplicationMXBean
- Returns:
- Application start time.
-
getRegisteredClasses
Description copied from interface:ApplicationMXBean
Get a set of string names of resource classes registered by the user.- Specified by:
getRegisteredClasses
in interfaceApplicationMXBean
- Returns:
- Set of classes full names (with package names).
- See Also:
-
getRegisteredInstances
Description copied from interface:ApplicationMXBean
Get a set of string names of classes of user registered instances.- Specified by:
getRegisteredInstances
in interfaceApplicationMXBean
- Returns:
- Set of user registered instances converted to their class full names (with package names).
- See Also:
-
getProviderClasses
Description copied from interface:ApplicationMXBean
Get classes of registered providers.- Specified by:
getProviderClasses
in interfaceApplicationMXBean
- Returns:
- Set of provider class full names (with packages names).
- See Also:
-