|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.management.j2ee.J2EEManagedObject
public abstract class J2EEManagedObject
Base class management interface for all managed objects.
| Field Summary | |
|---|---|
protected javax.management.ObjectName |
_objectName
|
| Constructor Summary | |
|---|---|
J2EEManagedObject()
|
|
| Method Summary | ||
|---|---|---|
protected javax.management.ObjectName |
createObjectName(java.util.Hashtable<java.lang.String,java.lang.String> properties)
Creates the object name. |
|
protected abstract java.lang.String |
getName()
Returns the value to use for the the `name' key of the ObjectName. |
|
java.lang.String |
getObjectName()
|
|
boolean |
isEventProvider()
Returns true if the object provides events |
|
protected boolean |
isJ2EEApplication()
Returns true if the ObjectName should include the J2EEApplication key. |
|
protected boolean |
isJ2EEServer()
Returns true if the ObjectName should include the J2EEServer key. |
|
boolean |
isStateManageable()
Returns true if the state is manageable |
|
boolean |
isStatisticsProvider()
Returns true if the object provides statistics |
|
protected java.lang.String[] |
queryObjectNames(java.lang.String... pattern)
Returns a list of ObjectNames that match the specified pattern composed of keys and values. |
|
protected java.lang.String[] |
queryObjectNamesSet(java.lang.String[][] patterns)
Returns a list of ObjectNames that match the specified patterns. |
|
protected java.lang.String |
quote(java.lang.String value)
|
|
static
|
register(T managedObject)
Register a J2EEManagedObject. |
|
static void |
unregister(J2EEManagedObject managedObject)
Unregister a J2EEManagedObject. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.management.ObjectName _objectName
| Constructor Detail |
|---|
public J2EEManagedObject()
| Method Detail |
|---|
public java.lang.String getObjectName()
protected abstract java.lang.String getName()
protected boolean isJ2EEServer()
protected boolean isJ2EEApplication()
protected java.lang.String quote(java.lang.String value)
protected javax.management.ObjectName createObjectName(java.util.Hashtable<java.lang.String,java.lang.String> properties)
throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameExceptionprotected java.lang.String[] queryObjectNames(java.lang.String... pattern)
key1, value1, [keyN, valueN].
The pattern does not need to include ",*", it is added automatically.
protected java.lang.String[] queryObjectNamesSet(java.lang.String[][] patterns)
public boolean isStateManageable()
public boolean isStatisticsProvider()
public boolean isEventProvider()
public static <T extends J2EEManagedObject> T register(T managedObject)
J2EEManagedObject.
This method never throws an exception, any Throwable is caught
and logged.
public static void unregister(J2EEManagedObject managedObject)
J2EEManagedObject.
This method never throws an exception, any Throwable is caught
and logged.
managedObject - the managed object, can be null in which case
nothing is done.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||