org.mc4j.ems.impl.jmx.connection.bean
Class DMBean

java.lang.Object
  extended by org.mc4j.ems.impl.jmx.connection.bean.DMBean
Direct Known Subclasses:
DAdvancedBean

public class DMBean
extends java.lang.Object

Version:
$Revision: 593 $($Author: ghinkl $ / $Date: 2008-09-22 14:47:51 -0400 (Mon, 22 Sep 2008) $)
Author:
Greg Hinkle (ghinkle@users.sourceforge.net), Apr 4, 2005

Field Summary
protected  EmsBeanName beanName
           
protected  AbstractConnectionProvider connectionProvider
           
protected  boolean deleted
           
protected  java.util.List<java.lang.Throwable> failures
           
protected  boolean hasUnsupportedType
           
protected  javax.management.ObjectName objectName
           
 
Constructor Summary
DMBean(AbstractConnectionProvider connectionProvider, javax.management.ObjectName objectName)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
static java.lang.Class findType(java.lang.String className)
           
 EmsAttribute getAttribute(java.lang.String name)
           
 java.util.SortedSet<EmsAttribute> getAttributes()
           
 EmsBeanName getBeanName()
           
 java.lang.Class getClassType()
           
 java.lang.String getClassTypeName()
           
 AbstractConnectionProvider getConnectionProvider()
           
 java.util.List<java.lang.Throwable> getFailures()
           
protected  javax.management.MBeanInfo getMBeanInfo()
           
 EmsNotification getNotification(java.lang.String name)
           
 java.util.SortedSet<EmsNotification> getNotifications()
           
 javax.management.ObjectName getObjectName()
           
 EmsOperation getOperation(java.lang.String name)
           
 EmsOperation getOperation(java.lang.String operationName, java.lang.Class... parameterTypes)
          Retrieves an operation from an mbean which matches the specified name and signature.
 java.util.SortedSet<EmsOperation> getOperations()
           
<T> T
getProxy(java.lang.Class<T> beanInterface)
           
 boolean isHasUnsupportedType()
           
 boolean isNotificationEmiter()
           
 boolean isRegistered()
           
 void loadSynchronous()
          Loads local representations of attributes, operations and notifications.
 java.util.List<EmsAttribute> refreshAttributes()
           
 java.util.List<EmsAttribute> refreshAttributes(java.util.List<java.lang.String> attributeNames)
           
protected  void registerFailure(java.lang.Throwable t)
           
 java.lang.String toString()
           
 void unregister()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

connectionProvider

protected AbstractConnectionProvider connectionProvider

objectName

protected javax.management.ObjectName objectName

beanName

protected EmsBeanName beanName

deleted

protected boolean deleted

failures

protected java.util.List<java.lang.Throwable> failures

hasUnsupportedType

protected boolean hasUnsupportedType
Constructor Detail

DMBean

public DMBean(AbstractConnectionProvider connectionProvider,
              javax.management.ObjectName objectName)
Method Detail

getObjectName

public javax.management.ObjectName getObjectName()

getBeanName

public EmsBeanName getBeanName()

getConnectionProvider

public AbstractConnectionProvider getConnectionProvider()

getFailures

public java.util.List<java.lang.Throwable> getFailures()

registerFailure

protected void registerFailure(java.lang.Throwable t)

isHasUnsupportedType

public boolean isHasUnsupportedType()

isNotificationEmiter

public boolean isNotificationEmiter()

getProxy

public <T> T getProxy(java.lang.Class<T> beanInterface)
Parameters:
beanInterface -

loadSynchronous

public void loadSynchronous()
Loads local representations of attributes, operations and notifications. Current attribute values are not retrived.


isRegistered

public boolean isRegistered()

getAttribute

public EmsAttribute getAttribute(java.lang.String name)

getAttributes

public java.util.SortedSet<EmsAttribute> getAttributes()

refreshAttributes

public java.util.List<EmsAttribute> refreshAttributes()

refreshAttributes

public java.util.List<EmsAttribute> refreshAttributes(java.util.List<java.lang.String> attributeNames)

getClassTypeName

public java.lang.String getClassTypeName()

findType

public static java.lang.Class findType(java.lang.String className)
                                throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

getClassType

public java.lang.Class getClassType()
                             throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

getOperation

public EmsOperation getOperation(java.lang.String name)

getOperation

public EmsOperation getOperation(java.lang.String operationName,
                                 java.lang.Class... parameterTypes)
Retrieves an operation from an mbean which matches the specified name and signature. The method is modeled after Class.getMethod() The order of parameterTypes must much the order of arguments returned for the operation by EMS. If not matching operation is found on the EmsBean then null is returned


getOperations

public java.util.SortedSet<EmsOperation> getOperations()

getNotification

public EmsNotification getNotification(java.lang.String name)

getNotifications

public java.util.SortedSet<EmsNotification> getNotifications()

unregister

public void unregister()

getMBeanInfo

protected javax.management.MBeanInfo getMBeanInfo()

compareTo

public int compareTo(java.lang.Object o)

toString

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