|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
com.stc.connector.management.jca.system.mbeans.BaseMonitorMBean
com.stc.connector.management.jca.system.mbeans.STCManagedConnectionMonitor
| Field Summary |
| Fields inherited from class com.stc.connector.management.jca.system.mbeans.BaseMonitorMBean |
mAttributesInfo, mConstructorsInfo, mMBeanInfo, mNotificationsInfo, mOperationsInfo |
| Constructor Summary | |
STCManagedConnectionMonitor()
|
|
| 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()
Disable use of managed connection |
void |
enable()
Enable use of managed connection |
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.Integer |
getCurrentConnections()
Getter for current number of connections |
java.lang.Integer |
getMaxConnections()
Getter for Maximum number of connections allowed |
java.lang.Integer |
getMinConnections()
Getter for Minimum number of connections allowed |
java.lang.String |
getName()
Getter for this mbean's name |
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()
Flag indicating if managed connection is enabled or not |
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 |
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 |
setCurrentConnections(int curConns)
Setter for current number of connections used |
void |
setMaxConnections(int maxConns)
Setter for Maximum number of connections allowed |
void |
setMinConnections(int minConns)
Setter for Minimum number of connections allowed |
void |
setName(java.lang.String name)
Setter for this mbean's name |
| 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 STCManagedConnectionMonitor()
| 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.DynamicMBeaninvoke in class BaseMonitorMBeanoperationName - 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.DynamicMBeangetAttributes in class BaseMonitorMBeanaNames - 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.DynamicMBeangetAttribute in class BaseMonitorMBeanjavax.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 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 STCManagedConnectionMonitorBean
public void sendAlert(java.lang.String alertMsg,
int severity)
sendAlert in interface STCManagedConnectionMonitorBeanpublic void sendAlert()
sendAlert in interface STCManagedConnectionMonitorBeanpublic 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.MBeanRegistrationpreRegister in class BaseMonitorMBeanaServer - MBeanServeraName - MBean's ObjectName
ObjectName
java.lang.Exception - This exception should be caught by the MBean server
and re-thrown as an MBeanRegistrationExceptionpublic void postRegister(java.lang.Boolean registrationDone)
MBeanRegistration implementation method
postRegister in interface javax.management.MBeanRegistrationpostRegister in class BaseMonitorMBeanregistrationDone - 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 STCManagedConnectionMonitorBeanpublic void disable()
disable in interface STCManagedConnectionMonitorBeanpublic java.lang.Boolean isEnabled()
isEnabled in interface STCManagedConnectionMonitorBeanpublic void setMinConnections(int minConns)
setMinConnections in interface STCManagedConnectionMonitorBeanpublic java.lang.Integer getMinConnections()
getMinConnections in interface STCManagedConnectionMonitorBeanpublic void setMaxConnections(int maxConns)
setMaxConnections in interface STCManagedConnectionMonitorBeanpublic java.lang.Integer getMaxConnections()
getMaxConnections in interface STCManagedConnectionMonitorBeanpublic void setCurrentConnections(int curConns)
setCurrentConnections in interface STCManagedConnectionMonitorBeanpublic java.lang.Integer getCurrentConnections()
getCurrentConnections in interface STCManagedConnectionMonitorBeanpublic void setName(java.lang.String name)
setName in interface STCManagedConnectionMonitorBeanpublic java.lang.String getName()
getName in interface STCManagedConnectionMonitorBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||