org.mc4j.ems.impl.jmx.connection.bean
Class DMBean
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
DMBean
public DMBean(AbstractConnectionProvider connectionProvider,
javax.management.ObjectName objectName)
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