|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.modelmbean.RequiredModelMBean org.norther.tammi.core.model.ReferableModelMBean<R>
R
- the adaptee type.public class ReferableModelMBean<R>
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 |
---|
ID, MBEAN, NS, 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. |
R |
getManagedResource()
Gets the managed resource. |
MBeanReference<R> |
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 MBeanRegistration
preRegister
in class RequiredModelMBean
Exception
public void postRegister(Boolean done)
postRegister
in interface MBeanRegistration
postRegister
in class RequiredModelMBean
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
preDeregister
in class RequiredModelMBean
Exception
public void postDeregister()
postDeregister
in interface MBeanRegistration
postDeregister
in class RequiredModelMBean
public MBeanReference<R> getMBean()
ReferableMBean
getMBean
in interface ReferableMBean<R>
public String getCanonicalName()
Identifiable
getCanonicalName
in interface Identifiable
public void setCanonicalName(String name) throws MalformedObjectNameException
Identifiable
setCanonicalName
in interface Identifiable
name
- 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 NamePattern
pattern
- the name pattern.
MalformedObjectNameException
- for an invalid name.public ObjectName getQueryPattern()
NamePattern
getQueryPattern
in interface NamePattern
public void setQueryPattern(ObjectName pattern)
NamePattern
setQueryPattern
in interface NamePattern
pattern
- the query pattern.public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
addNotificationListener
in interface NotificationBroadcaster
addNotificationListener
in class RequiredModelMBean
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
getNotificationInfo
in class RequiredModelMBean
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
removeNotificationListener
in class RequiredModelMBean
ListenerNotFoundException
public void sendNotification(Notification notification)
sendNotification
in interface ModelMBeanNotificationBroadcaster
sendNotification
in class RequiredModelMBean
public R getManagedResource()
AdaptableMBean
getManagedResource
in interface AdaptableMBean<R>
public void setManagedResource(Object adaptee, String type) throws MBeanException, RuntimeOperationsException, InstanceNotFoundException, InvalidTargetObjectTypeException
setManagedResource
in interface ModelMBean
setManagedResource
in class RequiredModelMBean
MBeanException
RuntimeOperationsException
InstanceNotFoundException
InvalidTargetObjectTypeException
public Object getAttribute(String name) throws AttributeNotFoundException, ReflectionException, MBeanException
getAttribute
in interface DynamicMBean
getAttribute
in class RequiredModelMBean
AttributeNotFoundException
ReflectionException
MBeanException
public void setAttribute(Attribute attr) throws AttributeNotFoundException, InvalidAttributeValueException, ReflectionException, MBeanException
setAttribute
in interface DynamicMBean
setAttribute
in class RequiredModelMBean
AttributeNotFoundException
InvalidAttributeValueException
ReflectionException
MBeanException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |