pl.kernelpanic.dbmonster
Interface ProgressMonitor

All Known Implementing Classes:
ProgressMonitorAdapter

public interface ProgressMonitor

Basic interface for all progress monitors plug into DBMonster.

Version:
$Id: ProgressMonitor.html,v 1.1 2007/06/21 08:38:14 sbahloul Exp $
Author:
Piotr Maj <piotr.maj@kernelpanic.pl>

Method Summary
 void reset()
          Resets all settings.
 void resetRows()
          Reset rows.
 void resetTables()
          Resets tables.
 void rowComplete()
          Called when row is complete.
 void schemaComplete()
          Called when schema is completed.
 void setRowsCount(int count)
          Sets the number of rows.
 void setSchemaCount(int count)
          Sets the schema count.
 void setSchemaName(String name)
          Sets the name of the schema being generated.
 void setTableCount(int count)
          Sets the table count.
 void setTableName(String name)
          Sets the name of the table being generated.
 void setUp()
          Called on startup.
 void tableComplete()
          Called when table is completed.
 void tearDown()
          Called after the work is over.
 

Method Detail

setUp

public void setUp()
Called on startup.


tearDown

public void tearDown()
Called after the work is over.


reset

public void reset()
Resets all settings.


resetTables

public void resetTables()
Resets tables.


resetRows

public void resetRows()
Reset rows. Called before next table is processed.


setSchemaCount

public void setSchemaCount(int count)
Sets the schema count.

Parameters:
count - number of schemas.

setTableCount

public void setTableCount(int count)
Sets the table count.

Parameters:
count - number of tables.

setRowsCount

public void setRowsCount(int count)
Sets the number of rows.

Parameters:
count - number of rows

schemaComplete

public void schemaComplete()
Called when schema is completed.


tableComplete

public void tableComplete()
Called when table is completed.


rowComplete

public void rowComplete()
Called when row is complete.


setSchemaName

public void setSchemaName(String name)
Sets the name of the schema being generated.

Parameters:
name - schema name

setTableName

public void setTableName(String name)
Sets the name of the table being generated.

Parameters:
name - table name


Copyright © 2003-2005 .:. kernelpanic.pl .:.. All Rights Reserved.