|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport com.stc.connector.management.jca.system.mbeans.BaseMonitorMBean com.stc.connector.management.jca.system.mbeans.STCActivationSpecMonitor
Field Summary |
Fields inherited from class com.stc.connector.management.jca.system.mbeans.BaseMonitorMBean |
mAttributesInfo, mConstructorsInfo, mMBeanInfo, mNotificationsInfo, mOperationsInfo |
Constructor Summary | |
STCActivationSpecMonitor()
Constructor |
Method Summary | |
protected void |
buildDynamicMBeanInfo()
Build the protected MBeanInfo field, which represents the management interface exposed by the MBean; i.e., the set of attributes, constructors, operations and notifications which are available for management. |
void |
disable()
|
void |
enable()
|
java.lang.String |
getActivatedTime()
Activated time |
java.lang.String |
getActivationSpecDescription()
Getter for this activation spec's description |
java.lang.String |
getActivationSpecName()
Getter for this activation spec's name |
java.lang.Object |
getAttribute(java.lang.String aName)
|
javax.management.AttributeList |
getAttributes(java.lang.String[] aNames)
Retrieves the value of specified attributes of the Dynamic MBean |
java.lang.String |
getName()
Getter for this MBean's name |
javax.resource.spi.ResourceAdapter |
getResourceAdapter()
Getter for resource adapter class object associated with this activation |
java.lang.String |
getShutdownTime()
Shutdown time |
java.lang.Integer |
getStatus()
Status string |
void |
handleNotification(javax.management.Notification aNotification,
java.lang.Object obj)
|
java.lang.Object |
invoke(java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
Invokes an operation on the Dynamic MBean. |
java.lang.Boolean |
isEnabled()
|
java.lang.Boolean |
isSuspended()
|
void |
postRegister(java.lang.Boolean registrationDone)
MBeanRegistration implementation method |
javax.management.ObjectName |
preRegister(javax.management.MBeanServer aServer,
javax.management.ObjectName aName)
MBeanRegistration implementation method |
void |
resume()
|
void |
sendAlert()
|
void |
sendAlert(com.stc.eventmanagement.Event event)
|
void |
sendAlert(java.lang.String alertMsg,
int severity)
|
void |
sendAlert(java.lang.String alertMsgCode,
java.lang.String[] alertMsgCodeArgs,
java.lang.String alertMsg,
int severity)
|
void |
sendAlert(java.lang.String projectName,
java.lang.String collabName,
java.lang.String componentName,
java.lang.String alertMsgCode,
java.lang.String[] alertMsgCodeArgs,
java.lang.String alertMsg,
int severity)
|
void |
setActivatedTime(java.lang.String activatedTime)
Setter for Activated time |
void |
setActivationSpecDescription(java.lang.String asdescription)
Setter for this activation spec's description |
void |
setActivationSpecName(java.lang.String asname)
Setter for this activation spec's name |
void |
setName(java.lang.String name)
Setter for this MBean's name Parse the name and save subparts in HashMap |
void |
setResourceAdapter(javax.resource.spi.ResourceAdapter raObj)
Setter for resource adapter class object associated with this activation |
void |
setShutdownTime(java.lang.String shutdownTime)
Setter for shutdown time |
void |
setStatus(java.lang.Integer status)
Setter for status string |
void |
suspend()
|
Methods inherited from class com.stc.connector.management.jca.system.mbeans.BaseMonitorMBean |
addNotificationListener, buildDefaultDynamicMBeanInfo, getMBeanInfo, postDeregister, preDeregister, removeNotificationListener, sendNotification, setAttribute, setAttributes |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
getNotificationInfo, handleNotification, removeNotificationListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister, preDeregister |
Constructor Detail |
public STCActivationSpecMonitor() throws java.lang.Exception
Method Detail |
protected void buildDynamicMBeanInfo()
buildDynamicMBeanInfo
in class BaseMonitorMBean
public java.lang.Object invoke(java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature) throws javax.management.MBeanException, javax.management.ReflectionException
BaseMonitorMBean
invoke
in interface javax.management.DynamicMBean
invoke
in class BaseMonitorMBean
operationName
- The name of the action to be invokedparams
- An array containing the parameters to be set when the
action is invokedsignature
- An array containing the aSignature of the action.
The class objects will be loaded through the same class loader as
the one used for loading the MBean on which the action is invoked.
javax.management.ReflectionException
- ReflectionException
javax.management.MBeanException
- MBeanExceptionpublic javax.management.AttributeList getAttributes(java.lang.String[] aNames)
BaseMonitorMBean
getAttributes
in interface javax.management.DynamicMBean
getAttributes
in class BaseMonitorMBean
aNames
- aNames of the attributes
public java.lang.Object getAttribute(java.lang.String aName) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
getAttribute
in interface javax.management.DynamicMBean
getAttribute
in class BaseMonitorMBean
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public void handleNotification(javax.management.Notification aNotification, java.lang.Object obj)
handleNotification
in interface javax.management.NotificationListener
public void setResourceAdapter(javax.resource.spi.ResourceAdapter raObj)
public javax.resource.spi.ResourceAdapter getResourceAdapter()
public void sendAlert(java.lang.String projectName, java.lang.String collabName, java.lang.String componentName, java.lang.String alertMsgCode, java.lang.String[] alertMsgCodeArgs, java.lang.String alertMsg, int severity)
public void sendAlert(java.lang.String alertMsgCode, java.lang.String[] alertMsgCodeArgs, java.lang.String alertMsg, int severity)
sendAlert
in interface STCActivationSpecMonitorBean
public void sendAlert(java.lang.String alertMsg, int severity)
sendAlert
in interface STCActivationSpecMonitorBean
public void sendAlert()
sendAlert
in interface STCActivationSpecMonitorBean
public void sendAlert(com.stc.eventmanagement.Event event)
public javax.management.ObjectName preRegister(javax.management.MBeanServer aServer, javax.management.ObjectName aName)
MBeanRegistration
implementation method
preRegister
in interface javax.management.MBeanRegistration
preRegister
in class BaseMonitorMBean
aServer
- MBeanServer
aName
- MBean's ObjectName
ObjectName
java.lang.Exception
- This exception should be caught by the MBean server
and re-thrown as an MBeanRegistrationException
public void postRegister(java.lang.Boolean registrationDone)
MBeanRegistration
implementation method
postRegister
in interface javax.management.MBeanRegistration
postRegister
in class BaseMonitorMBean
registrationDone
- Indicates whether or not the MBean has been
successfully registered in the MBean server.
The value false means that the registration phase has failedpublic void enable()
enable
in interface STCActivationSpecMonitorBean
public void disable()
disable
in interface STCActivationSpecMonitorBean
public java.lang.Boolean isEnabled()
isEnabled
in interface STCActivationSpecMonitorBean
public void suspend()
suspend
in interface STCActivationSpecMonitorBean
public void resume()
resume
in interface STCActivationSpecMonitorBean
public java.lang.Boolean isSuspended()
isSuspended
in interface STCActivationSpecMonitorBean
public java.lang.String getActivatedTime()
getActivatedTime
in interface STCActivationSpecMonitorBean
public void setActivatedTime(java.lang.String activatedTime)
setActivatedTime
in interface STCActivationSpecMonitorBean
public java.lang.String getShutdownTime()
getShutdownTime
in interface STCActivationSpecMonitorBean
public void setShutdownTime(java.lang.String shutdownTime)
setShutdownTime
in interface STCActivationSpecMonitorBean
public void setName(java.lang.String name)
setName
in interface STCActivationSpecMonitorBean
name
- MBean name used to register this MBeanpublic java.lang.String getName()
getName
in interface STCActivationSpecMonitorBean
public void setActivationSpecName(java.lang.String asname)
setActivationSpecName
in interface STCActivationSpecMonitorBean
public java.lang.String getActivationSpecName()
getActivationSpecName
in interface STCActivationSpecMonitorBean
public void setActivationSpecDescription(java.lang.String asdescription)
setActivationSpecDescription
in interface STCActivationSpecMonitorBean
public java.lang.String getActivationSpecDescription()
getActivationSpecDescription
in interface STCActivationSpecMonitorBean
public java.lang.Integer getStatus()
getStatus
in interface STCActivationSpecMonitorBean
public void setStatus(java.lang.Integer status)
setStatus
in interface STCActivationSpecMonitorBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |