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 Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MonitoredObjectType
getMonitoredObjectType(String typeName)
Get a MonitoredObjectType instance for the specified string type.String
getTypeName()
Get type of this "MonitoredObjectType" as stringboolean
isSingleton()
Is instance of this type of MonitorMBean singleton.String
toString()
A string representation.
-
-
-
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
-
-
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.
-
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.
-
-