com.sun.enterprise.admin.monitor.registry
Class MonitoredObjectType

java.lang.Object
  extended by 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 Summary
static MonitoredObjectType APPLICATION
          MonitoredObjectType for any deployed application - multiple
static MonitoredObjectType APPLICATIONS
          Parent of all applications and modules and other children - singleton
static MonitoredObjectType BEAN_CACHE
          An ejb cache - one per ejb
static MonitoredObjectType BEAN_METHOD
           
static MonitoredObjectType BEAN_METHODS
           
static MonitoredObjectType BEAN_POOL
          An ejb pool - one per ejb
static MonitoredObjectType CONNECTION_FACTORIES
           
static MonitoredObjectType CONNECTION_FACTORY
           
static MonitoredObjectType CONNECTION_MANAGER
          A Connection Manager for orb - multiple
static MonitoredObjectType CONNECTION_MANAGERS
          Connection Managers - singleton
static MonitoredObjectType CONNECTION_POOLS
           
static MonitoredObjectType CONNECTION_QUEUE
           
static MonitoredObjectType CONNECTOR_CONN_POOL
          A monitorable connector connection pool - multiple
static MonitoredObjectType CONNECTOR_MODULE
           
static MonitoredObjectType CONNECTOR_SERVICE
           
static MonitoredObjectType CONNECTOR_WORKMGMT
           
static MonitoredObjectType DNS
           
