org.jboss.jms.asf
Class ServerSessionPoolLoader

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.jms.asf.ServerSessionPoolLoader
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ServerSessionPoolLoaderMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class ServerSessionPoolLoader
extends org.jboss.system.ServiceMBeanSupport
implements ServerSessionPoolLoaderMBean

A loader for ServerSessionPools.

Created: Wed Nov 29 16:14:46 2000

Version:
$Revision: 1.10.2.1 $
Author:
Peter Antman., Jason Dillon

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
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
ServerSessionPoolLoader()
           
 
Method Summary
 String getPoolFactoryClass()
          Get the classname of pool factory to use.
 String getPoolName()
          Get the pool name.
 javax.management.ObjectName getXidFactory()
          mbean get-set pair for field xidFactory Get the value of xidFactory
 void setPoolFactoryClass(String classname)
          Set the classname of pool factory to use.
 void setPoolName(String name)
          Set the pool name.
 void setXidFactory(javax.management.ObjectName xidFactory)
          Set the value of xidFactory
protected  void startService()
          Start the service.
protected  void stopService()
          Stop the service.
 
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.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

ServerSessionPoolLoader

public ServerSessionPoolLoader()
Method Detail

setPoolName

public void setPoolName(String name)
Set the pool name.

Specified by:
setPoolName in interface ServerSessionPoolLoaderMBean
Parameters:
name - The pool name.

getPoolName

public String getPoolName()
Get the pool name.

Specified by:
getPoolName in interface ServerSessionPoolLoaderMBean
Returns:
The pool name.

setPoolFactoryClass

public void setPoolFactoryClass(String classname)
Set the classname of pool factory to use.

Specified by:
setPoolFactoryClass in interface ServerSessionPoolLoaderMBean
Parameters:
classname - The name of the pool factory class.

getPoolFactoryClass

public String getPoolFactoryClass()
Get the classname of pool factory to use.

Specified by:
getPoolFactoryClass in interface ServerSessionPoolLoaderMBean
Returns:
The name of the pool factory class.

getXidFactory

public javax.management.ObjectName getXidFactory()
mbean get-set pair for field xidFactory Get the value of xidFactory

Specified by:
getXidFactory in interface ServerSessionPoolLoaderMBean
Returns:
value of xidFactory

setXidFactory

public void setXidFactory(javax.management.ObjectName xidFactory)
Set the value of xidFactory

Specified by:
setXidFactory in interface ServerSessionPoolLoaderMBean
Parameters:
xidFactory - Value to assign to xidFactory

startService

protected void startService()
                     throws Exception
Start the service.

Bind the pool factory into JNDI.

Throws:
Exception

stopService

protected void stopService()
Stop the service.

Unbind from JNDI.



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