Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.jdbc
Class XADataSourceLoader

    java.lang.Object
      |
      +--javax.management.NotificationBroadcasterSupport
            |
            +--org.jboss.util.ServiceMBeanSupport
                  |
                  +--org.jboss.jdbc.XADataSourceLoader

All Implemented Interfaces:
  javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, Service, ServiceMBean, XADataSourceLoaderMBean

public class XADataSourceLoader
extends ServiceMBeanSupport
implements XADataSourceLoaderMBean

Service that loads a JDBC 2 std. extension-compliant connection pool. This pool generates connections that are registered with the current Transaction and support two-phase commit. The constructors are called by the JMX engine based on your MLET tags.

Version:
  $Revision: 1.16.4.6 $
Author:
  Aaron Mulder, danch (Dan Christopherson), Bill Burke, Andreas Schaefer Revision:
  20010701 danch added support for timeout in blocking. 20010703 bill added support for transaction isolation and ps cache size. 20011104 andy imported the path #424399 from david jencks to make this restartable

Fields inherited from class org.jboss.util.ServiceMBeanSupport
`log, server`

Fields inherited from interface org.jboss.jdbc.XADataSourceLoaderMBean
`OBJECT_NAME`

Fields inherited from interface org.jboss.util.ServiceMBean
`STARTED, STARTING, states, STOPPED, STOPPING`

Constructor Summary
`XADataSourceLoader()`
`XADataSourceLoader(java.lang.String poolName, java.lang.String xaDataSourceClass)`

Method Summary
`long` | `getAvailableConnections()`
`boolean` | `getBlocking()`
`int` | `getBlockingTimeout()`
`java.lang.String` | `getDataSourceClass()`
`boolean` | `getGCEnabled()`
`long` | `getGCInterval()`
`long` | `getGCMinIdleTime()`
`long` | `getIdleTimeout()`
`boolean` | `getIdleTimeoutEnabled()`
`boolean` | `getInvalidateOnError()`
`java.lang.String` | `getJDBCUser()`
`boolean` | `getLoggingEnabled()`
`float` | `getMaxIdleTimeoutPercent()`
`int` | `getMaxSize()`
`int` | `getMinSize()`
`java.lang.String` | `getName()`
`javax.management.ObjectName` | `getObjectName(javax.management.MBeanServer server, javax.management.ObjectName objectName)`
`java.lang.String` | `getPassword()`
`java.lang.String` | `getPoolName()`
`java.lang.String` | `getProperties()`
`int` | `getPSCacheSize()`
`boolean` | `getReleaseOnCommit()` when a transaction commits release the created transaction.
`boolean` | `getSaveStackTrace()` Have XAClientConnections save a stack trace on creation This is useful for debugging non-closed connections.
`boolean` | `getTimestampUsed()`
`java.lang.String` | `getTransactionIsolation()`
`java.lang.String` | `getURL()`
`long` | `getUsedConnections()`
`void` | `setBlocking(boolean blocking)`
`void` | `setBlockingTimeout(int blockingTimeout)`
`void` | `setDataSourceClass(java.lang.String clazz)`
`void` | `setGCEnabled(boolean gcEnabled)`
`void` | `setGCInterval(long interval)`
`void` | `setGCMinIdleTime(long idleMillis)`
`void` | `setIdleTimeout(long idleMillis)`
`void` | `setIdleTimeoutEnabled(boolean enabled)`
`void` | `setInvalidateOnError(boolean invalidate)`
`void` | `setJDBCUser(java.lang.String userName)`
`void` | `setLoggingEnabled(boolean enabled)`
`void` | `setMaxIdleTimeoutPercent(float percent)`
`void` | `setMaxSize(int maxSize)`
`void` | `setMinSize(int minSize)`
`void` | `setPassword(java.lang.String password)`
`void` | `setPoolName(java.lang.String name)`
`void` | `setProperties(java.lang.String properties)`
`void` | `setPSCacheSize(int size)`
`void` | `setReleaseOnCommit(boolean rel)`
`void` | `setSaveStackTrace(boolean save)`
`void` | `setTimestampUsed(boolean timestamp)`
`void` | `setTransactionIsolation(java.lang.String iso)`
`void` | `setURL(java.lang.String url)`
`void` | `startService()`
`void` | `stopService()`

Methods inherited from class org.jboss.util.ServiceMBeanSupport
`destroy, destroyService, getServer, getState, getStateString, init, initService, nextSequenceNumber, postDeregister, postRegister, preDeregister, preRegister, start, stop`

