|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.services.cascading.RemoteModelProxy
| Constructor Summary | |
RemoteModelProxy(Cascader casc,
ObjectName name)
|
|
| Method Summary | |
void |
addAttributeChangeNotificationListener(NotificationListener inlistener,
java.lang.String inAttributeName,
java.lang.Object inhandback)
Registers an object which implements the NotificationListener interface as a listener for AttributeChangeNotifications. |
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
Enables a couple (listener,handback) for a registered MBean to be added. |
java.lang.String |
findPersistent(java.lang.String MBeanName)
Looks in the persistent store for this MBean to see if there is a persistent version of it. |
java.lang.Object |
getAttribute(java.lang.String attribute)
Gets the value of a specific attribute of this MBean. |
AttributeList |
getAttributes(java.lang.String[] attributes)
Enables the values of several attributes of this MBean. |
MBeanInfo |
getMBeanInfo()
This method discovers the attributes and operations this MBean exposes for management. |
MBeanNotificationInfo[] |
getNotificationInfo()
Returns a NotificationInfo object containing the name of the Java class of the notification and the notification types sent. |
java.lang.String |
getObjectName()
Returns the ObjectName of this RemoteProxy with which it has been registered with the MBeanServer. |
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
Invokes an action on the original MBean associated with this MBean. |
void |
load()
Locates the MBean in a persistent store and primes this instance of the MBean with the stored values.Any currently set values are overwritten. |
void |
postDeregister()
Allows this MBean to perform any operations needed after having been de-registered in the MBeanServer. |
void |
postRegister(java.lang.Boolean registrationDone)
Allows this MBean to perform any operations needed after having been registered in the MBeanServer or after the registration has failed. |
void |
preDeregister()
Allows this MBean to perform any operations it needs before being de-registered by the MBeanServer. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Allows the MBean to perform any operations it needs before being registered in the MBeanServer. |
void |
removeAttributeChangeNotificationListener(NotificationListener inlistener,
java.lang.String inAttributeName)
Removes a listener for attributeChangeNotifications from the MBean. |
void |
removeNotificationListener(NotificationListener listener)
Enables a listener for an MBean to be removed. |
void |
sendAttributeChangeNotification(Attribute inOldVal,
Attribute inNewVal)
Sends an attributeChangeNotification which contains the old value and new value for the attribute to the registered AttributeChangeNotification listeners on the ModelMBean. |
void |
sendAttributeChangeNotification(AttributeChangeNotification ntfyObj)
Sends an attributeChangeNotification which is passed in to the registered attributeChangeNotification listeners on the ModelMBean. |
void |
sendNotification(Notification ntfyObj)
Sends a Notification which is passed in to the registered Notification listeners on the ModelMBean as a jmx.modelmbean.general notification. |
void |
sendNotification(java.lang.String ntfyText)
Sends a Notification which contains the text string that is passed in to the registered Notification listeners on the ModelMBean. |
void |
setAttribute(Attribute attribute)
Sets the value of a specific attribute of this MBean. |
AttributeList |
setAttributes(AttributeList attributes)
Sets the values of several attributes of this MBean. |
void |
setManagedResource(java.lang.Object mr,
java.lang.String mr_type)
Sets the instance handle of the object against which to execute all methods in this ModelMBean management interface (MBeanInfo and Descriptors) |
void |
setModelMBeanInfo(ModelMBeanInfo mbi)
Initializes a ModelMBean object using ModelMBeanInfo passed in. |
void |
store()
Writes the MBean in a persistent store. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public RemoteModelProxy(Cascader casc,
ObjectName name)
| Method Detail |
public MBeanInfo getMBeanInfo()
public java.lang.Object getAttribute(java.lang.String attribute)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
attribute - A String specifying the name of the
attribute to be retrieved.public AttributeList getAttributes(java.lang.String[] attributes)
attributes - A list of attributes to be retrieved.
public java.lang.Object invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
throws MBeanException,
ReflectionException
actionName - The name of the action to be invoked.params - An array containing the parameters to be
set when the action is invokedsignature - An array containing the signature of
the action. The class objects will be loaded using the
same class loader as the one used for loading the MBean
on which the action was invoked.
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
attribute - The identification of the attribute to
be set and the value it is to be set to.public AttributeList setAttributes(AttributeList attributes)
attributes - A list of attributes: The identification
of the attributes to be set and the values they are to be set to.public java.lang.String getObjectName()
public void load()
throws MBeanException,
RuntimeOperationsException,
InstanceNotFoundException
public void store()
throws MBeanException,
RuntimeOperationsException,
InstanceNotFoundException
public java.lang.String findPersistent(java.lang.String MBeanName)
throws java.lang.Exception
MBeanName - The name of the MBean.
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws java.lang.Exception
server - The MBeanServer in which the MBean will be registered.name - The object name of the MBean.public void postRegister(java.lang.Boolean registrationDone)
registrationDone - Indicates whether or not the MBean has been successfully
registered in the MBeanServer. The value false means that either the registration phase
has failed.
public void preDeregister()
throws java.lang.Exception
public void postDeregister()
public void setManagedResource(java.lang.Object mr,
java.lang.String mr_type)
throws MBeanException,
RuntimeOperationsException,
InstanceNotFoundException,
InvalidTargetObjectTypeException
mr - Object that is the managed resourcemr_type - The type of reference for the managed resource. Can be:
ObjectReference, Handle, IOR, EJBHandle, RMIReference. If the MBeanServer
cannot process the mr_type passed in, an InvalidTargetTypeException will be thrown.
public void setModelMBeanInfo(ModelMBeanInfo mbi)
throws MBeanException,
RuntimeOperationsException
inModelMBeanInfo - - The ModelMBeanInfo object to be used by the
ModelMBean.
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
throws java.lang.IllegalArgumentException
listener - The listener object which will handles notifications emitted by the
registered MBean.filter - The filter object. If not specified, no filtering will be performed before
handling notifications.handback - The context to be sent to the listener when a notification is emitted.
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
listener - - The listener object which will handles notifications emitted by the
registered MBean.public MBeanNotificationInfo[] getNotificationInfo()
public void addAttributeChangeNotificationListener(NotificationListener inlistener,
java.lang.String inAttributeName,
java.lang.Object inhandback)
throws MBeanException,
RuntimeOperationsException,
java.lang.IllegalArgumentException
inlistener - The listener object which will handles notifications
emitted by the registered MBean.inAttributeName - The name of the MBean attribute for which to
receive change notifications. If null, then all attribute
changes will cause an attributeChangeNotification to be issued.inhandback - The context to be sent to the listener with the
notification when a notification is emitted.
public void removeAttributeChangeNotificationListener(NotificationListener inlistener,
java.lang.String inAttributeName)
throws MBeanException,
RuntimeOperationsException,
ListenerNotFoundException
inlistener - The listener name which was handling notifications
emitted by the registered MBean. This method will remove
all information related to this listener.inAttributeName - The attribute for which the listener no longer
wants to receive attributeChangeNotifications.
public void sendNotification(Notification ntfyObj)
throws MBeanException,
RuntimeOperationsException
ntfyObj - The notification which is to be passed to the
'handleNotification' method of the listener object.
public void sendNotification(java.lang.String ntfyText)
throws MBeanException,
RuntimeOperationsException
ntfyText - The text which is to be passed in the Notification
to the 'handleNotification' method of the listener object.
the constructed Notification will be:
type "jmx.modelmbean.general"
source this ModelMBean instance
sequence 1
public void sendAttributeChangeNotification(AttributeChangeNotification ntfyObj)
throws MBeanException,
RuntimeOperationsException
ntfyObj - The notification which is to be passed to the
'handleNotification' method of the listener object.
public void sendAttributeChangeNotification(Attribute inOldVal,
Attribute inNewVal)
throws MBeanException,
RuntimeOperationsException
inOldVal - The origional value for the AttributeinNewVal - The current value for the Attribute
The constructed attributeChangeNotification will be: type "jmx.attribute.change" source this ModelMBean instance sequence 1 attributeName oldValue.getName() attributeType oldValue's class attributeOldValue oldValue.getValue() attributeNewValue newValue.getValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||