com.caucho.management.server
Class AbstractManagedObject

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
All Implemented Interfaces:
ManagedObjectMXBean
Direct Known Subclasses:
AbstractEmitterObject, AbstractNotificationObject, AbstractRule.RewriteRuleAdmin, AccessLogAdmin, AdminCacheStore, AdminPersistentStore, BlockManager, CloudClusterAdmin, ClusterServerAdmin, ConnectionPool, DatabaseAdmin, DeployControllerAdmin, DeployGeneratorAdmin, DriverAdmin, EnvironmentAdmin, HealthActionAdmin, HealthCheckAdmin, HealthServiceAdmin, InjectBeanAdmin, JvmThreadsAdmin, LicenseStoreAdmin, LicenseStoreAdmin.LicenseAdmin, LoggerAdmin, LogSystemAdmin, ManagementAdmin, MemoryAdmin, ProStatSystem.Admin, ProxyCacheAdmin, QueryAdmin, QueueAdmin, ResinAdmin, ResourceDeployAdmin, SessionManagerAdmin, SnapshotServiceAdmin, SnmpAdmin, SocketLinkAdmin, ThreadPoolAdmin, TopicAdmin, WebBeanAdmin

public abstract class AbstractManagedObject
extends java.lang.Object
implements ManagedObjectMXBean

Parent mbean of all Resin's managed objects.


Constructor Summary
protected AbstractManagedObject()
           
protected AbstractManagedObject(java.lang.ClassLoader loader)
           
 
Method Summary
protected  void addObjectNameProperties(java.util.Map<java.lang.String,java.lang.String> props)
           
abstract  java.lang.String getName()
          The JMX name property of the mbean.
 javax.management.ObjectName getObjectName()
          Returns the ObjectName of the mbean.
 java.lang.String getType()
          The JMX type of this MBean, defaults to the prefix of the FooMXBean..
protected  boolean registerSelf()
          Registers the object with JMX.
 java.lang.String toString()
           
protected  boolean unregisterSelf()
          Unregisters the object with JMX.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractManagedObject

protected AbstractManagedObject()

AbstractManagedObject

protected AbstractManagedObject(java.lang.ClassLoader loader)
Method Detail

getObjectName

public javax.management.ObjectName getObjectName()
Returns the ObjectName of the mbean.

Specified by:
getObjectName in interface ManagedObjectMXBean

addObjectNameProperties

protected void addObjectNameProperties(java.util.Map<java.lang.String,java.lang.String> props)
                                throws javax.management.MalformedObjectNameException
Throws:
javax.management.MalformedObjectNameException

getName

public abstract java.lang.String getName()
The JMX name property of the mbean.

Specified by:
getName in interface ManagedObjectMXBean

getType

public java.lang.String getType()
The JMX type of this MBean, defaults to the prefix of the FooMXBean..

Specified by:
getType in interface ManagedObjectMXBean

registerSelf

protected boolean registerSelf()
Registers the object with JMX.


unregisterSelf

protected boolean unregisterSelf()
Unregisters the object with JMX.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object