org.glassfish.jersey.server.internal.monitoring.jmx
Class ApplicationMXBeanImpl

java.lang.Object
  extended by org.glassfish.jersey.server.internal.monitoring.jmx.ApplicationMXBeanImpl
All Implemented Interfaces:
ApplicationMXBean

public class ApplicationMXBeanImpl
extends Object
implements ApplicationMXBean

MXBean implementing ApplicationMXBean MXbean interface.

Author:
Miroslav Fuksa (miroslav.fuksa at oracle.com)

Constructor Summary
ApplicationMXBeanImpl(ApplicationStatistics applicationStatistics, MBeanExposer mBeanExposer, String parentName)
          Create a new application MXBean and register it to the mbean server using mBeanExposer.
 
Method Summary
 String getApplicationClass()
          Get the application class used for configuration of Jersey application.
 String getApplicationName()
          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.
 Date getStartTime()
          Get the start time of the application (when application was initialized).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationMXBeanImpl

public ApplicationMXBeanImpl(ApplicationStatistics applicationStatistics,
                             MBeanExposer mBeanExposer,
                             String parentName)
Create a new application MXBean and register it to the mbean server using mBeanExposer.

Parameters:
applicationStatistics - Application statistics which should be exposed.
mBeanExposer - MBean exposer.
parentName - Object name prefix of parent mbeans.
Method Detail

getApplicationName

public String getApplicationName()
Description copied from interface: ApplicationMXBean
Get the application name.

Specified by:
getApplicationName in interface ApplicationMXBean
Returns:
Application name.

getApplicationClass

public String getApplicationClass()
Description copied from interface: ApplicationMXBean
Get the application class used for configuration of Jersey application.

Specified by:
getApplicationClass in interface ApplicationMXBean
Returns:
Application class name.

getProperties

public Map<String,String> getProperties()
Description copied from interface: ApplicationMXBean
Get the map of configuration properties converted to strings.

Specified by:
getProperties in interface ApplicationMXBean
Returns:
Map property keys to property string values.

getStartTime

public Date getStartTime()
Description copied from interface: ApplicationMXBean
Get the start time of the application (when application was initialized).

Specified by:
getStartTime in interface ApplicationMXBean
Returns:
Application start time.

getRegisteredClasses

public Set<String> getRegisteredClasses()
Description copied from interface: ApplicationMXBean
Get a set of string names of resource classes registered by the user.

Specified by:
getRegisteredClasses in interface ApplicationMXBean
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: ApplicationMXBean
Get a set of string names of classes of user registered instances.

Specified by:
getRegisteredInstances in interface ApplicationMXBean
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: ApplicationMXBean
Get classes of registered providers.

Specified by:
getProviderClasses in interface ApplicationMXBean
Returns:
Set of provider class full names (with packages names).
See Also:
for specification of returned classes.


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.