org.ow2.jonas.lib.jmbeans
Class J2EEManagedObject

java.lang.Object
  extended by org.ow2.jonas.lib.jmbeans.J2EEManagedObject
Direct Known Subclasses:
J2EEDeployedObject, J2EEResource, J2EEServer, JavaVm, LogManager

public class J2EEManagedObject
extends Object


Field Summary
static String J2EE_TYPE_APPLICATION
          Constant for a j2ee application
static String J2EE_TYPE_SERVER
          Constant for j2ee server
static String NAME
          Name constant
 
Constructor Summary
protected J2EEManagedObject(String objectName)
          MBean constructor
protected J2EEManagedObject(String objectName, boolean stateManageable, boolean statisticsProvider, boolean eventProvider)
          MBean constructor
 
Method Summary
 String getObjectName()
          Return this MBean's name
 boolean isEventProvider()
           
 boolean isStateManageable()
           
 boolean isStatisticsProvider()
           
protected  void sendNotification(Notification notif)
           
 void sendReconfigNotification(long sequenceNumber, String resourceName, Object userData)
          Send a reconfiguration notification to the registerd listener.
 void sendSaveNotification(long sequenceNumber, String resourceName)
          Send a save configuration notification to the registerd listeners.
 void setModelMBean(ModelMBean modelMBean)
          Set reference on my ModelMBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
Name constant

See Also:
Constant Field Values

J2EE_TYPE_SERVER

public static final String J2EE_TYPE_SERVER
Constant for j2ee server

See Also:
Constant Field Values

J2EE_TYPE_APPLICATION

public static final String J2EE_TYPE_APPLICATION
Constant for a j2ee application

See Also:
Constant Field Values
Constructor Detail

J2EEManagedObject

protected J2EEManagedObject(String objectName)
MBean constructor

Parameters:
objectName - The complete name of the managed object

J2EEManagedObject

protected J2EEManagedObject(String objectName,
                            boolean stateManageable,
                            boolean statisticsProvider,
                            boolean eventProvider)
MBean constructor

Parameters:
objectName - object name of the managed object
stateManageable - if true, this managed object implements J2EE State Management Model
statisticsProvider - if true, this managed object implements the J2EE StatisticProvide Model
eventProvider - if true, this managed object implements the J2EE EventProvider Model
Method Detail

getObjectName

public String getObjectName()
Return this MBean's name

Returns:
The name of the MBean (see OBJECT_NAME in the JSR77)

isEventProvider

public boolean isEventProvider()
Returns:
true if it is an event provider

isStateManageable

public boolean isStateManageable()
Returns:
true if this managed object implements J2EE State Management Model

isStatisticsProvider

public boolean isStatisticsProvider()
Returns:
true if this managed object implements the J2EE StatisticProvider Model

setModelMBean

public void setModelMBean(ModelMBean modelMBean)
Set reference on my ModelMBean

Parameters:
modelMBean -

sendSaveNotification

public void sendSaveNotification(long sequenceNumber,
                                 String resourceName)
Send a save configuration notification to the registerd listeners.

Parameters:
sequenceNumber - notification attribute
resourceName - the name of a reconfigurable resource or of a JOnAS service

sendReconfigNotification

public void sendReconfigNotification(long sequenceNumber,
                                     String resourceName,
                                     Object userData)
Send a reconfiguration notification to the registerd listener.

Parameters:
sequenceNumber - notification attribute
resourceName - the name of a reconfigurable resource or of a JOnAS service
userData - data containing the name and the value of the reconfigured property(or properties)

sendNotification

protected void sendNotification(Notification notif)


Copyright © 2008 OW2 Consortium. All Rights Reserved.