|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.core.rt.VariableX org.norther.tammi.core.rt.VariableY
public class VariableY
An extended Variable implementation supporting a fixed set of dynamic attributes by default. VariableY implements NotificationEmitter, which allows its use with handles. The meta-data is locked and shared with other instances of the same virtual type making the memory footprint smaller.
Field Summary |
---|
Fields inherited from interface org.norther.tammi.core.base.ReferableMBean |
---|
MBEAN, NS |
Constructor Summary | |
---|---|
|
VariableY()
Constructs a new variable. |
protected |
VariableY(String type)
Constructs a new variable with a virtual type. |
|
VariableY(String type,
MBeanReference<? extends VariableRegistry> vr)
Constructs a new variable with a virtual type from the specified registry. |
Method Summary | |
---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
String |
getCanonicalName()
Gets the canonical object name of the MBean as a string. |
MBeanReference<Variable> |
getMBean()
Gets a reference to the MBean. |
protected MBeanDelegate |
getMBeanDelegate()
Gets the delegate to provide access to its methods for subclasses. |
MBeanInfo |
getMBeanInfo()
|
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)
|
protected void |
registerAttributeInfo(VariableInfo info)
Registers attribute info. |
void |
removeNotificationListener(NotificationListener listener)
|
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
void |
sendNotification(String message,
String name,
String type,
Object... values)
Sends a modification notification. |
void |
setCanonicalName(String name)
Sets the canonical object name of the MBean as a string. |
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 java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VariableY()
public VariableY(String type, MBeanReference<? extends VariableRegistry> vr)
type
- the variable type.vr
- the variable registry.protected VariableY(String type)
type
- the variable type.Method Detail |
---|
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister
in interface MBeanRegistration
preRegister
in class VariableX
Exception
public void postRegister(Boolean done)
postRegister
in interface MBeanRegistration
postRegister
in class VariableX
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
preDeregister
in class VariableX
Exception
public void postDeregister()
postDeregister
in interface MBeanRegistration
postDeregister
in class VariableX
public MBeanReference<Variable> getMBean()
ReferableMBean
getMBean
in interface ReferableMBean<Variable>
getMBean
in class VariableX
public String getCanonicalName()
Identifiable
getCanonicalName
in interface Identifiable
getCanonicalName
in class VariableX
public void setCanonicalName(String name) throws MalformedObjectNameException
Identifiable
setCanonicalName
in interface Identifiable
setCanonicalName
in class VariableX
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
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationEmitter
ListenerNotFoundException
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
ListenerNotFoundException
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
getMBeanInfo
in class VariableX
public void sendNotification(String message, String name, String type, Object... values)
VariableX
NotificationEmitter
interface can implement this method also
to provide modification notifications.
sendNotification
in class VariableX
message
- the notification message.name
- the attribute name.type
- the attribute type.values
- the old and new values of the attribute.protected MBeanDelegate getMBeanDelegate()
protected void registerAttributeInfo(VariableInfo info)
VariableX
registerAttributeInfo
in class VariableX
info
- the variable info.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |