Enum SimScenario.SimAction

    • Enum Constant Detail

      • CREATE_CLUSTER

        public static final SimScenario.SimAction CREATE_CLUSTER
        Create a new simulated cluster.
      • LOAD_SNAPSHOT

        public static final SimScenario.SimAction LOAD_SNAPSHOT
        Create a simulated cluster from autoscaling snapshot.
      • SAVE_SNAPSHOT

        public static final SimScenario.SimAction SAVE_SNAPSHOT
        Save autoscaling snapshot of the current simulated cluster.
      • CALCULATE_SUGGESTIONS

        public static final SimScenario.SimAction CALCULATE_SUGGESTIONS
        Calculate autoscaling suggestions and put them in the scenario's context.
      • APPLY_SUGGESTIONS

        public static final SimScenario.SimAction APPLY_SUGGESTIONS
        Apply previously calculated autoscaling suggestions.
      • KILL_NODES

        public static final SimScenario.SimAction KILL_NODES
        Kill specific nodes, or a number of randomly selected nodes.
      • LOAD_AUTOSCALING

        public static final SimScenario.SimAction LOAD_AUTOSCALING
        Load autoscaling.json configuration from a file.
      • SET_OP_DELAYS

        public static final SimScenario.SimAction SET_OP_DELAYS
        Set operation delays to simulate long-running actions.
      • WAIT_COLLECTION

        public static final SimScenario.SimAction WAIT_COLLECTION
        Wait for a collection to reach the indicated number of shards and replicas.
      • EVENT_LISTENER

        public static final SimScenario.SimAction EVENT_LISTENER
        Prepare a listener to listen for an autoscaling event.
      • WAIT_EVENT

        public static final SimScenario.SimAction WAIT_EVENT
        Wait for an autoscaling event using previously prepared listener.
      • RUN

        public static final SimScenario.SimAction RUN
        Run the simulation for a while, allowing background tasks to execute.
      • DUMP

        public static final SimScenario.SimAction DUMP
        Dump the internal state of the simulator to console.
      • SET_SHARD_METRICS

        public static final SimScenario.SimAction SET_SHARD_METRICS
        Set metrics for each replica of a collection's shard(s).
      • INDEX_DOCS

        public static final SimScenario.SimAction INDEX_DOCS
        Bulk index a number of simulated documents.
    • Method Detail

      • values

        public static SimScenario.SimAction[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SimScenario.SimAction c : SimScenario.SimAction.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SimScenario.SimAction valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • toLower

        public String toLower()