Class CheckClusterTypeStep

  • All Implemented Interfaces:
    ExecutionStep, ExecutionStepInternal

    public class CheckClusterTypeStep
    extends AbstractExecutionStep

    This step is used just as a gate check to verify that a bucket belongs to a class.

    It accepts two values: a target bucket (name or OCluster) and a class. If the bucket belongs to the class, then the syncPool() returns an empty result set, otherwise it throws an PCommandExecutionException

    Author:
    Luigi Dell'Aquila (luigi.dellaquila-(at)-gmail.com)
    • Constructor Detail

      • CheckClusterTypeStep

        public CheckClusterTypeStep​(String targetClusterName,
                                    String typez,
                                    CommandContext ctx,
                                    boolean profilingEnabled)
      • CheckClusterTypeStep

        public CheckClusterTypeStep​(Bucket targetCluster,
                                    String typez,
                                    CommandContext ctx,
                                    boolean profilingEnabled)
    • Method Detail

      • prettyPrint

        public String prettyPrint​(int depth,
                                  int indent)
      • getCost

        public long getCost()
        Description copied from interface: ExecutionStep
        returns the absolute cost (in nanoseconds) of the execution of this step
        Returns:
        the absolute cost (in nanoseconds) of the execution of this step, -1 if not calculated