站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 connector API Documentation 英文版文档

WrapperDataSourceService (JBoss Connector API) - JBoss 4.0.1 sp1 connector API Documentation 英文版文档


org.jboss.resource.adapter.jdbc.remote
Class WrapperDataSourceService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.resource.connectionmanager.ConnectionFactoryBindingService
              extended byorg.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService
All Implemented Interfaces:
ConnectionFactoryBindingServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean, WrapperDataSourceServiceMBean

public class WrapperDataSourceService
extends ConnectionFactoryBindingService
implements WrapperDataSourceServiceMBean

An mbean service that pvovides the detached invoker ops for the javax.sql.DataSource and related java.sql.* interfaces.

Version:
$Revision: 1.7 $
Author:
Scott.Stark@jboss.org, Tom.Elrod@jboss.org, adrian@jboss.com

Field Summary
 
Fields inherited from class org.jboss.resource.connectionmanager.ConnectionFactoryBindingService
bindName, cf, cm, jndiName, useJavaContext
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceServiceMBean
OBJECT_NAME
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
WrapperDataSourceService()
           
 
Method Summary
protected  void bindConnectionFactory()
          Bind the connection factory into jndi
protected  void calculateMethodHases()
          Calculate the method hashes
protected  void createProxy()
          Create the proxy
protected  void destroyProxy()
          Destroy the proxy
 javax.management.ObjectName getJMXInvokerName()
          Get the transport
 Object invoke(org.jboss.invocation.Invocation invocation)
          Expose the DataSource via JMX to invokers.
 void setJMXInvokerName(javax.management.ObjectName jmxInvokerName)
          Set the transport
protected  void startService()
           
protected  void stopService()
           
 
Methods inherited from class org.jboss.resource.connectionmanager.ConnectionFactoryBindingService
createConnectionFactory, determineBindName, getBindName, getConnectionManager, getJndiName, isUseJavaContext, setConnectionManager, setJndiName, setUseJavaContext, unbindConnectionFactory
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, 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.resource.connectionmanager.ConnectionFactoryBindingServiceMBean
getBindName, getConnectionManager, getJndiName, isUseJavaContext, setConnectionManager, setJndiName, setUseJavaContext
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

WrapperDataSourceService

public WrapperDataSourceService()
Method Detail

startService

protected void startService()
                     throws Exception
Overrides:
startService in class ConnectionFactoryBindingService
Throws:
Exception

stopService

protected void stopService()
                    throws Exception
Overrides:
stopService in class ConnectionFactoryBindingService
Throws:
Exception

bindConnectionFactory

protected void bindConnectionFactory()
                              throws Exception
Description copied from class: ConnectionFactoryBindingService
Bind the connection factory into jndi

Overrides:
bindConnectionFactory in class ConnectionFactoryBindingService
Throws:
Exception

getJMXInvokerName

public javax.management.ObjectName getJMXInvokerName()
Get the transport

Specified by:
getJMXInvokerName in interface WrapperDataSourceServiceMBean
Returns:
the transport

setJMXInvokerName

public void setJMXInvokerName(javax.management.ObjectName jmxInvokerName)
Set the transport

Specified by:
setJMXInvokerName in interface WrapperDataSourceServiceMBean

invoke

public Object invoke(org.jboss.invocation.Invocation invocation)
              throws Exception
Expose the DataSource via JMX to invokers.

Specified by:
invoke in interface WrapperDataSourceServiceMBean
Parameters:
invocation - A pointer to the invocation object
Returns:
Return value of method invocation.
Throws:
Exception - Failed to invoke method.

createProxy

protected void createProxy()
                    throws Exception
Create the proxy

Throws:
Exception

destroyProxy

protected void destroyProxy()
                     throws Exception
Destroy the proxy

Throws:
Exception

calculateMethodHases

protected void calculateMethodHases()
                             throws Exception
Calculate the method hashes

Throws:
Exception


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