public class DatanodeAdminProperties extends Object
Constructor and Description |
---|
DatanodeAdminProperties() |
Modifier and Type | Method and Description |
---|---|
DatanodeInfo.AdminStates |
getAdminState()
Get the admin state of the datanode.
|
String |
getHostName()
Return the host name of the datanode.
|
long |
getMaintenanceExpireTimeInMS()
Get the maintenance expiration time in milliseconds.
|
int |
getPort()
Get the port number of the datanode.
|
String |
getUpgradeDomain()
Get the upgrade domain of the datanode.
|
void |
setAdminState(DatanodeInfo.AdminStates adminState)
Set the admin state of the datanode.
|
void |
setHostName(String hostName)
Set the host name of the datanode.
|
void |
setMaintenanceExpireTimeInMS(long maintenanceExpireTimeInMS)
Get the maintenance expiration time in milliseconds.
|
void |
setPort(int port)
Set the port number of the datanode.
|
void |
setUpgradeDomain(String upgradeDomain)
Set the upgrade domain of the datanode.
|
public String getHostName()
public void setHostName(String hostName)
hostName
- the host name of the datanode.public int getPort()
public void setPort(int port)
port
- the port number of the datanode.public String getUpgradeDomain()
public void setUpgradeDomain(String upgradeDomain)
upgradeDomain
- the upgrade domain of the datanode.public DatanodeInfo.AdminStates getAdminState()
public void setAdminState(DatanodeInfo.AdminStates adminState)
adminState
- the admin state of the datanode.public long getMaintenanceExpireTimeInMS()
public void setMaintenanceExpireTimeInMS(long maintenanceExpireTimeInMS)
maintenanceExpireTimeInMS
- the maintenance expiration time in milliseconds.Copyright © 2018 Apache Software Foundation. All Rights Reserved.