Class ApplicationMXBeanImpl
- java.lang.Object
-
- org.glassfish.jersey.server.internal.monitoring.jmx.ApplicationMXBeanImpl
-
- All Implemented Interfaces:
ApplicationMXBean
public class ApplicationMXBeanImpl extends Object implements ApplicationMXBean
MXBean implementingApplicationMXBeanMXBean interface.- Author:
- Miroslav Fuksa
-
-
Constructor Summary
Constructors Constructor Description ApplicationMXBeanImpl(ApplicationInfo applicationInfo, MBeanExposer mBeanExposer, String parentName)Create a new application MXBean and register it to the mbean server usingmBeanExposer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetApplicationClass()Get theapplication classused for configuration of Jersey application.StringgetApplicationName()Get the application name.Map<String,String>getProperties()Get the map of configuration properties converted to strings.Set<String>getProviderClasses()Get classes of registered providers.Set<String>getRegisteredClasses()Get a set of string names of resource classes registered by the user.Set<String>getRegisteredInstances()Get a set of string names of classes of user registered instances.DategetStartTime()Get the start time of the application (when application was initialized).
-
-
-
Constructor Detail
-
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 Detail
-
getApplicationName
public String getApplicationName()
Description copied from interface:ApplicationMXBeanGet the application name.- Specified by:
getApplicationNamein interfaceApplicationMXBean- Returns:
- Application name.
-
getApplicationClass
public String getApplicationClass()
Description copied from interface:ApplicationMXBeanGet theapplication classused for configuration of Jersey application.- Specified by:
getApplicationClassin interfaceApplicationMXBean- Returns:
- Application class name.
-
getProperties
public Map<String,String> 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
public Date 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
public Set<String> 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:
for specification of returned classes.
-
getRegisteredInstances
public Set<String> 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:
for specification of returned instances.
-
getProviderClasses
public Set<String> 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:
for specification of returned classes.
-
-