org.objectweb.cjdbc.scenario.tools.components
Interface ComponentInterface

All Known Implementing Classes:
ControllerProcess, HypersonicProcess

public interface ComponentInterface

This class defines a ComponentInterface. A instance of this class is started and managed by the ComponentManager.

Version:
1.0
Author:
Nicolas Modrzyk

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 value.
 void loadDatabase()
          Loads a default file in the database
 void loadDatabase(java.lang.String file)
          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
 

Method Detail

start

public void start()
           throws java.lang.Exception
Start this component

Throws:
java.lang.Exception - if could not start

getDatabase

public java.lang.String getDatabase()
Returns the database value.

Returns:
Returns the database.

loadDatabase

public void loadDatabase(java.lang.String file)
                  throws java.lang.Exception
Loads the data of the given file in the database

Parameters:
file - to load
Throws:
java.lang.Exception - if fails

loadDatabase

public void loadDatabase()
                  throws java.lang.Exception
Loads a default file in the database

Throws:
java.lang.Exception - if fails

loadDatabase

public void loadDatabase(java.lang.String xml,
                         java.lang.String targetDB)
                  throws java.lang.Exception
Loads the xml file with the given target database

Parameters:
xml - file
targetDB - target database
Throws:
java.lang.Exception - if fails

getPort

public java.lang.String getPort()
Returns the port value.

Returns:
Returns the port.

getProcess

public java.lang.Object getProcess()
Returns the process value.

Returns:
Returns the process.

release

public void release()
Remove files generated by this process



Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.