Sun Adapter for TCP/IP HL7

com.stc.connector.tcpip.model.mbeans
Class TCPIPActivationSpecMonitor

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by com.stc.connector.management.jca.system.mbeans.BaseMonitorMBean
          extended by com.stc.connector.management.jca.system.mbeans.STCActivationSpecMonitor
              extended by 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
 
Method Summary
 javax.management.MBeanInfo buildMBeanInfo()
           
 javax.resource.spi.ActivationSpec getActivationSpec()
           
 java.lang.Object getAttribute(java.lang.String aName)
           
 void setActivationSpec(javax.resource.spi.ActivationSpec aSpec)
           
 void setMonitorDataContainer(com.stc.connector.management.jca.system.mbeans.MonitorDataContainer pDataContainer)
          Set the data container that provides the dynamic monitor data
 
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
 

Field Detail

version

public static final java.lang.String version
See Also:
Constant Field Values
Constructor Detail

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 monitor
aDescription - description of the monitor
aConfiguration - configuration of the connection
aRAConfiguration - configuration of the underlying resource adapter
Throws:
java.lang.Exception
Method Detail

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)

Sun Adapter for TCP/IP HL7