Class ControllerModel
java.lang.Object
org.apache.drill.yarn.appMaster.http.ControllerModel
- All Implemented Interfaces:
ControllerVisitor
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected AMYarnFacade.YarnAppHostReport
protected int
protected int
protected List<ControllerModel.ClusterGroupModel>
protected int
protected int
protected ClusterControllerImpl.State
protected String
protected boolean
protected int
protected int
protected double
protected int
protected int
protected int
protected int
protected int
protected int
protected String
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
countStrayDrillbits
(ClusterController controller) Count the unmanaged drillbits.getAppId()
int
int
int
int
int
int
getState()
int
int
int
int
int
int
boolean
void
visit
(ClusterController controller)
-
Field Details
-
zkConnectStr
-
zkRoot
-
zkClusterId
-
state
-
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
-
getZkRoot
-
getZkClusterId
-
getAppId
-
getRmHost
-
getRmLink
-
getNmHost
-
getNmLink
-
getRmAppLink
-
getNmAppLink
-
getState
-
getStateHint
-
getYarnMemory
public int getYarnMemory() -
getYarnVcores
public int getYarnVcores() -
getDrillTotalMemory
public int getDrillTotalMemory() -
getDrillTotalVcores
public int getDrillTotalVcores() -
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
- Specified by:
visit
in interfaceControllerVisitor
-
countStrayDrillbits
Count the unmanaged drillbits. Do this as a separate call, not via thevisit
method, to avoid locking both the cluster controller and ZK registry.- Parameters:
controller
-
-