Overview | Package | Class | Tree | Deprecated | Index | Help
| Sun Adapter for TCP/IP HL7
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.stc.connector.tcpip.model.mbeans
Class TCPIPMCFMonitor

    java.lang.Object
      javax.management.NotificationBroadcasterSupport
          com.stc.connector.management.jca.system.mbeans.BaseMonitorMBean
              com.stc.connector.management.jca.system.mbeans.STCMCFMonitor
                  com.stc.connector.tcpip.model.mbeans.TCPIPMCFMonitor

All Implemented Interfaces:
  java.util.EventListener, javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, javax.management.NotificationListener

Direct Known Subclasses:
  HL7MCFMonitor

    public class TCPIPMCFMonitor

extends com.stc.connector.management.jca.system.mbeans.STCMCFMonitor

This class is used to add TCP/IP specific mbean properties for monitor display.

Version:
  cvs revision: $Revision: 1.6 $ 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.STCMCFMonitor
`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
`TCPIPMCFMonitor(java.lang.String aMCFName, java.lang.String aMCFDescription, com.stc.configuration.IConfiguration aConfiguration, com.stc.configuration.IConfiguration aRAConfiguration)` Constructor

Method Summary
`javax.management.MBeanInfo` | `buildMBeanInfo()`
`java.lang.Object` | `getAttribute(java.lang.String aName)`
`javax.resource.spi.ManagedConnectionFactory` | `getManagedConnectionFactory()`
`void` | `setManagedConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf)`
`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.STCMCFMonitor
`handleNotification, invoke, postRegister`

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, postDeregister, 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

### TCPIPMCFMonitor

    public TCPIPMCFMonitor(java.lang.String aMCFName,
                           java.lang.String aMCFDescription,
                           com.stc.configuration.IConfiguration aConfiguration,
                           com.stc.configuration.IConfiguration aRAConfiguration)
                    throws java.lang.Exception

  Constructor

  Parameters:
    `aMCFName` - name of the MCF Monitor
    `aMCFDescription` - description of the MCF 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.STCMCFMonitor`
  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.STCMCFMonitor`
  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.STCMCFMonitor`
  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`

### getManagedConnectionFactory

    public javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()

  See Also:
    `com.stc.connector.tcpip.model.mbeans.TCPIPMCFMonitorBean#getManagedConnectionFactory()`

### setManagedConnectionFactory

    public void setManagedConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf)

  See Also:
    `com.stc.connector.tcpip.model.mbeans.TCPIPMCFMonitorBean#setManagedConnectionFactory(javax.resource.spi.ManagedConnectionFactory)`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Sun Adapter for TCP/IP HL7
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD