Class ShellScriptBasedStatisticRenovator

java.lang.Object
net.sf.jailer.database.ShellScriptBasedStatisticRenovator
All Implemented Interfaces:
StatisticRenovator
Direct Known Subclasses:
DB2ShellScriptBasedStatisticRenovator

public class ShellScriptBasedStatisticRenovator extends Object implements StatisticRenovator
Renews the DB table statistics for the working-tables by executing a shell-script.
Author:
Ralf Wisser
  • Constructor Details

    • ShellScriptBasedStatisticRenovator

      public ShellScriptBasedStatisticRenovator(String scriptInvocation)
      Constructor.
      Parameters:
      scriptInvocation - invocation of the script-file
  • Method Details

    • renew

      public void renew(Session session, ExecutionContext executionContext) throws Exception
      Renews the DB table statistics for the working-tables by executing the shell-script.
      Specified by:
      renew in interface StatisticRenovator
      Parameters:
      session - for execution of SQL-statements
      executionContext - the execution context
      Throws:
      Exception
    • getScriptInvocation

      protected String getScriptInvocation(Session session) throws Exception
      Gets shell-invocation.
      Parameters:
      session - for execution of SQL-statements
      Returns:
      shell-invocation
      Throws:
      Exception