Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.hubspot.singularity;
  
  import java.util.List;
  
  
 public class SingularityState extends SingularityJsonObject {
 
   private final int activeTasks;
   private final int pausedRequests;
   private final int activeRequests;
   private final int cooldownRequests;
   private final int scheduledTasks;
   private final int lateTasks;
   private final int futureTasks;
   private final int cleaningTasks;
   private final int lbCleanupTasks;
 
   private final long maxTaskLag;
 
   private final int pendingRequests;
   private final int cleaningRequests;
   private final int finishedRequests;
 
   private final int activeSlaves;
   private final int deadSlaves;
   private final int decomissioningSlaves;
 
   private final int activeRacks;
   private final int deadRacks;
   private final int decomissioningRacks;
 
   private final long oldestDeploy;
   private final int numDeploys;
 
   private final long generatedAt;
 
   private final List<SingularityHostStatehostStates;
 
   private final List<StringoverProvisionedRequestIds;
   private final List<StringunderProvisionedRequestIds;
 
   private final int overProvisionedRequests;
   private final int underProvisionedRequests;
 
   public static SingularityState fromBytes(byte[] bytesObjectMapper objectMapper) {
     try {
       return objectMapper.readValue(bytesSingularityState.class);
     } catch (IOException e) {
       throw new SingularityJsonException(e);
     }
   }
 
   public SingularityState(@JsonProperty("activeTasks"int activeTasks, @JsonProperty("activeRequests"int activeRequests, @JsonProperty("cooldownRequests"int cooldownRequests,
       @JsonProperty("pausedRequests"int pausedRequests, @JsonProperty("scheduledTasks"int scheduledTasks, @JsonProperty("pendingRequests"int pendingRequests, @JsonProperty("lbCleanupTasks"int lbCleanupTasks,
       @JsonProperty("cleaningRequests"int cleaningRequests, @JsonProperty("activeSlaves"int activeSlaves, @JsonProperty("deadSlaves"int deadSlaves,
       @JsonProperty("decomissioningSlaves"int decomissioningSlaves, @JsonProperty("activeRacks"int activeRacks, @JsonProperty("deadRacks"int deadRacks, @JsonProperty("decomissioningRacks"int decomissioningRacks,
       @JsonProperty("cleaningTasks"int cleaningTasks, @JsonProperty("hostStates"List<SingularityHostStatehostStates, @JsonProperty("oldestDeploy"long oldestDeploy, @JsonProperty("numDeploys"int numDeploys,
       @JsonProperty("lateTasks"int lateTasks, @JsonProperty("futureTasks"int futureTasks, @JsonProperty("maxTaskLag"long maxTaskLag, @JsonProperty("generatedAt"long generatedAt,
       @JsonProperty("overProvisionedRequestIds"List<StringoverProvisionedRequestIds, @JsonProperty("underProvisionedRequestIds"List<StringunderProvisionedRequestIds,
       @JsonProperty("overProvisionedRequests"int overProvisionedRequests, @JsonProperty("underProvisionedRequests"int underProvisionedRequests, @JsonProperty("finishedRequests"int finishedRequests
       ) {
     this. = activeTasks;
     this. = activeRequests;
     this. = pausedRequests;
     this. = cooldownRequests;
     this. = scheduledTasks;
     this. = pendingRequests;
     this. = cleaningRequests;
     this. = activeRacks;
     this. = generatedAt;
     this. = activeSlaves;
     this. = deadRacks;
     this. = deadSlaves;
     this. = decomissioningRacks;
     this. = decomissioningSlaves;
     this. = cleaningTasks;
     this. = hostStates;
     this. = lateTasks;
     this. = finishedRequests;
     this. = futureTasks;
     this. = maxTaskLag;
     this. = oldestDeploy;
     this. = numDeploys;
     this. = lbCleanupTasks;
     this. = underProvisionedRequests;
     this. = overProvisionedRequests;
     this. = overProvisionedRequestIds;
     this. = underProvisionedRequestIds;
   }
 
   public int getFinishedRequests() {
     return ;
   }
 
  public long getGeneratedAt() {
    return ;
  }
  public long getOldestDeploy() {
    return ;
  }
  public int getNumDeploys() {
    return ;
  }
  public int getPausedRequests() {
    return ;
  }
    return ;
  }
  public int getCleaningTasks() {
    return ;
  }
  public int getActiveSlaves() {
    return ;
  }
  public int getDeadSlaves() {
    return ;
  }
  public int getDecomissioningSlaves() {
    return ;
  }
  public int getActiveRacks() {
    return ;
  }
  public int getDeadRacks() {
    return ;
  }
  public int getDecomissioningRacks() {
    return ;
  }
  public int getActiveTasks() {
    return ;
  }
  public int getAllRequests() {
  }
  public int getActiveRequests() {
    return ;
  }
  public int getCooldownRequests() {
    return ;
  }
  public int getScheduledTasks() {
    return ;
  }
  public int getPendingRequests() {
    return ;
  }
  public int getCleaningRequests() {
    return ;
  }
  public int getLateTasks() {
    return ;
  }
  public int getFutureTasks() {
    return ;
  }
  public long getMaxTaskLag() {
    return ;
  }
  public int getLbCleanupTasks() {
    return ;
  }
  }
  }
  public int getOverProvisionedRequests() {
  }
  public int getUnderProvisionedRequests() {
  }
  public String toString() {
    return "SingularityState [activeTasks=" +  + ", pausedRequests=" +  + ", activeRequests=" +  + ", cooldownRequests=" +  + ", scheduledTasks=" +  + ", lateTasks="
        +  + ", futureTasks=" +  + ", cleaningTasks=" +  + ", lbCleanupTasks=" +  + ", maxTaskLag=" +  + ", pendingRequests=" +  + ", cleaningRequests="
        +  + ", finishedRequests=" +  + ", activeSlaves=" +  + ", deadSlaves=" +  + ", decomissioningSlaves=" +  + ", activeRacks=" +  + ", deadRacks="
        +  + ", decomissioningRacks=" +  + ", oldestDeploy=" +  + ", numDeploys=" +  + ", generatedAt=" +  + ", hostStates=" +  + ", overProvisionedRequestIds="
        +  + ", underProvisionedRequestIds=" +  + ", overProvisionedRequests=" +  + ", underProvisionedRequests=" +  + "]";
  }
New to GrepCode? Check out our FAQ X