Class ListSnapshotsStatementBuilder.ListSnapshotsStatement

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

public static class ListSnapshotsStatementBuilder.ListSnapshotsStatement extends AbstractStatement
Implementation of the CohQL "LIST SNAPSHOTS" command.
  • Constructor Details

    • ListSnapshotsStatement

      public ListSnapshotsStatement(String sService, boolean fArchived)
      Create a ListSnapshotsStatement that will list snapshots for services.
      Parameters:
      sService - the service to list snapshots for
      fArchived - if true we want to list archived snapshots
  • 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