|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 only. VariableY implements NotificationEmitter, which allows its use with handles. The meta-data is locked and shared with other instances of the same virtual type by default making the memory footprint smaller.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.core.rt.VariableX |
|---|
MBEAN_CONST_DESCRIPTION, VARIABLE_ATTRIBUTES, VARIABLE_CONSTRUCTORS, VARIABLE_NOTIFICATIONS, VARIABLE_OPERATIONS |
| Fields inherited from interface org.norther.tammi.core.base.ReferableMBean |
|---|
DEFAULT_ID, ID, MBEAN, MBEAN_DESCRIPTION, TYPE |
| Constructor Summary | |
|---|---|
VariableY()
Constructs a new variable. |
|
VariableY(String type)
Constructs a new variable with a type. |
|
| Method Summary | |
|---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
String |
getCanonicalName()
Gets the canonical object name of the MBean as a string. |
MBeanReference |
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 |
registerVariable(String type)
Registers the type of the variable in the variable registry. |
void |
removeNotificationListener(NotificationListener listener)
|
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
void |
sendNotification(String message,
String name,
String type,
Object oldValue,
Object newValue)
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 |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VariableY()
public VariableY(String type)
type - the variable type.| Method Detail |
|---|
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
preRegister in interface MBeanRegistrationpreRegister in class VariableXExceptionpublic void postRegister(Boolean done)
postRegister in interface MBeanRegistrationpostRegister in class VariableX
public void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationpreDeregister in class VariableXExceptionpublic void postDeregister()
postDeregister in interface MBeanRegistrationpostDeregister in class VariableXpublic MBeanReference getMBean()
ReferableMBean
getMBean in interface ReferableMBeangetMBean in class VariableXpublic String getCanonicalName()
Identifiable
getCanonicalName in interface IdentifiablegetCanonicalName in class VariableX
public void setCanonicalName(String name)
throws MalformedObjectNameException
Identifiable
setCanonicalName in interface IdentifiablesetCanonicalName in class VariableXname - 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 NotificationBroadcaster
public void removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws ListenerNotFoundException
removeNotificationListener in interface NotificationEmitterListenerNotFoundException
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterListenerNotFoundExceptionpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcasterpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeangetMBeanInfo in class VariableX
public void sendNotification(String message,
String name,
String type,
Object oldValue,
Object newValue)
VariableXNotificationEmitter interface can implement this method
also to provide modification notifications.
sendNotification in class VariableXmessage - the notification message.name - the attribute name.type - the attribute type.oldValue - the old value.newValue - the new value.protected void registerVariable(String type)
VariableX
registerVariable in class VariableXtype - the variable type.protected MBeanDelegate getMBeanDelegate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||