org.kuali.common.util.service
Class DefaultMySqlDumpService

java.lang.Object
  extended by org.kuali.common.util.service.DefaultExecService
      extended by org.kuali.common.util.service.DefaultMySqlDumpService
All Implemented Interfaces:
ExecService, MySqlDumpService

public class DefaultMySqlDumpService
extends DefaultExecService
implements MySqlDumpService


Field Summary
 
Fields inherited from interface org.kuali.common.util.service.MySqlDumpService
DEFAULT_EXECUTABLE, DEFAULT_PORT, PREFIX_50013_DEFINER, PREFIX_DUMP_COMPLETED, PREFIX_MYSQL_DUMP, PREFIX_MYSQL_HOST, PREFIX_SERVER_VERSION, SUFFIX_SQL_SECURITY_DEFINER
 
Constructor Summary
DefaultMySqlDumpService()
           
 
Method Summary
protected  void afterDump(MySqlDumpContext context, long elapsed, long lineCount, long skippedCount)
           
protected  void beforeDump(MySqlDumpContext context)
           
protected  void dump(DefaultExecContext context, MySqlDumpContext msdc)
           
 void dump(List<String> options, String database, File outputFile)
           
 void dump(MySqlDumpContext context)
           
 void dump(String username, String password, String hostname, String database, File outputFile)
           
protected  void fillInOptions(MySqlDumpContext context)
          Create (or update) the list of options for this context
protected  List<String> getArgs(MySqlDumpContext context)
          mysqldump invocation looks like this:
protected  DefaultExecContext getExecContext(MySqlDumpContext context)
           
 
Methods inherited from class org.kuali.common.util.service.DefaultExecService
execute, execute, execute, executeAndValidate, executeAndValidate, getCommandLine, getConsumer, getStreamConsumer, validateExitValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.common.util.service.ExecService
execute, execute
 

Constructor Detail

DefaultMySqlDumpService

public DefaultMySqlDumpService()
Method Detail

dump

public void dump(String username,
                 String password,
                 String hostname,
                 String database,
                 File outputFile)
Specified by:
dump in interface MySqlDumpService

dump

public void dump(List<String> options,
                 String database,
                 File outputFile)
Specified by:
dump in interface MySqlDumpService

dump

public void dump(MySqlDumpContext context)
Specified by:
dump in interface MySqlDumpService

beforeDump

protected void beforeDump(MySqlDumpContext context)

dump

protected void dump(DefaultExecContext context,
                    MySqlDumpContext msdc)

afterDump

protected void afterDump(MySqlDumpContext context,
                         long elapsed,
                         long lineCount,
                         long skippedCount)

getExecContext

protected DefaultExecContext getExecContext(MySqlDumpContext context)

getArgs

protected List<String> getArgs(MySqlDumpContext context)
mysqldump invocation looks like this:
 mysqldump [OPTIONS] database [tables]
 


fillInOptions

protected void fillInOptions(MySqlDumpContext context)
Create (or update) the list of options for this context



Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.