Class MonitoredObjectType

java.lang.Object
com.sun.enterprise.admin.monitor.registry.MonitoredObjectType

public class MonitoredObjectType extends Object
MonitoredObjectType represents the type of a monitored object. Many of monitored objects have same properties, even while they monitor different user objects. For example - application and standalone ejb module are both nothing more than containers of other objects -- application contains web module and ejb modules, whereas standalone ejb module contains beans of various types. This object facilitates use of same GenericMonitorMBean as MBean for both of them, but still distinguishes them.
Author:
Originally authored by Abhijit Kumar, Copied from S1AS 7.0 source and modified by Shreedhar Ganapathy
See Also:
  • com.iplanet.ias.admin.monitor.GenericMonitorMBean
  • Field Details

  • Method Details

    • getTypeName

      public String getTypeName()
      Get type of this "MonitoredObjectType" as string
      Returns:
      Monitored object type as string
    • isSingleton

      public boolean isSingleton()
      Is instance of this type of MonitorMBean singleton. For example, there can only be one pool for every stateless session bean, so a MonitoredObjectType of type MonitoredObjectType.BEAN_POOL is a singleton.
      Returns:
      true if this type of object can have atmost one instance within its context, false otherwise.
    • toString

      public String toString()
      A string representation. The return value of this method is same as that of method getTypeName.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this MonitoredObjectType
    • getMonitoredObjectType

      public static MonitoredObjectType getMonitoredObjectType(String typeName)
      Get a MonitoredObjectType instance for the specified string type.
      Parameters:
      typeName - string representing MonitoredObjectType
      Throws:
      IllegalArgumentException - if the specified type name is not known.