public class ApiNameservice extends Object
Nameservices can be either a stand-alone NameNode, a NameNode paired with a SecondaryNameNode, or a high-availability pair formed by an active and a stand-by NameNode.
The following fields are only available in the object's full view:
Constructor and Description |
---|
ApiNameservice() |
ApiNameservice(String name,
ApiRoleRef active,
ApiRoleRef activeFC,
ApiRoleRef standBy,
ApiRoleRef standByFC,
ApiRoleRef secondary,
List<String> mountPoints) |
Modifier and Type | Method and Description |
---|---|
ApiRoleRef |
getActive()
Reference to the active NameNode.
|
ApiRoleRef |
getActiveFailoverController()
Reference to the active NameNode's failover controller, if configured.
|
List<ApiHealthCheck> |
getHealthChecks()
Requires "full" view.
|
ApiHealthSummary |
getHealthSummary()
Requires "full" view.
|
List<String> |
getMountPoints()
Mount points assigned to this nameservice in a federation.
|
String |
getName()
Name of the nameservice.
|
ApiRoleRef |
getSecondary()
Reference to the SecondaryNameNode.
|
ApiRoleRef |
getStandBy()
Reference to the stand-by NameNode.
|
ApiRoleRef |
getStandByFailoverController()
Reference to the stand-by NameNode's failover controller, if configured.
|
void |
setActive(ApiRoleRef active) |
void |
setActiveFailoverController(ApiRoleRef activeFailoverController) |
void |
setHealthChecks(List<ApiHealthCheck> healthChecks) |
void |
setHealthSummary(ApiHealthSummary healthSummary) |
void |
setMountPoints(List<String> mountPoints) |
void |
setName(String name) |
void |
setSecondary(ApiRoleRef secondary) |
void |
setStandBy(ApiRoleRef standBy) |
void |
setStandByFailoverController(ApiRoleRef standByFailoverController) |
public ApiNameservice()
public ApiNameservice(String name, ApiRoleRef active, ApiRoleRef activeFC, ApiRoleRef standBy, ApiRoleRef standByFC, ApiRoleRef secondary, List<String> mountPoints)
public String getName()
public void setName(String name)
public ApiRoleRef getActive()
public void setActive(ApiRoleRef active)
public ApiRoleRef getActiveFailoverController()
public void setActiveFailoverController(ApiRoleRef activeFailoverController)
public ApiRoleRef getStandBy()
public void setStandBy(ApiRoleRef standBy)
public ApiRoleRef getStandByFailoverController()
public void setStandByFailoverController(ApiRoleRef standByFailoverController)
public ApiRoleRef getSecondary()
public void setSecondary(ApiRoleRef secondary)
public List<String> getMountPoints()
public ApiHealthSummary getHealthSummary()
public void setHealthSummary(ApiHealthSummary healthSummary)
public List<ApiHealthCheck> getHealthChecks()
public void setHealthChecks(List<ApiHealthCheck> healthChecks)
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.