| java.lang.Object com.caucho.management.j2ee.J2EEManagedObject
All known Subclasses: com.caucho.management.j2ee.J2EEResource, com.caucho.management.j2ee.EJB, com.caucho.management.j2ee.J2EEDeployedObject, com.caucho.management.j2ee.JVM, com.caucho.management.j2ee.JCAManagedConnectionFactory, com.caucho.management.j2ee.JDBCDataSource, com.caucho.management.j2ee.JDBCDriver, com.caucho.management.j2ee.J2EEServer, com.caucho.management.j2ee.Servlet, com.caucho.management.j2ee.ResourceAdapter, com.caucho.management.j2ee.JCAConnectionFactory, com.caucho.management.j2ee.J2EEDomain,
J2EEManagedObject | abstract public class J2EEManagedObject (Code) | | Base class management interface for all managed objects.
|
J2EEManagedObject | public J2EEManagedObject()(Code) | | |
getName | abstract protected String getName()(Code) | | Returns the value to use for the the `name' key of the
ObjectName. The returned value is raw, users of the method must escape
the returned value for use in an ObjectName.
|
getStartTime | long getStartTime()(Code) | | |
isEventProvider | public boolean isEventProvider()(Code) | | Returns true if the object provides events
|
isJ2EEApplication | protected boolean isJ2EEApplication()(Code) | | Returns true if the ObjectName should include the J2EEApplication key.
The default implementation returns true,
derived class override to return false if there should not be a
J2EEApplication key.
|
isJ2EEServer | protected boolean isJ2EEServer()(Code) | | Returns true if the ObjectName should include the J2EEServer key.
The default implementation returns true,
derived class override to return false if there should not be a
J2EEServer key.
|
isStateManageable | public boolean isStateManageable()(Code) | | Returns true if the state is manageable
|
isStatisticsProvider | public boolean isStatisticsProvider()(Code) | | Returns true if the object provides statistics
|
queryObjectNames | protected String[] queryObjectNames(String... pattern)(Code) | | Returns a list of ObjectNames that match the specified pattern composed
of keys and values.
The format of the arguments is key1, value1, [keyN, valueN] .
The pattern does not need to include ",*", it is added automatically.
|
queryObjectNamesSet | protected String[] queryObjectNamesSet(String[][] patterns)(Code) | | Returns a list of ObjectNames that match the specified patterns.
Each pattern is an array of keys and values.
The pattern does not need to include ",*", it is added automatically.
|
register | public static T register(T managedObject)(Code) | | Register a
J2EEManagedObject .
This method never throws an exception, any
Throwable is caught
and logged.
the managed object if it is registered, null if there is an error. |
unregister | public static void unregister(J2EEManagedObject managedObject)(Code) | | Unregister a
J2EEManagedObject .
This method never throws an exception, any
Throwable is caught
and logged.
Parameters: managedObject - the managed object, can be null in which casenothing is done. |
|
|