com.anji.util
Class Reset

java.lang.Object
  extended by com.anji.util.Reset

public class Reset
extends java.lang.Object

Utility class to clear all persisted data, including chromosomes and runs in DB, innovation ID data, and log.

Author:
Philip Tucker

Constructor Summary
Reset(Properties someProps)
          See Parameter Details for specific property settings.
Reset(java.lang.String propFilePath)
           
 
Method Summary
static void main(java.lang.String[] args)
          Interface to execute via command line.
 void reset()
          Clear all persisted data.
 void setUserInteraction(boolean aUserInteraction)
          default is false; set to true if you want it to delete everything without prompting user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reset

public Reset(java.lang.String propFilePath)
      throws java.io.IOException
Parameters:
propFilePath -
Throws:
java.io.IOException
See Also:
Reset(Properties)

Reset

public Reset(Properties someProps)
See Parameter Details for specific property settings.

Parameters:
someProps -
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Interface to execute via command line.

Parameters:
args - args[0] is properties file path
Throws:
java.io.IOException

reset

public void reset()
           throws java.io.IOException
Clear all persisted data.

Throws:
java.io.IOException

setUserInteraction

public void setUserInteraction(boolean aUserInteraction)
default is false; set to true if you want it to delete everything without prompting user

Parameters:
aUserInteraction -