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
ConstructorsConstructorDescriptionApplicationMXBeanImpl(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 classused 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 nameprefix of parent mbeans.
-
-
Method Details
-
getApplicationName
Description copied from interface:ApplicationMXBeanGet the application name.- Specified by:
getApplicationNamein interfaceApplicationMXBean- Returns:
- Application name.
-
getApplicationClass
Description copied from interface:ApplicationMXBeanGet theapplication classused for configuration of Jersey application.- Specified by:
getApplicationClassin interfaceApplicationMXBean- Returns:
- Application class name.
-
getProperties
Description copied from interface:ApplicationMXBeanGet the map of configuration properties converted to strings.- Specified by:
getPropertiesin interfaceApplicationMXBean- Returns:
- Map property keys to property string values.
-
getStartTime
Description copied from interface:ApplicationMXBeanGet the start time of the application (when application was initialized).- Specified by:
getStartTimein interfaceApplicationMXBean- Returns:
- Application start time.
-
getRegisteredClasses
Description copied from interface:ApplicationMXBeanGet a set of string names of resource classes registered by the user.- Specified by:
getRegisteredClassesin interfaceApplicationMXBean- Returns:
- Set of classes full names (with package names).
- See Also:
-
getRegisteredInstances
Description copied from interface:ApplicationMXBeanGet a set of string names of classes of user registered instances.- Specified by:
getRegisteredInstancesin interfaceApplicationMXBean- Returns:
- Set of user registered instances converted to their class full names (with package names).
- See Also:
-
getProviderClasses
Description copied from interface:ApplicationMXBeanGet classes of registered providers.- Specified by:
getProviderClassesin interfaceApplicationMXBean- Returns:
- Set of provider class full names (with packages names).
- See Also:
-