org.objectweb.cjdbc.scenario.tools.components.controller
Class ControllerProcess

java.lang.Object
  extended byorg.objectweb.cjdbc.scenario.tools.components.controller.ControllerProcess
All Implemented Interfaces:
ComponentInterface

public class ControllerProcess
extends java.lang.Object
implements ComponentInterface

This class defines a ControllerProcess

Version:
1.0
Author:
Nicolas Modrzyk

Field Summary
(package private)  Controller controller
           
(package private)  java.lang.String database
           
(package private)  java.lang.String port
           
 
Constructor Summary
ControllerProcess(java.lang.String port, java.lang.String database)
          Creates a new ControllerProcess object
 
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 xml)
          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

port

java.lang.String port

database

java.lang.String database

controller

Controller controller
Constructor Detail

ControllerProcess

public ControllerProcess(java.lang.String port,
                         java.lang.String database)
                  throws java.lang.Exception
Creates a new ControllerProcess object

Parameters:
port - port use by the controller
database - database to load with this controller
Throws:
java.lang.Exception - if fails
Method Detail

start

public void start()
           throws java.lang.Exception
Description copied from interface: ComponentInterface
Start this component

Specified by:
start in interface ComponentInterface
Throws:
java.lang.Exception - if could not start
See Also:
ComponentInterface.start()

getDatabase

public java.lang.String getDatabase()
Description copied from interface: ComponentInterface
Returns the database value.

Specified by:
getDatabase in interface ComponentInterface
Returns:
Returns the database.
See Also:
ComponentInterface.getDatabase()

loadDatabase

public void loadDatabase(java.lang.String xml)
                  throws java.lang.Exception
Description copied from interface: ComponentInterface
Loads the data of the given file in the database

Specified by:
loadDatabase in interface ComponentInterface
Parameters:
xml - to load
Throws:
java.lang.Exception - if fails
See Also:
ComponentInterface.loadDatabase(java.lang.String)

loadDatabase

public void loadDatabase(java.lang.String xml,
                         java.lang.String targetDB)
                  throws java.lang.Exception
Description copied from interface: ComponentInterface
Loads the xml file with the given target database

Specified by:
loadDatabase in interface ComponentInterface
Parameters:
xml - file
targetDB - target database
Throws:
java.lang.Exception - if fails
See Also:
ComponentInterface.loadDatabase(java.lang.String, java.lang.String)

loadDatabase

public void loadDatabase()
                  throws java.lang.Exception
Description copied from interface: ComponentInterface
Loads a default file in the database

Specified by:
loadDatabase in interface ComponentInterface
Throws:
java.lang.Exception - if fails
See Also:
ComponentInterface.loadDatabase()

getPort

public java.lang.String getPort()
Description copied from interface: ComponentInterface
Returns the port value.

Specified by:
getPort in interface ComponentInterface
Returns:
Returns the port.
See Also:
ComponentInterface.getPort()

getProcess

public java.lang.Object getProcess()
Description copied from interface: ComponentInterface
Returns the process value.

Specified by:
getProcess in interface ComponentInterface
Returns:
Returns the process.
See Also:
ComponentInterface.getProcess()

release

public void release()
Description copied from interface: ComponentInterface
Remove files generated by this process

Specified by:
release in interface ComponentInterface
See Also:
ComponentInterface.release()


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