|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.modelmbean.RequiredModelMBean
org.norther.tammi.core.model.ReferableModelMBean
public class ReferableModelMBean
Extends javax.management.RequiredModelMBean to support
referable adaptees as managed resources.
| Field Summary | |
|---|---|
static String |
ADAPTER_NOTIF_DESCRIPTION
The notification description. |
static ModelMBeanNotificationInfo[] |
ADAPTER_NOTIFICATIONS
Adapter notifications. |
| Fields inherited from interface org.norther.tammi.core.base.ReferableMBean |
|---|
DEFAULT_ID, ID, MBEAN, MBEAN_DESCRIPTION, TYPE |
| Constructor Summary | |
|---|---|
ReferableModelMBean()
Creates an empty adapter. |
|
ReferableModelMBean(ModelMBeanInfo info)
Creates a new adapter with a specified model. |
|
| Method Summary | |
|---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
Object |
getAttribute(String name)
|
String |
getCanonicalName()
Gets the canonical object name of the MBean as a string. |
Object |
getManagedResource()
Gets the managed resource. |
MBeanReference |
getMBean()
Gets a reference to the MBean. |
String |
getNamePattern()
Gets the name pattern as a string. |
MBeanNotificationInfo[] |
getNotificationInfo()
|
ObjectName |
getQueryPattern()
Gets the name pattern as an object name query. |
void |
postDeregister()
|
void |
postRegister(Boolean done)
|
void |
preDeregister()
|
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
|
void |
removeNotificationListener(NotificationListener listener)
|
void |
sendNotification(Notification notification)
|
void |
setAttribute(Attribute attr)
|
void |
setCanonicalName(String name)
Sets the canonical object name of the MBean as a string. |
void |
setManagedResource(Object adaptee,
String type)
|
void |
setNamePattern(String pattern)
Sets the name pattern as a string. |
void |
setQueryPattern(ObjectName pattern)
Sets the name pattern as an object name query. |
| Methods inherited from class javax.management.modelmbean.RequiredModelMBean |
|---|
addAttributeChangeNotificationListener, getAttributes, getClassLoaderRepository, getMBeanInfo, invoke, load, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, setAttributes, setModelMBeanInfo, store |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.management.modelmbean.ModelMBean |
|---|
setModelMBeanInfo |
| Methods inherited from interface javax.management.DynamicMBean |
|---|
getAttributes, getMBeanInfo, invoke, setAttributes |
| Methods inherited from interface javax.management.PersistentMBean |
|---|
load, store |
| Methods inherited from interface javax.management.modelmbean.ModelMBeanNotificationBroadcaster |
|---|
addAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification |
| Field Detail |
|---|
public static final String ADAPTER_NOTIF_DESCRIPTION
public static final ModelMBeanNotificationInfo[] ADAPTER_NOTIFICATIONS
| Constructor Detail |
|---|
public ReferableModelMBean()
throws MBeanException
MBeanException - if initialization of the adaptee fails.
public ReferableModelMBean(ModelMBeanInfo info)
throws MBeanException,
RuntimeOperationsException
info - the managed model.
MBeanException - if initialization of the adaptee fails.
RuntimeOperationsException - for exceptions during construction.| Method Detail |
|---|
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
preRegister in interface MBeanRegistrationpreRegister in class RequiredModelMBeanExceptionpublic void postRegister(Boolean done)
postRegister in interface MBeanRegistrationpostRegister in class RequiredModelMBean
public void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationpreDeregister in class RequiredModelMBeanExceptionpublic void postDeregister()
postDeregister in interface MBeanRegistrationpostDeregister in class RequiredModelMBeanpublic MBeanReference getMBean()
ReferableMBean
getMBean in interface ReferableMBeanpublic String getCanonicalName()
Identifiable
getCanonicalName in interface Identifiable
public void setCanonicalName(String name)
throws MalformedObjectNameException
Identifiable
setCanonicalName in interface Identifiablename - the canonical object name as a string.
MalformedObjectNameException - for an invalid name.public String getNamePattern()
NamePattern
getNamePattern in interface NamePattern
public void setNamePattern(String pattern)
throws MalformedObjectNameException
NamePattern
setNamePattern in interface NamePatternpattern - the name pattern.
MalformedObjectNameException - for an invalid name.public ObjectName getQueryPattern()
NamePattern
getQueryPattern in interface NamePatternpublic void setQueryPattern(ObjectName pattern)
NamePattern
setQueryPattern in interface NamePatternpattern - the query pattern.
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
addNotificationListener in interface NotificationBroadcasteraddNotificationListener in class RequiredModelMBeanpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class RequiredModelMBean
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterremoveNotificationListener in class RequiredModelMBeanListenerNotFoundExceptionpublic void sendNotification(Notification notification)
sendNotification in interface ModelMBeanNotificationBroadcastersendNotification in class RequiredModelMBeanpublic Object getManagedResource()
AdaptableMBean
getManagedResource in interface AdaptableMBean
public void setManagedResource(Object adaptee,
String type)
throws MBeanException,
RuntimeOperationsException,
InstanceNotFoundException,
InvalidTargetObjectTypeException
setManagedResource in interface ModelMBeansetManagedResource in class RequiredModelMBeanMBeanException
RuntimeOperationsException
InstanceNotFoundException
InvalidTargetObjectTypeException
public Object getAttribute(String name)
throws AttributeNotFoundException,
ReflectionException,
MBeanException
getAttribute in interface DynamicMBeangetAttribute in class RequiredModelMBeanAttributeNotFoundException
ReflectionException
MBeanException
public void setAttribute(Attribute attr)
throws AttributeNotFoundException,
InvalidAttributeValueException,
ReflectionException,
MBeanException
setAttribute in interface DynamicMBeansetAttribute in class RequiredModelMBeanAttributeNotFoundException
InvalidAttributeValueException
ReflectionException
MBeanException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||