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

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

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

import java.io.Serializable;

import io.hyperfoil.api.config.Benchmark;

public class AgentControlMessage implements Serializable {
   private Command command;
   private int agentId;
   private Object param;

   public AgentControlMessage(Command command, int agentId, Object param) {
      this.command = command;
      this.agentId = agentId;
      this.param = param;
   }

   public Command command() {
      return command;
   }

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

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

   public int agentId() {
      return agentId;
   }

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

   public static class Codec extends ObjectCodec {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy