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

io.hyperfoil.clustering.AgentInfo Maven / Gradle / Ivy

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

import java.util.HashMap;
import java.util.Map;

import io.hyperfoil.api.deployment.DeployedAgent;
import io.hyperfoil.api.session.PhaseInstance;

class AgentInfo {
   final String name;
   final int id;
   String nodeId;
   String deploymentId;
   Status status = Status.STARTING;
   Map phases = new HashMap<>();
   DeployedAgent deployedAgent;

   public AgentInfo(String name, int id) {
      this.name = name;
      this.id = id;
   }

   @Override
   public String toString() {
      return name + " (" + nodeId + "/" + deploymentId + ")";
   }

   public enum Status {
      STARTING,
      REGISTERED,
      INITIALIZING,
      INITIALIZED,
      STOPPED,
      FAILED
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy