Class ValidateSnapshotStatementBuilder.ValidateSnapshotStatement

java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.dslquery.statement.AbstractStatement
com.tangosol.coherence.dslquery.statement.persistence.ValidateSnapshotStatementBuilder.ValidateSnapshotStatement
All Implemented Interfaces:
Statement
Enclosing class:
ValidateSnapshotStatementBuilder

public static class ValidateSnapshotStatementBuilder.ValidateSnapshotStatement extends AbstractStatement
Implementation of the CohQL "VALIDATE [ARCHIVED] SNAPSHOT" command.
  • Constructor Details

    • ValidateSnapshotStatement

      public ValidateSnapshotStatement(String sSnapshotDir, boolean fVerbose, boolean fArchived, String sSnapshotName, String sServiceName)
      Create a ValidateSnapshotStatement the will validate a snapshot on disk to ensure the files are consistent.
      Parameters:
      sSnapshotDir - the snapshot directory to validate
      fVerbose - indicates if verbose output should be displayed
      fArchived - indicates if an archived snapshot should be validated
      sSnapshotName - the snapshot name to validate
      sServiceName - the service name to validate
  • Method Details

    • execute

      public StatementResult execute(ExecutionContext ctx)
      Description copied from interface: Statement
      Execute a CohQL query or command and return the relevant result.
      Parameters:
      ctx - the context to use
      Returns:
      a StatementResult containing the results of executing the statement
    • showPlan

      public void showPlan(PrintWriter out)
      Description copied from interface: Statement
      Output to the provided PrintWriter a human readable trace of the actions that will be taken by this statement if or when executed.
      Parameters:
      out - the PrintWriter to write the trace to