org.jboss.jaxr.juddi
Class JUDDIService

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.jaxr.juddi.JUDDIService
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, JUDDIServiceMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class JUDDIService
extends org.jboss.system.ServiceMBeanSupport
implements JUDDIServiceMBean

A JBoss MBean for the JUDDI Service MBean for the JUDDI open source project integrated as part of the JAXR requirements for J2EE 1.4 compliance

Since:
Nov 8, 2004
Author:
Anil Saldhana extends="org.jboss.system.ServiceMBean"

Field Summary
protected  String bindJaxr
           
protected  boolean createOnStart
           
protected  DataSource datasource
           
protected  String datasourceurl
           
protected  boolean dropDB
           
protected  boolean dropOnStart
           
protected  boolean dropOnStop
           
protected  boolean loadNAICS
           
protected  boolean loadUNSPSC
           
protected  String registryOperator
           
protected  boolean shouldBindJaxr
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.jaxr.juddi.JUDDIServiceMBean
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
JUDDIService()
           
 
Method Summary
 String getBindJaxr()
          gets the JAXR ConnectionFactory.
protected  Connection getConnection()
           
 String getDataSource()
           
 boolean getDropDB()
          gets the JAXR ConnectionFactory.
 String getRegistryOperator()
           
 boolean getShouldBindJaxr()
          gets the JAXR ConnectionFactory.
 boolean isCreateOnStart()
           
 boolean isDropOnStart()
           
 boolean isDropOnStop()
           
protected  void runCreate()
           
protected  void runDrop()
           
protected  void runScript(InputStream stream)
           
 void setBindJaxr(String str)
          Sets the JAXR ConnectionFactory.
 void setCreateOnStart(boolean createOnStart)
          Sets the createOnStart.
 void setDataSourceUrl(String ds)
          Sets the Datasource Url.
 void setDropDB(boolean b)
          Sets the JAXR ConnectionFactory.
 void setDropOnStart(boolean dropOnStart)
          Sets the dropOnStart.
 void setDropOnStop(boolean dropOnStop)
          Sets the dropOnStop.
 void setRegistryOperator(String ro)
          Sets the RegistryOperator.
 void setShouldBindJaxr(boolean str)
          Sets the JAXR ConnectionFactory.
 void startService()
          starts the jUDDI service
 void stopService()
          stop the service
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getDeploymentInfo, 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, nextNotificationSequenceNumber, 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
 

Field Detail

dropOnStart

protected boolean dropOnStart

createOnStart

protected boolean createOnStart

dropOnStop

protected boolean dropOnStop

loadNAICS

protected boolean loadNAICS

loadUNSPSC

protected boolean loadUNSPSC

datasource

protected DataSource datasource

datasourceurl

protected String datasourceurl

registryOperator

protected String registryOperator

bindJaxr

protected String bindJaxr

shouldBindJaxr

protected boolean shouldBindJaxr

dropDB

protected boolean dropDB
Constructor Detail

JUDDIService

public JUDDIService()
Method Detail

getConnection

protected Connection getConnection()
                            throws SQLException,
                                   NamingException
Throws:
SQLException
NamingException

runDrop

protected void runDrop()
                throws SQLException,
                       IOException
Throws:
SQLException
IOException

runCreate

protected void runCreate()
                  throws SQLException,
                         IOException
Throws:
SQLException
IOException

runScript

protected void runScript(InputStream stream)
                  throws SQLException,
                         IOException
Throws:
SQLException
IOException

startService

public void startService()
                  throws Exception
starts the jUDDI service

Overrides:
startService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

stopService

public void stopService()
                 throws Exception
stop the service

Overrides:
stopService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

isDropOnStart

public boolean isDropOnStart()
Specified by:
isDropOnStart in interface JUDDIServiceMBean
Returns:
boolean

setDropOnStart

public void setDropOnStart(boolean dropOnStart)
Sets the dropOnStart.

Specified by:
setDropOnStart in interface JUDDIServiceMBean
Parameters:
dropOnStart - The dropOnStart to set

isDropOnStop

public boolean isDropOnStop()
Specified by:
isDropOnStop in interface JUDDIServiceMBean
Returns:
boolean

setDropOnStop

public void setDropOnStop(boolean dropOnStop)
Sets the dropOnStop.

Specified by:
setDropOnStop in interface JUDDIServiceMBean
Parameters:
dropOnStop - The dropOnStop to set

isCreateOnStart

public boolean isCreateOnStart()
Specified by:
isCreateOnStart in interface JUDDIServiceMBean
Returns:
boolean

setCreateOnStart

public void setCreateOnStart(boolean createOnStart)
Sets the createOnStart.

Specified by:
setCreateOnStart in interface JUDDIServiceMBean
Parameters:
createOnStart - The createOnStart to set

getDataSource

public String getDataSource()
Specified by:
getDataSource in interface JUDDIServiceMBean
Returns:
String

setDataSourceUrl

public void setDataSourceUrl(String ds)
Sets the Datasource Url.

Specified by:
setDataSourceUrl in interface JUDDIServiceMBean
Parameters:
ds - The datasourceurl to set

getRegistryOperator

public String getRegistryOperator()
Specified by:
getRegistryOperator in interface JUDDIServiceMBean
Returns:
String

setRegistryOperator

public void setRegistryOperator(String ro)
Sets the RegistryOperator.

Specified by:
setRegistryOperator in interface JUDDIServiceMBean
Parameters:
ro - The datasourceurl to set

getBindJaxr

public String getBindJaxr()
gets the JAXR ConnectionFactory.

Specified by:
getBindJaxr in interface JUDDIServiceMBean

setBindJaxr

public void setBindJaxr(String str)
Sets the JAXR ConnectionFactory.

Specified by:
setBindJaxr in interface JUDDIServiceMBean
Parameters:
str - The context to bind the Jaxr factory to set

getShouldBindJaxr

public boolean getShouldBindJaxr()
gets the JAXR ConnectionFactory.

Specified by:
getShouldBindJaxr in interface JUDDIServiceMBean

setShouldBindJaxr

public void setShouldBindJaxr(boolean str)
Sets the JAXR ConnectionFactory.

Specified by:
setShouldBindJaxr in interface JUDDIServiceMBean
Parameters:
str - Should a Jaxr Connection Factory bound

getDropDB

public boolean getDropDB()
gets the JAXR ConnectionFactory.

Specified by:
getDropDB in interface JUDDIServiceMBean

setDropDB

public void setDropDB(boolean b)
Sets the JAXR ConnectionFactory.

Specified by:
setDropDB in interface JUDDIServiceMBean
Parameters:
b - Should a Jaxr Connection Factory bound


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