JBoss API: Class XADataSourceLoader
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.3 $
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
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
XADataSourceLoader
public XADataSourceLoader ()
XADataSourceLoader
public XADataSourceLoader (java.lang.String poolName,
java.lang.String xaDataSourceClass)
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
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
startService
public void startService ()
throws java.lang.Exception
Overrides: startService
in class ServiceMBeanSupport
stopService
public void stopService ()
Overrides: stopService
in class ServiceMBeanSupport
Copyright © 2000 The JBoss Organization. All Rights Reserved.