public class ControllerModel extends Object implements ControllerVisitor
| Modifier and Type | Class and Description |
|---|---|
static class |
ControllerModel.ClusterGroupModel |
| Modifier and Type | Field and Description |
|---|---|
protected AMYarnFacade.YarnAppHostReport |
appRpt |
protected int |
blacklistCount |
protected int |
freeNodeCount |
protected List<ControllerModel.ClusterGroupModel> |
groups |
protected int |
liveCount |
protected int |
refreshSecs |
protected ClusterControllerImpl.State |
state |
protected String |
stateHint |
protected boolean |
supportsDisks |
protected int |
targetCount |
protected int |
taskCount |
protected double |
totalDrillDisks |
protected int |
totalDrillMemory |
protected int |
totalDrillVcores |
protected int |
unmanagedCount |
protected int |
yarnMemory |
protected int |
yarnNodeCount |
protected int |
yarnVcores |
protected String |
zkClusterId |
protected String |
zkConnectStr |
protected String |
zkRoot |
| Constructor and Description |
|---|
ControllerModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
countStrayDrillbits(ClusterController controller)
Count the unmanaged drillbits.
|
String |
getAppId() |
int |
getBlacklistCount() |
String |
getDrillTotalDisks() |
int |
getDrillTotalMemory() |
int |
getDrillTotalVcores() |
int |
getFreeNodeCount() |
List<ControllerModel.ClusterGroupModel> |
getGroups() |
int |
getLiveCount() |
String |
getNmAppLink() |
String |
getNmHost() |
String |
getNmLink() |
int |
getRefreshSecs() |
String |
getRmAppLink() |
String |
getRmHost() |
String |
getRmLink() |
String |
getState() |
String |
getStateHint() |
int |
getTargetCount() |
int |
getTaskCount() |
int |
getUnmanagedCount() |
int |
getYarnMemory() |
int |
getYarnNodeCount() |
int |
getYarnVcores() |
String |
getZkClusterId() |
String |
getZkConnectionStr() |
String |
getZkRoot() |
boolean |
supportsDiskResource() |
void |
visit(ClusterController controller) |
protected String zkConnectStr
protected String zkRoot
protected String zkClusterId
protected ClusterControllerImpl.State state
protected String stateHint
protected boolean supportsDisks
protected int yarnMemory
protected int yarnVcores
protected int yarnNodeCount
protected int taskCount
protected int liveCount
protected int unmanagedCount
protected int targetCount
protected int totalDrillMemory
protected int totalDrillVcores
protected double totalDrillDisks
protected int blacklistCount
protected int freeNodeCount
protected AMYarnFacade.YarnAppHostReport appRpt
protected int refreshSecs
protected List<ControllerModel.ClusterGroupModel> groups
public boolean supportsDiskResource()
public int getRefreshSecs()
public String getZkConnectionStr()
public String getZkRoot()
public String getZkClusterId()
public String getAppId()
public String getRmHost()
public String getRmLink()
public String getNmHost()
public String getNmLink()
public String getRmAppLink()
public String getNmAppLink()
public String getState()
public String getStateHint()
public int getYarnMemory()
public int getYarnVcores()
public int getDrillTotalMemory()
public int getDrillTotalVcores()
public String getDrillTotalDisks()
public int getYarnNodeCount()
public int getTaskCount()
public int getLiveCount()
public int getUnmanagedCount()
public int getTargetCount()
public List<ControllerModel.ClusterGroupModel> getGroups()
public int getBlacklistCount()
public int getFreeNodeCount()
public void visit(ClusterController controller)
visit in interface ControllerVisitorpublic void countStrayDrillbits(ClusterController controller)
visit method, to avoid locking both
the cluster controller and ZK registry.controller - Copyright © 2021 The Apache Software Foundation. All rights reserved.