static MonitoredObjectType[] EJB_TYPES
          List of monitored object types for ejb container - actually unsafe :(
static MonitoredObjectType EJBMODULE
          An ejb module within an application - multiple
static MonitoredObjectType ENTITY_BEAN
          A entity session bean - multiple
static MonitoredObjectType FILE_CACHE
           
static MonitoredObjectType HTTP_LISTENER
          Http Listener - multiple
static MonitoredObjectType HTTP_SERVICE
          Http Service node - singleton
static MonitoredObjectType[] HTTP_SERVICE_TYPES
          List of MonitoredObjectTypes for Http Service - actually unsafe :( - should be unmodifiable array list
static MonitoredObjectType JDBC_CONN_POOL
          A monitorable jdbc connection pool - multiple
static MonitoredObjectType JMS_SERVICE
           
static MonitoredObjectType JNDI
          Jndi monitoring
static MonitoredObjectType JVM
          JVM - singleton
static MonitoredObjectType JVM_CLASSLOADING
           
static MonitoredObjectType JVM_COMPILATION
           
static MonitoredObjectType JVM_GC
           
static MonitoredObjectType JVM_GCS
           
static MonitoredObjectType JVM_MEMORY
           
static MonitoredObjectType JVM_OS
           
static MonitoredObjectType JVM_RUNTIME
           
static MonitoredObjectType JVM_THREAD
           
static MonitoredObjectType JVM_THREAD_INFO
           
static MonitoredObjectType KEEP_ALIVE
           
static MonitoredObjectType MESSAGE_DRIVEN_BEAN
          A message driven bean - multiple
static MonitoredObjectType NONE
          to be able to initialize to a non-valid type
static MonitoredObjectType ORB
          ORB - singleton
static MonitoredObjectType[] ORB_TYPES
          List of monitored object types for orb - actually unsafe :(
static MonitoredObjectType PWC_THREAD_POOL
           
static MonitoredObjectType REQUEST
           
static MonitoredObjectType RESOURCES
          All the monitorable resources - singleton
static MonitoredObjectType ROOT
          ROOT MonitoredObject - singleton
static MonitoredObjectType SERVLET
          A servlet - multiple
static MonitoredObjectType SESSION_STORE
           
static MonitoredObjectType STANDALONE_CONNECTOR_MODULE
           
static MonitoredObjectType STANDALONE_EJBMODULE
          A standalone ejb module - multiple
static MonitoredObjectType STANDALONE_WEBMODULE
          A standalone web module - multiple
static MonitoredObjectType STATEFUL_BEAN
          A stateful session bean - multiple
static MonitoredObjectType STATELESS_BEAN
          A stateless session bean - multiple
static MonitoredObjectType THREAD_POOL
          A named thead pool - multiple
static MonitoredObjectType THREAD_POOLS
          Thread pools - singleton
static MonitoredObjectType TIMERS
           
static MonitoredObjectType TRANSACTION_SERVICE
          Transaction service - singleton
static MonitoredObjectType VIRTUAL_SERVER
          Virtual server - multiple
static MonitoredObjectType WEB_COMPONENT
          Any Web Container Element -- not used in hierarchy -- mainly for notification
static MonitoredObjectType WEBAPP_VIRTUAL_SERVER
          webmodule-virtualserver, fix for 6172666
static MonitoredObjectType WEBMODULE
          A web module within an application - multiple
static MonitoredObjectType WEBSERVICE_ENDPOINT
          A web service endpoint with in an ejb or web module - multiple
 
Method Summary
static MonitoredObjectType getMonitoredObjectType(String typeName)
          Get a MonitoredObjectType instance for the specified string type.
 String getTypeName()
          Get type of this "MonitoredObjectType" as string
 boolean isSingleton()
          Is instance of this type of MonitorMBean singleton.
 String toString()
          A string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final MonitoredObjectType NONE
to be able to initialize to a non-valid type


ROOT

public static final MonitoredObjectType ROOT
ROOT MonitoredObject - singleton


APPLICATIONS

public static final MonitoredObjectType APPLICATIONS
Parent of all applications and modules and other children - singleton


APPLICATION

public static final MonitoredObjectType APPLICATION
MonitoredObjectType for any deployed application - multiple


EJBMODULE

public static final MonitoredObjectType EJBMODULE
An ejb module within an application - multiple


WEBMODULE

public static final MonitoredObjectType WEBMODULE
A web module within an application - multiple


STANDALONE_EJBMODULE

public static final MonitoredObjectType STANDALONE_EJBMODULE
A standalone ejb module - multiple


STANDALONE_WEBMODULE

public static final MonitoredObjectType STANDALONE_WEBMODULE
A standalone web module - multiple


STATELESS_BEAN

public static final MonitoredObjectType STATELESS_BEAN
A stateless session bean - multiple


STATEFUL_BEAN

public static final MonitoredObjectType STATEFUL_BEAN
A stateful session bean - multiple


ENTITY_BEAN

public static final MonitoredObjectType ENTITY_BEAN
A entity session bean - multiple


MESSAGE_DRIVEN_BEAN

public static final MonitoredObjectType MESSAGE_DRIVEN_BEAN
A message driven bean - multiple


BEAN_POOL

public static final MonitoredObjectType BEAN_POOL
An ejb pool - one per ejb


BEAN_CACHE

public static final MonitoredObjectType BEAN_CACHE
An ejb cache - one per ejb


BEAN_METHOD

public static final MonitoredObjectType BEAN_METHOD

BEAN_METHODS

public static final MonitoredObjectType BEAN_METHODS

SERVLET

public static final MonitoredObjectType SERVLET
A servlet - multiple


HTTP_SERVICE

public static final MonitoredObjectType HTTP_SERVICE
Http Service node - singleton


VIRTUAL_SERVER

public static final MonitoredObjectType VIRTUAL_SERVER
Virtual server - multiple


WEBAPP_VIRTUAL_SERVER

public static final MonitoredObjectType WEBAPP_VIRTUAL_SERVER
webmodule-virtualserver, fix for 6172666


HTTP_LISTENER

public static final MonitoredObjectType HTTP_LISTENER
Http Listener - multiple


JVM

public static final MonitoredObjectType JVM
JVM - singleton


TRANSACTION_SERVICE

public static final MonitoredObjectType TRANSACTION_SERVICE
Transaction service - singleton


THREAD_POOLS

public static final MonitoredObjectType THREAD_POOLS
Thread pools - singleton


THREAD_POOL

public static final MonitoredObjectType THREAD_POOL
A named thead pool - multiple


ORB

public static final MonitoredObjectType ORB
ORB - singleton


CONNECTION_MANAGERS

public static final MonitoredObjectType CONNECTION_MANAGERS
Connection Managers - singleton


CONNECTION_MANAGER

public static final MonitoredObjectType CONNECTION_MANAGER
A Connection Manager for orb - multiple


RESOURCES

public static final MonitoredObjectType RESOURCES
All the monitorable resources - singleton


JDBC_CONN_POOL

public static final MonitoredObjectType JDBC_CONN_POOL
A monitorable jdbc connection pool - multiple


CONNECTOR_CONN_POOL

public static final MonitoredObjectType CONNECTOR_CONN_POOL
A monitorable connector connection pool - multiple


WEB_COMPONENT

public static final MonitoredObjectType WEB_COMPONENT
Any Web Container Element -- not used in hierarchy -- mainly for notification


JNDI

public static final MonitoredObjectType JNDI
Jndi monitoring


CONNECTOR_SERVICE

public static final MonitoredObjectType CONNECTOR_SERVICE

CONNECTOR_MODULE

public static final MonitoredObjectType CONNECTOR_MODULE

STANDALONE_CONNECTOR_MODULE

public static final MonitoredObjectType STANDALONE_CONNECTOR_MODULE

CONNECTOR_WORKMGMT

public static final MonitoredObjectType CONNECTOR_WORKMGMT

JMS_SERVICE

public static final MonitoredObjectType JMS_SERVICE

CONNECTION_FACTORIES

public static final MonitoredObjectType CONNECTION_FACTORIES

CONNECTION_FACTORY

public static final MonitoredObjectType CONNECTION_FACTORY

CONNECTION_POOLS

public static final MonitoredObjectType CONNECTION_POOLS

CONNECTION_QUEUE

public static final MonitoredObjectType CONNECTION_QUEUE

DNS

public static final MonitoredObjectType DNS

KEEP_ALIVE

public static final MonitoredObjectType KEEP_ALIVE

PWC_THREAD_POOL

public static final MonitoredObjectType PWC_THREAD_POOL

FILE_CACHE

public static final MonitoredObjectType FILE_CACHE

REQUEST

public static final MonitoredObjectType REQUEST

SESSION_STORE

public static final MonitoredObjectType SESSION_STORE

TIMERS

public static final MonitoredObjectType TIMERS

JVM_COMPILATION

public static final MonitoredObjectType JVM_COMPILATION

JVM_CLASSLOADING

public static final MonitoredObjectType JVM_CLASSLOADING

JVM_OS

public static final MonitoredObjectType JVM_OS

JVM_RUNTIME

public static final MonitoredObjectType JVM_RUNTIME

JVM_GCS

public static final MonitoredObjectType JVM_GCS

JVM_GC

public static final MonitoredObjectType JVM_GC

JVM_MEMORY

public static final MonitoredObjectType JVM_MEMORY

JVM_THREAD

public static final MonitoredObjectType JVM_THREAD

JVM_THREAD_INFO

public static final MonitoredObjectType JVM_THREAD_INFO

WEBSERVICE_ENDPOINT

public static final MonitoredObjectType WEBSERVICE_ENDPOINT
A web service endpoint with in an ejb or web module - multiple


EJB_TYPES

public static final MonitoredObjectType[] EJB_TYPES
List of monitored object types for ejb container - actually unsafe :(


ORB_TYPES

public static final MonitoredObjectType[] ORB_TYPES
List of monitored object types for orb - actually unsafe :(


HTTP_SERVICE_TYPES

public static final MonitoredObjectType[] HTTP_SERVICE_TYPES
List of MonitoredObjectTypes for Http Service - actually unsafe :( - should be unmodifiable array list

Method Detail

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.


Copyright © 2012. All Rights Reserved.