Methods inherited from class javax.management.NotificationBroadcasterSupport
`addNotificationListener, getNotificationInfo, removeNotificationListener, sendNotification`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.jboss.util.ServiceMBean
`getState, getStateString`

Methods inherited from interface org.jboss.util.Service
`destroy, init, start, stop`

Constructor Detail

### XADataSourceLoader

    public XADataSourceLoader()

### XADataSourceLoader

    public XADataSourceLoader(java.lang.String poolName,
                              java.lang.String xaDataSourceClass)

Method Detail

### setPoolName

    public void setPoolName(java.lang.String name)

  Specified by:
    `setPoolName` in interface `XADataSourceLoaderMBean`

### getPoolName

    public java.lang.String getPoolName()

  Specified by:
    `getPoolName` in interface `XADataSourceLoaderMBean`

### setDataSourceClass

    public void setDataSourceClass(java.lang.String clazz)

  Specified by:
    `setDataSourceClass` in interface `XADataSourceLoaderMBean`

### getDataSourceClass

    public java.lang.String getDataSourceClass()

  Specified by:
    `getDataSourceClass` in interface `XADataSourceLoaderMBean`

### setURL

    public void setURL(java.lang.String url)

  Specified by:
    `setURL` in interface `XADataSourceLoaderMBean`

### getURL

    public java.lang.String getURL()

  Specified by:
    `getURL` in interface `XADataSourceLoaderMBean`

### setJDBCUser

    public void setJDBCUser(java.lang.String userName)

  Specified by:
    `setJDBCUser` in interface `XADataSourceLoaderMBean`

### getJDBCUser

    public java.lang.String getJDBCUser()

  Specified by:
    `getJDBCUser` in interface `XADataSourceLoaderMBean`

### setPassword

    public void setPassword(java.lang.String password)

  Specified by:
    `setPassword` in interface `XADataSourceLoaderMBean`

### getPassword

    public java.lang.String getPassword()

  Specified by:
    `getPassword` in interface `XADataSourceLoaderMBean`

### setProperties

    public void setProperties(java.lang.String properties)

  Specified by:
    `setProperties` in interface `XADataSourceLoaderMBean`

### getProperties

    public java.lang.String getProperties()

  Specified by:
    `getProperties` in interface `XADataSourceLoaderMBean`

### setLoggingEnabled

    public void setLoggingEnabled(boolean enabled)

  Specified by:
    `setLoggingEnabled` in interface `XADataSourceLoaderMBean`

### getLoggingEnabled

    public boolean getLoggingEnabled()

  Specified by:
    `getLoggingEnabled` in interface `XADataSourceLoaderMBean`

### setMinSize

    public void setMinSize(int minSize)

  Specified by:
    `setMinSize` in interface `XADataSourceLoaderMBean`

### getMinSize

    public int getMinSize()

  Specified by:
    `getMinSize` in interface `XADataSourceLoaderMBean`

### setMaxSize

    public void setMaxSize(int maxSize)

  Specified by:
    `setMaxSize` in interface `XADataSourceLoaderMBean`

### getMaxSize

    public int getMaxSize()

  Specified by:
    `getMaxSize` in interface `XADataSourceLoaderMBean`

### setBlocking

    public void setBlocking(boolean blocking)

  Specified by:
    `setBlocking` in interface `XADataSourceLoaderMBean`

### getBlocking

    public boolean getBlocking()

  Specified by:
    `getBlocking` in interface `XADataSourceLoaderMBean`

### setBlockingTimeout

    public void setBlockingTimeout(int blockingTimeout)

  Specified by:
    `setBlockingTimeout` in interface `XADataSourceLoaderMBean`

### getBlockingTimeout

    public int getBlockingTimeout()

  Specified by:
    `getBlockingTimeout` in interface `XADataSourceLoaderMBean`

### setTransactionIsolation

    public void setTransactionIsolation(java.lang.String iso)

  Specified by:
    `setTransactionIsolation` in interface `XADataSourceLoaderMBean`

### getTransactionIsolation

    public java.lang.String getTransactionIsolation()

  Specified by:
    `getTransactionIsolation` in interface `XADataSourceLoaderMBean`

### setGCEnabled

    public void setGCEnabled(boolean gcEnabled)

  Specified by:
    `setGCEnabled` in interface `XADataSourceLoaderMBean`

### getGCEnabled

    public boolean getGCEnabled()

  Specified by:
    `getGCEnabled` in interface `XADataSourceLoaderMBean`

