com.cloudera.api.model
Class ApiNameservice

java.lang.Object
  extended by com.cloudera.api.model.ApiNameservice

public class ApiNameservice
extends Object

Provides information about an HDFS nameservice.

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 Summary
ApiNameservice()
           
ApiNameservice(String name, ApiRoleRef active, ApiRoleRef activeFC, ApiRoleRef standBy, ApiRoleRef standByFC, ApiRoleRef secondary, List<String> mountPoints)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApiNameservice

public ApiNameservice()

ApiNameservice

public ApiNameservice(String name,
                      ApiRoleRef active,
                      ApiRoleRef activeFC,
                      ApiRoleRef standBy,
                      ApiRoleRef standByFC,
                      ApiRoleRef secondary,
                      List<String> mountPoints)
Method Detail

getName

public String getName()
Name of the nameservice.


setName

public void setName(String name)

getActive

public ApiRoleRef getActive()
Reference to the active NameNode.


setActive

public void setActive(ApiRoleRef active)

getActiveFailoverController

public ApiRoleRef getActiveFailoverController()
Reference to the active NameNode's failover controller, if configured.


setActiveFailoverController

public void setActiveFailoverController(ApiRoleRef activeFailoverController)

getStandBy

public ApiRoleRef getStandBy()
Reference to the stand-by NameNode.


setStandBy

public void setStandBy(ApiRoleRef standBy)

getStandByFailoverController

public ApiRoleRef getStandByFailoverController()
Reference to the stand-by NameNode's failover controller, if configured.


setStandByFailoverController

public void setStandByFailoverController(ApiRoleRef standByFailoverController)

getSecondary

public ApiRoleRef getSecondary()
Reference to the SecondaryNameNode.


setSecondary

public void setSecondary(ApiRoleRef secondary)

getMountPoints

public List<String> getMountPoints()
Mount points assigned to this nameservice in a federation.


setMountPoints

public void setMountPoints(List<String> mountPoints)

getHealthSummary

public ApiHealthSummary getHealthSummary()
Requires "full" view. The high-level health status of this nameservice.


setHealthSummary

public void setHealthSummary(ApiHealthSummary healthSummary)

getHealthChecks

public List<ApiHealthCheck> getHealthChecks()
Requires "full" view. List of health checks performed on the nameservice.


setHealthChecks

public void setHealthChecks(List<ApiHealthCheck> healthChecks)


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.