All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.hyperfoil.clustering.util.AgentControlMessage Maven / Gradle / Ivy

There is a newer version: 0.27
Show newest version
package io.hyperfoil.clustering.util;

import java.io.Serializable;

import io.hyperfoil.api.config.Benchmark;
import io.hyperfoil.util.Immutable;

public class AgentControlMessage implements Serializable, Immutable {
   private Command command;
   private String runId;
   private Object param;

   public AgentControlMessage(Command command, String runId, Object param) {
      this.command = command;
      this.runId = runId;
      this.param = param;
   }

   public Command command() {
      return command;
   }

   public String runId() {
      return runId;
   }

   public Benchmark benchmark() {
      return (Benchmark) param;
   }

   public boolean includeInactive() {
      return (Boolean) param;
   }

   public enum Command {
      INITIALIZE,
      RESET,
      LIST_SESSIONS,
      LIST_CONNECTIONS
   }

   public static class Codec extends ObjectCodec {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy