|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.cjdbc.scenario.tools.components.backend.hsqldb.HypersonicProcess
This class defines a HyperSonicProcess
Field Summary | |
(package private) java.lang.String |
database
|
(package private) java.io.File |
dir
|
(package private) java.lang.String |
jarFile
|
(package private) java.lang.String |
port
|
(package private) java.lang.Process |
process
|
(package private) java.lang.String |
scriptFile
|
(package private) java.lang.String |
templateDir
|
Constructor Summary | |
HypersonicProcess(java.lang.String port,
java.lang.String database)
Creates a new HyperSonicProcess.java object Start a new
independant process |
Method Summary | |
java.lang.String |
getDatabase()
Returns the database value. |
java.lang.String |
getPort()
Returns the port value. |
java.lang.Object |
getProcess()
Returns the process associated to this database. |
void |
loadDatabase()
Loads a default file in the database |
void |
loadDatabase(java.lang.String templateName)
Loads the data of the given file in the database |
void |
loadDatabase(java.lang.String xml,
java.lang.String targetDB)
Loads the xml file with the given target database |
void |
release()
Remove files generated by this process |
void |
start()
Start this component |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.String templateDir
java.lang.String jarFile
java.lang.String scriptFile
java.lang.String port
java.lang.String database
java.io.File dir
java.lang.Process process
Constructor Detail |
public HypersonicProcess(java.lang.String port, java.lang.String database) throws java.io.IOException
HyperSonicProcess.java
object Start a new
independant process
port
- to start hypersonic ondatabase
- to load by default
java.io.IOException
- if fails to startMethod Detail |
public void start() throws java.io.IOException
ComponentInterface
start
in interface ComponentInterface
java.io.IOException
ComponentInterface.start()
public java.lang.String getDatabase()
getDatabase
in interface ComponentInterface
public java.lang.String getPort()
getPort
in interface ComponentInterface
public void loadDatabase() throws java.lang.Exception
ComponentInterface
loadDatabase
in interface ComponentInterface
java.lang.Exception
- if failsComponentInterface.loadDatabase()
public void loadDatabase(java.lang.String templateName) throws java.lang.Exception
ComponentInterface
loadDatabase
in interface ComponentInterface
templateName
- to load
java.lang.Exception
- if failsComponentInterface.loadDatabase(java.lang.String)
public java.lang.Object getProcess()
getProcess
in interface ComponentInterface
public void release()
release
in interface ComponentInterface
public void loadDatabase(java.lang.String xml, java.lang.String targetDB) throws java.lang.Exception
ComponentInterface
loadDatabase
in interface ComponentInterface
xml
- filetargetDB
- target database
java.lang.Exception
- if failsComponentInterface.loadDatabase(java.lang.String,
java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |