Class ControllerModel

java.lang.Object
org.apache.drill.yarn.appMaster.http.ControllerModel
All Implemented Interfaces:
ControllerVisitor

public class ControllerModel extends Object implements ControllerVisitor
  • Field Details

    • zkConnectStr

      protected String zkConnectStr
    • zkRoot

      protected String zkRoot
    • zkClusterId

      protected String zkClusterId
    • state

      protected ClusterControllerImpl.State state
    • stateHint

      protected String stateHint
    • supportsDisks

      protected boolean supportsDisks
    • yarnMemory

      protected int yarnMemory
    • yarnVcores

      protected int yarnVcores
    • yarnNodeCount

      protected int yarnNodeCount
    • taskCount

      protected int taskCount
    • liveCount

      protected int liveCount
    • unmanagedCount

      protected int unmanagedCount
    • targetCount

      protected int targetCount
    • totalDrillMemory

      protected int totalDrillMemory
    • totalDrillVcores

      protected int totalDrillVcores
    • totalDrillDisks

      protected double totalDrillDisks
    • blacklistCount

      protected int blacklistCount
    • freeNodeCount

      protected int freeNodeCount
    • appRpt

    • refreshSecs

      protected int refreshSecs
    • groups

  • Constructor Details

    • ControllerModel

      public ControllerModel()
  • Method Details

    • supportsDiskResource

      public boolean supportsDiskResource()
    • getRefreshSecs

      public int getRefreshSecs()
    • getZkConnectionStr

      public String getZkConnectionStr()
    • getZkRoot

      public String getZkRoot()
    • getZkClusterId

      public String getZkClusterId()
    • getAppId

      public String getAppId()
    • getRmHost

      public String getRmHost()
    • getRmLink

      public String getRmLink()
    • getNmHost

      public String getNmHost()
    • getNmLink

      public String getNmLink()
    • getRmAppLink

      public String getRmAppLink()
    • getNmAppLink

      public String getNmAppLink()
    • getState

      public String getState()
    • getStateHint

      public String getStateHint()
    • getYarnMemory

      public int getYarnMemory()
    • getYarnVcores

      public int getYarnVcores()
    • getDrillTotalMemory

      public int getDrillTotalMemory()
    • getDrillTotalVcores

      public int getDrillTotalVcores()
    • getDrillTotalDisks

      public String getDrillTotalDisks()
    • getYarnNodeCount

      public int getYarnNodeCount()
    • getTaskCount

      public int getTaskCount()
    • getLiveCount

      public int getLiveCount()
    • getUnmanagedCount

      public int getUnmanagedCount()
    • getTargetCount

      public int getTargetCount()
    • getGroups

    • getBlacklistCount

      public int getBlacklistCount()
    • getFreeNodeCount

      public int getFreeNodeCount()
    • visit

      public void visit(ClusterController controller)
      Specified by:
      visit in interface ControllerVisitor
    • countStrayDrillbits

      public void countStrayDrillbits(ClusterController controller)
      Count the unmanaged drillbits. Do this as a separate call, not via the visit method, to avoid locking both the cluster controller and ZK registry.
      Parameters:
      controller -