Class ControllerModel
java.lang.Object
org.apache.drill.yarn.appMaster.http.ControllerModel
- All Implemented Interfaces:
ControllerVisitor
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AMYarnFacade.YarnAppHostReportprotected intprotected intprotected List<ControllerModel.ClusterGroupModel> protected intprotected intprotected ClusterControllerImpl.Stateprotected Stringprotected booleanprotected intprotected intprotected doubleprotected intprotected intprotected intprotected intprotected intprotected intprotected Stringprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcountStrayDrillbits(ClusterController controller) Count the unmanaged drillbits.getAppId()intintintintintintgetState()intintintintintintbooleanvoidvisit(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:
visitin interfaceControllerVisitor
-
countStrayDrillbits
Count the unmanaged drillbits. Do this as a separate call, not via thevisitmethod, to avoid locking both the cluster controller and ZK registry.- Parameters:
controller-
-