com.stc.connector.tcpip.model.mbeans
Class TCPIPActivationSpecMonitor
java.lang.Object
javax.management.NotificationBroadcasterSupport
com.stc.connector.management.jca.system.mbeans.BaseMonitorMBean
com.stc.connector.management.jca.system.mbeans.STCActivationSpecMonitor
com.stc.connector.tcpip.model.mbeans.TCPIPActivationSpecMonitor
- All Implemented Interfaces:
- java.util.EventListener, javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, javax.management.NotificationListener
- Direct Known Subclasses:
- HL7ActivationSpecMonitor
public class TCPIPActivationSpecMonitor
- extends com.stc.connector.management.jca.system.mbeans.STCActivationSpecMonitor
This class is used to add TCP/IP specific mbean properties for monitor display.
- Version:
- cvs revision: $Revision: 1.7 $ Last Modified: $Date: 2008/04/23 07:15:18 $
- Author:
- Harry Liu
Field Summary |
static java.lang.String |
version
|
Fields inherited from class com.stc.connector.management.jca.system.mbeans.STCActivationSpecMonitor |
mDataContainer |
Fields inherited from class com.stc.connector.management.jca.system.mbeans.BaseMonitorMBean |
mActivatedTime, mConfiguration, mDescription, mIsRestartable, mIsStartable, mIsStoppable, mLog, mMBeanServer, mMonitor, mName, mObjectName, mProperties, mShutdownTime, mStarted |
Constructor Summary |
TCPIPActivationSpecMonitor(java.lang.String aName,
java.lang.String aDescription,
com.stc.configuration.IConfiguration aConfiguration,
com.stc.configuration.IConfiguration aRAConfiguration)
Constructor |
Methods inherited from class com.stc.connector.management.jca.system.mbeans.STCActivationSpecMonitor |
handleNotification, invoke, postDeregister |
Methods inherited from class com.stc.connector.management.jca.system.mbeans.BaseMonitorMBean |
addNotificationListener, getActivatedTime, getAttributes, getConfigTemplateAsString, getConfigurationAsString, getMBeanInfo, getName, getProperties, getShutdownTime, getStatus, isRestartable, isStartable, isStarted, isStoppable, postRegister, preDeregister, preRegister, removeNotificationListener, restart, sendNotification, setAttribute, setAttributes, start, stop |
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 |
version
public static final java.lang.String version
- See Also:
- Constant Field Values
TCPIPActivationSpecMonitor
public TCPIPActivationSpecMonitor(java.lang.String aName,
java.lang.String aDescription,
com.stc.configuration.IConfiguration aConfiguration,
com.stc.configuration.IConfiguration aRAConfiguration)
throws java.lang.Exception
- Constructor
- Parameters:
aName
- name of the monitoraDescription
- description of the monitoraConfiguration
- configuration of the connectionaRAConfiguration
- configuration of the underlying resource adapter
- Throws:
java.lang.Exception
buildMBeanInfo
public javax.management.MBeanInfo buildMBeanInfo()
- Overrides:
buildMBeanInfo
in class com.stc.connector.management.jca.system.mbeans.STCActivationSpecMonitor
- See Also:
BaseMonitorMBean.buildMBeanInfo()
getAttribute
public java.lang.Object getAttribute(java.lang.String aName)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
- Specified by:
getAttribute
in interface javax.management.DynamicMBean
- Overrides:
getAttribute
in class com.stc.connector.management.jca.system.mbeans.STCActivationSpecMonitor
- Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
- See Also:
DynamicMBean.getAttribute(java.lang.String)
setMonitorDataContainer
public void setMonitorDataContainer(com.stc.connector.management.jca.system.mbeans.MonitorDataContainer pDataContainer)
throws java.lang.Exception
- Set the data container that provides the dynamic monitor data
- Overrides:
setMonitorDataContainer
in class com.stc.connector.management.jca.system.mbeans.STCActivationSpecMonitor
- Parameters:
pDataContainer
- Object that contains the appropriate methods to deliver the monitor data
and must be defined. Any attribute retrival before this method is called
will return a unavailable message
- Throws:
java.lang.Exception
getActivationSpec
public javax.resource.spi.ActivationSpec getActivationSpec()
- See Also:
com.stc.connector.tcpip.model.mbeans.TCPIPActivationSpecMonitorBean#getActivationSpec()
setActivationSpec
public void setActivationSpec(javax.resource.spi.ActivationSpec aSpec)
- See Also:
com.stc.connector.tcpip.model.mbeans.TCPIPActivationSpecMonitorBean#setActivationSpec(javax.resource.spi.ActivationSpec)