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

HypersonicDatabase (Various API) - JBoss 4.0.1 sp1 varia API Documentation 英文版文档


org.jboss.jdbc
Class HypersonicDatabase

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.jdbc.HypersonicDatabase
All Implemented Interfaces:
HypersonicDatabaseMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class HypersonicDatabase
extends org.jboss.system.ServiceMBeanSupport
implements HypersonicDatabaseMBean, javax.management.MBeanRegistration

Integration with Hypersonic SQL (c).

Starts 1.7.1 Hypersonic database in-VM.

Version:
$Revision: 1.30.6.1 $
Author:
Rickard 锟絙erg, Scott Stark., Peter Fagerlund, Jason Dillon, Claudio Vesco

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.jdbc.HypersonicDatabaseMBean
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
HypersonicDatabase()
          Costructor, empty.
 
Method Summary
 String getDatabase()
          Get the database name.
 String getDatabaseManagerClass()
           
 String getDatabasePath()
          Get the full database path.
 boolean getNo_system_exit()
          Get the no_system_exit flag.
 String getPassword()
           
 boolean getPersist()
          Deprecated. use inProcessMode.
 int getPort()
          Get the port for remote hypersonic.
 String getServerClass()
           
 String getShutdownCommand()
           
 boolean getSilent()
          Get silent flag.
 boolean getTrace()
          Get trace flag.
 String getUser()
           
 boolean isInProcessMode()
           
 void setDatabase(String name)
          Set the database name.
 void setDatabaseManagerClass(String databaseManagerClass)
          Set the database manager (UI) class.
 void setInProcessMode(boolean b)
          If true the hypersonic is in process mode otherwise hypersonic is in server or remote mode.
 void setNo_system_exit(boolean no_system_exit)
          If true the server thread for remote hypersonic does no call System.exit().
 void setPassword(String password)
           
 void setPersist(boolean persist)
          Deprecated. use inProcessMode.
 void setPort(int port)
          Set the port for remote hypersonic.
 void setServerClass(String serverClass)
          Set the server class for remote hypersonic.
 void setShutdownCommand(String string)
           
 void setSilent(boolean silent)
          Set silent flag.
 void setTrace(boolean trace)
          Set trace flag.
 void setUser(String user)
           
 void startDatabaseManager()
          Start of DatabaseManager accesible from the management console.
protected  void startService()
           
protected  void stopService()
          We now close the connection clean by calling the serverSocket throught jdbc.
 
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
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 

Constructor Detail

HypersonicDatabase

public HypersonicDatabase()
Costructor, empty.

Method Detail

setDatabase

public void setDatabase(String name)
Set the database name.

Specified by:
setDatabase in interface HypersonicDatabaseMBean

getDatabase

public String getDatabase()
Get the database name.

Specified by:
getDatabase in interface HypersonicDatabaseMBean

setPort

public void setPort(int port)
Set the port for remote hypersonic.

Specified by:
setPort in interface HypersonicDatabaseMBean

getPort

public int getPort()
Get the port for remote hypersonic.

Specified by:
getPort in interface HypersonicDatabaseMBean

setSilent

public void setSilent(boolean silent)
Set silent flag.

Specified by:
setSilent in interface HypersonicDatabaseMBean

getSilent

public boolean getSilent()
Get silent flag.

Specified by:
getSilent in interface HypersonicDatabaseMBean

setTrace

public void setTrace(boolean trace)
Set trace flag.

Specified by:
setTrace in interface HypersonicDatabaseMBean

getTrace

public boolean getTrace()
Get trace flag.

Specified by:
getTrace in interface HypersonicDatabaseMBean

setNo_system_exit

public void setNo_system_exit(boolean no_system_exit)
If true the server thread for remote hypersonic does no call System.exit().

Specified by:
setNo_system_exit in interface HypersonicDatabaseMBean

getNo_system_exit

public boolean getNo_system_exit()
Get the no_system_exit flag.

Specified by:
getNo_system_exit in interface HypersonicDatabaseMBean

setPersist

public void setPersist(boolean persist)
Deprecated. use inProcessMode.

Set persist flag.

Specified by:
setPersist in interface HypersonicDatabaseMBean

getPersist

public boolean getPersist()
Deprecated. use inProcessMode.

Get persist flag.

Specified by:
getPersist in interface HypersonicDatabaseMBean

getDatabasePath

public String getDatabasePath()
Get the full database path.

Specified by:
getDatabasePath in interface HypersonicDatabaseMBean

isInProcessMode

public boolean isInProcessMode()
Specified by:
isInProcessMode in interface HypersonicDatabaseMBean
Returns:
the inProcessMode flag.

getShutdownCommand

public String getShutdownCommand()
Specified by:
getShutdownCommand in interface HypersonicDatabaseMBean
Returns:
the shutdown command.

setInProcessMode

public void setInProcessMode(boolean b)
If true the hypersonic is in process mode otherwise hypersonic is in server or remote mode.

Specified by:
setInProcessMode in interface HypersonicDatabaseMBean
Parameters:
b - in process mode or remote mode.

setShutdownCommand

public void setShutdownCommand(String string)
Specified by:
setShutdownCommand in interface HypersonicDatabaseMBean
Parameters:
string - the shutdown command

getPassword

public String getPassword()
Specified by:
getPassword in interface HypersonicDatabaseMBean
Returns:
the password

getUser

public String getUser()
Specified by:
getUser in interface HypersonicDatabaseMBean
Returns:
the user

setPassword

public void setPassword(String password)
Specified by:
setPassword in interface HypersonicDatabaseMBean
Parameters:
password -

setUser

public void setUser(String user)
Specified by:
setUser in interface HypersonicDatabaseMBean
Parameters:
user -

getDatabaseManagerClass

public String getDatabaseManagerClass()
Specified by:
getDatabaseManagerClass in interface HypersonicDatabaseMBean
Returns:

setDatabaseManagerClass

public void setDatabaseManagerClass(String databaseManagerClass)
Set the database manager (UI) class.

Specified by:
setDatabaseManagerClass in interface HypersonicDatabaseMBean
Parameters:
databaseManagerClass -

getServerClass

public String getServerClass()
Returns:
server class for remote hypersonic.

setServerClass

public void setServerClass(String serverClass)
Set the server class for remote hypersonic.

Parameters:
serverClass -

startDatabaseManager

public void startDatabaseManager()
Start of DatabaseManager accesible from the management console.

Specified by:
startDatabaseManager in interface HypersonicDatabaseMBean

startService

protected void startService()
                     throws Exception
Throws:
Exception

stopService

protected void stopService()
                    throws Exception
We now close the connection clean by calling the serverSocket throught jdbc. The MBeanServer calls this method at closing time.

Throws:
Exception


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