### setGCInterval

    public void setGCInterval(long interval)

  Specified by:
    `setGCInterval` in interface `XADataSourceLoaderMBean`

### getGCInterval

    public long getGCInterval()

  Specified by:
    `getGCInterval` in interface `XADataSourceLoaderMBean`

### setGCMinIdleTime

    public void setGCMinIdleTime(long idleMillis)

  Specified by:
    `setGCMinIdleTime` in interface `XADataSourceLoaderMBean`

### getGCMinIdleTime

    public long getGCMinIdleTime()

  Specified by:
    `getGCMinIdleTime` in interface `XADataSourceLoaderMBean`

### setIdleTimeoutEnabled

    public void setIdleTimeoutEnabled(boolean enabled)

  Specified by:
    `setIdleTimeoutEnabled` in interface `XADataSourceLoaderMBean`

### getIdleTimeoutEnabled

    public boolean getIdleTimeoutEnabled()

  Specified by:
    `getIdleTimeoutEnabled` in interface `XADataSourceLoaderMBean`

### setIdleTimeout

    public void setIdleTimeout(long idleMillis)

  Specified by:
    `setIdleTimeout` in interface `XADataSourceLoaderMBean`

### getIdleTimeout

    public long getIdleTimeout()

  Specified by:
    `getIdleTimeout` in interface `XADataSourceLoaderMBean`

### setMaxIdleTimeoutPercent

    public void setMaxIdleTimeoutPercent(float percent)

  Specified by:
    `setMaxIdleTimeoutPercent` in interface `XADataSourceLoaderMBean`

### getMaxIdleTimeoutPercent

    public float getMaxIdleTimeoutPercent()

  Specified by:
    `getMaxIdleTimeoutPercent` in interface `XADataSourceLoaderMBean`

### setInvalidateOnError

    public void setInvalidateOnError(boolean invalidate)

  Specified by:
    `setInvalidateOnError` in interface `XADataSourceLoaderMBean`

### getInvalidateOnError

    public boolean getInvalidateOnError()

  Specified by:
    `getInvalidateOnError` in interface `XADataSourceLoaderMBean`

### setTimestampUsed

    public void setTimestampUsed(boolean timestamp)

  Specified by:
    `setTimestampUsed` in interface `XADataSourceLoaderMBean`

### getTimestampUsed

    public boolean getTimestampUsed()

  Specified by:
    `getTimestampUsed` in interface `XADataSourceLoaderMBean`

### getPSCacheSize

    public int getPSCacheSize()

  Specified by:
    `getPSCacheSize` in interface `XADataSourceLoaderMBean`

### setPSCacheSize

    public void setPSCacheSize(int size)

  Specified by:
    `setPSCacheSize` in interface `XADataSourceLoaderMBean`

### getReleaseOnCommit

    public boolean getReleaseOnCommit()

  when a transaction commits release the created transaction.
  Specified by:
    `getReleaseOnCommit` in interface `XADataSourceLoaderMBean`

### setReleaseOnCommit

    public void setReleaseOnCommit(boolean rel)

  Specified by:
    `setReleaseOnCommit` in interface `XADataSourceLoaderMBean`

### getSaveStackTrace

    public boolean getSaveStackTrace()

  Have XAClientConnections save a stack trace on creation This is useful for debugging non-closed connections. It must be used with ReleaseOnCommit option
  Specified by:
    `getSaveStackTrace` in interface `XADataSourceLoaderMBean`

### setSaveStackTrace

    public void setSaveStackTrace(boolean save)

  Specified by:
    `setSaveStackTrace` in interface `XADataSourceLoaderMBean`

### getObjectName

    public javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
                                                     javax.management.ObjectName objectName)
                                              throws javax.management.MalformedObjectNameException

  Overrides:
    `getObjectName` in class `ServiceMBeanSupport`

### getName

    public java.lang.String getName()

  Specified by:
    `getName` in interface `ServiceMBean`
  Overrides:
    `getName` in class `ServiceMBeanSupport`

### getAvailableConnections

    public long getAvailableConnections()

  Specified by:
    `getAvailableConnections` in interface `XADataSourceLoaderMBean`

### getUsedConnections

    public long getUsedConnections()

  Specified by:
    `getUsedConnections` in interface `XADataSourceLoaderMBean`

### startService

    public void startService()
                      throws java.lang.Exception

  Overrides:
    `startService` in class `ServiceMBeanSupport`

### stopService

    public void stopService()

  Overrides:
    `stopService` in class `ServiceMBeanSupport`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000 The JBoss Organization. All Rights Reserved.