Class MonitoredObjectType
java.lang.Object
com.sun.enterprise.admin.monitor.registry.MonitoredObjectType
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MonitoredObjectTypeMonitoredObjectType for any deployed application - multiplestatic final MonitoredObjectTypeParent of all applications and modules and other children - singletonstatic final MonitoredObjectTypeAn ejb cache - one per ejbstatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypeAn ejb pool - one per ejbstatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypeA Connection Manager for orb - multiplestatic final MonitoredObjectTypeConnection Managers - singletonstatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypeA monitorable connector connection pool - multiplestatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypeAn ejb module within an application - multiplestatic final MonitoredObjectTypeA entity session bean - multiplestatic final MonitoredObjectTypestatic final MonitoredObjectTypeHttp Listener - multiplestatic final MonitoredObjectTypeHttp Service node - singletonstatic final MonitoredObjectTypeA monitorable jdbc connection pool - multiplestatic final MonitoredObjectTypestatic final MonitoredObjectTypeJndi monitoringstatic final MonitoredObjectTypeJVM - singletonstatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypeA message driven bean - multiplestatic final MonitoredObjectTypeto be able to initialize to a non-valid typestatic final MonitoredObjectTypeORB - singletonstatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypeAll the monitorable resources - singletonstatic final MonitoredObjectTypeROOT MonitoredObject - singletonstatic final MonitoredObjectTypeA servlet - multiplestatic final MonitoredObjectTypestatic final MonitoredObjectTypestatic final MonitoredObjectTypeA standalone ejb module - multiplestatic final MonitoredObjectTypeA standalone web module - multiplestatic final MonitoredObjectTypeA stateful session bean - multiplestatic final MonitoredObjectTypeA stateless session bean - multiplestatic final MonitoredObjectTypeA named thead pool - multiplestatic final MonitoredObjectTypeThread pools - singletonstatic final MonitoredObjectTypestatic final MonitoredObjectTypeTransaction service - singletonstatic final MonitoredObjectTypeVirtual server - multiplestatic final MonitoredObjectTypeAny Web Container Element -- not used in hierarchy -- mainly for notificationstatic final MonitoredObjectTypewebmodule-virtualserver, fix for 6172666static final MonitoredObjectTypeA web module within an application - multiplestatic final MonitoredObjectTypeA web service endpoint with in an ejb or web module - multiple -
Method Summary
Modifier and TypeMethodDescriptionstatic MonitoredObjectTypegetMonitoredObjectType(String typeName) Get a MonitoredObjectType instance for the specified string type.Get type of this "MonitoredObjectType" as stringbooleanIs instance of this type of MonitorMBean singleton.toString()A string representation.
-
Field Details
-
NONE
to be able to initialize to a non-valid type -
ROOT
ROOT MonitoredObject - singleton -
APPLICATIONS
Parent of all applications and modules and other children - singleton -
APPLICATION
MonitoredObjectType for any deployed application - multiple -
EJBMODULE
An ejb module within an application - multiple -
WEBMODULE
A web module within an application - multiple -
STANDALONE_EJBMODULE
A standalone ejb module - multiple -
STANDALONE_WEBMODULE
A standalone web module - multiple -
STATELESS_BEAN
A stateless session bean - multiple -
STATEFUL_BEAN
A stateful session bean - multiple -
ENTITY_BEAN
A entity session bean - multiple -
MESSAGE_DRIVEN_BEAN
A message driven bean - multiple -
BEAN_POOL
An ejb pool - one per ejb -
BEAN_CACHE
An ejb cache - one per ejb -
BEAN_METHOD
-
BEAN_METHODS
-
SERVLET
A servlet - multiple -
HTTP_SERVICE
Http Service node - singleton -
VIRTUAL_SERVER
Virtual server - multiple -
WEBAPP_VIRTUAL_SERVER
webmodule-virtualserver, fix for 6172666 -
HTTP_LISTENER
Http Listener - multiple -
JVM
JVM - singleton -
TRANSACTION_SERVICE
Transaction service - singleton -
THREAD_POOLS
Thread pools - singleton -
THREAD_POOL
A named thead pool - multiple -
ORB
ORB - singleton -
CONNECTION_MANAGERS
Connection Managers - singleton -
CONNECTION_MANAGER
A Connection Manager for orb - multiple -
RESOURCES
All the monitorable resources - singleton -
JDBC_CONN_POOL
A monitorable jdbc connection pool - multiple -
CONNECTOR_CONN_POOL
A monitorable connector connection pool - multiple -
WEB_COMPONENT
Any Web Container Element -- not used in hierarchy -- mainly for notification -
JNDI
Jndi monitoring -
CONNECTOR_SERVICE
-
CONNECTOR_MODULE
-
STANDALONE_CONNECTOR_MODULE
-
CONNECTOR_WORKMGMT
-
JMS_SERVICE
-
CONNECTION_FACTORIES
-
CONNECTION_FACTORY
-
CONNECTION_POOLS
-
CONNECTION_QUEUE
-
DNS
-
KEEP_ALIVE
-
PWC_THREAD_POOL
-
FILE_CACHE
-
REQUEST
-
SESSION_STORE
-
TIMERS
-
JVM_COMPILATION
-
JVM_CLASSLOADING
-
JVM_OS
-
JVM_RUNTIME
-
JVM_GCS
-
JVM_GC
-
JVM_MEMORY
-
JVM_THREAD
-
JVM_THREAD_INFO
-
WEBSERVICE_ENDPOINT
A web service endpoint with in an ejb or web module - multiple
-
-
Method Details
-
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
A string representation. The return value of this method is same as that of method getTypeName. -
getMonitoredObjectType
Get a MonitoredObjectType instance for the specified string type.- Parameters:
typeName- string representing MonitoredObjectType- Throws:
IllegalArgumentException- if the specified type name is not known.
-