org.jboss.management.j2ee
Class JTAResource

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.management.j2ee.J2EEManagedObject
          extended by org.jboss.management.j2ee.J2EEResource
              extended by org.jboss.management.j2ee.JTAResource
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, J2EEManagedObjectMBean, J2EEResourceMBean, JTAResourceMBean, StatisticsProvider

public class JTAResource
extends J2EEResource
implements JTAResourceMBean

The JBoss JSR-77.3.30 implementation of the JTAResource model

Version:
$Revision: 57197 $
Author:
Andreas Schaefer, Scott Stark, Thomas Diesler

Field Summary
 
Fields inherited from class org.jboss.management.j2ee.J2EEManagedObject
NAME, server, TYPE
 
Constructor Summary
JTAResource(String resName, javax.management.ObjectName j2eeServerName, javax.management.ObjectName jtaServiceName)
           
 
Method Summary
static javax.management.ObjectName create(javax.management.MBeanServer mbeanServer, String resName, javax.management.ObjectName jtaServiceName)
           
static void destroy(javax.management.MBeanServer mbeanServer, String resName)
           
 String getEventType(int pIndex)
           
 String[] getEventTypes()
           
 javax.management.j2ee.statistics.Stats getstats()
          Obtain the Stats from the StatisticsProvider.
 void resetStats()
          Called to reset all statistics in the provider
 String toString()
           
 
Methods inherited from class org.jboss.management.j2ee.J2EEResource
getParentKeys
 
Methods inherited from class org.jboss.management.j2ee.J2EEManagedObject
addChild, getLog, getNextNotificationSequenceNumber, getobjectName, getObjectName, getparent, getServer, getType, getType, iseventProvider, isstateManageable, isstatisticsProvider, newObjectName, postCreation, postDeregister, postRegister, preDeregister, preDestruction, preRegister, removeChild, removeObject, removeObject, sendNotification, setparent
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.management.j2ee.J2EEManagedObjectMBean
addChild, getobjectName, getparent, iseventProvider, isstateManageable, isstatisticsProvider, removeChild, setparent
 

Constructor Detail

JTAResource

public JTAResource(String resName,
                   javax.management.ObjectName j2eeServerName,
                   javax.management.ObjectName jtaServiceName)
            throws javax.management.MalformedObjectNameException,
                   InvalidParentException
Parameters:
resName - Name of the JTAResource
Throws:
InvalidParameterException - If list of nodes or ports was null or empty
javax.management.MalformedObjectNameException
InvalidParentException
Method Detail

create

public static javax.management.ObjectName create(javax.management.MBeanServer mbeanServer,
                                                 String resName,
                                                 javax.management.ObjectName jtaServiceName)

destroy

public static void destroy(javax.management.MBeanServer mbeanServer,
                           String resName)

getstats

public javax.management.j2ee.statistics.Stats getstats()
Obtain the Stats from the StatisticsProvider.

Specified by:
getstats in interface StatisticsProvider
Returns:
An EJBStats subclass

resetStats

public void resetStats()
Description copied from interface: StatisticsProvider
Called to reset all statistics in the provider

Specified by:
resetStats in interface StatisticsProvider

getEventTypes

public String[] getEventTypes()

getEventType

public String getEventType(int pIndex)

toString

public String toString()
Overrides:
toString in class J2EEManagedObject


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.