org.mc4j.ems.connection.bean
Interface EmsBean

All Superinterfaces:
java.lang.Comparable

public interface EmsBean
extends java.lang.Comparable

Version:
$Revision: 592 $($Author: ghinkl $ / $Date: 2008-09-16 12:32:53 -0400 (Tue, 16 Sep 2008) $)
Author:
Greg Hinkle (ghinkle@users.sourceforge.net), Apr 4, 2005

Method Summary
 EmsAttribute getAttribute(java.lang.String name)
           
 java.util.SortedSet<EmsAttribute> getAttributes()
           
 EmsBeanName getBeanName()
           
 java.lang.Class getClassType()
           
 java.lang.String getClassTypeName()
           
 ConnectionProvider getConnectionProvider()
           
 EmsNotification getNotification(java.lang.String name)
           
 java.util.SortedSet<EmsNotification> getNotifications()
           
 EmsOperation getOperation(java.lang.String name)
           
 EmsOperation getOperation(java.lang.String operationName, java.lang.Class... parameterTypes)
           
 java.util.SortedSet<EmsOperation> getOperations()
           
<T> T
getProxy(java.lang.Class<T> beanInterface)
           
 boolean isHasUnsupportedType()
           
 boolean isNotificationEmiter()
           
 boolean isRegistered()
          This runs an live mbean server request to check that the MBean represented by this bean is still registered.
 void loadSynchronous()
           
 java.util.List<EmsAttribute> refreshAttributes()
          Refresh, from the server, all attribute values for an MBean
 java.util.List<EmsAttribute> refreshAttributes(java.util.List<java.lang.String> attributeNames)
          Return a specific subset of EmsAttributes for a bean based on the requested list of attributes by name.
 void unregister()
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getBeanName

EmsBeanName getBeanName()

getConnectionProvider

ConnectionProvider getConnectionProvider()

getProxy

<T> T getProxy(java.lang.Class<T> beanInterface)

loadSynchronous

void loadSynchronous()

getAttribute

EmsAttribute getAttribute(java.lang.String name)

getAttributes

java.util.SortedSet<EmsAttribute> getAttributes()

refreshAttributes

java.util.List<EmsAttribute> refreshAttributes()
Refresh, from the server, all attribute values for an MBean

Returns:
the List attribute list

refreshAttributes

java.util.List<EmsAttribute> refreshAttributes(java.util.List<java.lang.String> attributeNames)
Return a specific subset of EmsAttributes for a bean based on the requested list of attributes by name. This method can be used to load a group of attributes with a single server call. Attributes updated in this fashion do update their internal representation and do fire events on the changes.

Parameters:
attributeNames - the names of attributes to load.
Returns:
the list of requested attribute objects updated

getClassTypeName

java.lang.String getClassTypeName()

getClassType

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

getOperation

EmsOperation getOperation(java.lang.String name)

getOperations

java.util.SortedSet<EmsOperation> getOperations()

getNotification

EmsNotification getNotification(java.lang.String name)

getNotifications

java.util.SortedSet<EmsNotification> getNotifications()

unregister

void unregister()

isRegistered

boolean isRegistered()
This runs an live mbean server request to check that the MBean represented by this bean is still registered.

Returns:
true if the MBean is still registered in the MBeanServer

isNotificationEmiter

boolean isNotificationEmiter()

isHasUnsupportedType

boolean isHasUnsupportedType()

getOperation

EmsOperation getOperation(java.lang.String operationName,
                          java.lang.Class... parameterTypes)