Package alluxio.wire
Class AlluxioMasterInfo
- java.lang.Object
-
- alluxio.wire.AlluxioMasterInfo
-
@NotThreadSafe public class AlluxioMasterInfo extends java.lang.Object
Alluxio master information.
-
-
Constructor Summary
Constructors Constructor Description AlluxioMasterInfo()
Creates a new instance ofAlluxioMasterInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Capacity
getCapacity()
java.util.Map<java.lang.String,java.lang.Object>
getConfiguration()
java.util.List<WorkerInfo>
getLostWorkers()
java.util.Map<java.lang.String,java.lang.Long>
getMetrics()
java.util.Map<java.lang.String,MountPointInfo>
getMountPoints()
java.lang.String
getRpcAddress()
long
getStartTimeMs()
java.util.Map<java.lang.String,Capacity>
getTierCapacity()
Capacity
getUfsCapacity()
long
getUptimeMs()
java.lang.String
getVersion()
java.util.List<WorkerInfo>
getWorkers()
int
hashCode()
AlluxioMasterInfo
setCapacity(Capacity capacity)
AlluxioMasterInfo
setConfiguration(java.util.Map<java.lang.String,java.lang.Object> configuration)
AlluxioMasterInfo
setLostWorkers(java.util.List<WorkerInfo> lostWorkers)
AlluxioMasterInfo
setMetrics(java.util.Map<java.lang.String,java.lang.Long> metrics)
AlluxioMasterInfo
setMountPoints(java.util.Map<java.lang.String,MountPointInfo> mountPoints)
AlluxioMasterInfo
setRpcAddress(java.lang.String rpcAddress)
AlluxioMasterInfo
setStartTimeMs(long startTimeMs)
AlluxioMasterInfo
setTierCapacity(java.util.Map<java.lang.String,Capacity> tierCapacity)
AlluxioMasterInfo
setUfsCapacity(Capacity ufsCapacity)
AlluxioMasterInfo
setUptimeMs(long uptimeMs)
AlluxioMasterInfo
setVersion(java.lang.String version)
AlluxioMasterInfo
setWorkers(java.util.List<WorkerInfo> workers)
java.lang.String
toString()
-
-
-
Constructor Detail
-
AlluxioMasterInfo
public AlluxioMasterInfo()
Creates a new instance ofAlluxioMasterInfo
.
-
-
Method Detail
-
getCapacity
public Capacity getCapacity()
- Returns:
- the capacity
-
getConfiguration
public java.util.Map<java.lang.String,java.lang.Object> getConfiguration()
- Returns:
- the configuration
-
getLostWorkers
public java.util.List<WorkerInfo> getLostWorkers()
- Returns:
- the list of lost workers
-
getMetrics
public java.util.Map<java.lang.String,java.lang.Long> getMetrics()
- Returns:
- the metrics
-
getMountPoints
public java.util.Map<java.lang.String,MountPointInfo> getMountPoints()
- Returns:
- the mount points
-
getRpcAddress
public java.lang.String getRpcAddress()
- Returns:
- the RPC address
-
getStartTimeMs
public long getStartTimeMs()
- Returns:
- the start time (in milliseconds)
-
getTierCapacity
public java.util.Map<java.lang.String,Capacity> getTierCapacity()
- Returns:
- the capacity per tier
-
getUfsCapacity
public Capacity getUfsCapacity()
- Returns:
- the UFS capacity
-
getUptimeMs
public long getUptimeMs()
- Returns:
- the uptime (in milliseconds)
-
getVersion
public java.lang.String getVersion()
- Returns:
- the version
-
getWorkers
public java.util.List<WorkerInfo> getWorkers()
- Returns:
- the list of workers
-
setCapacity
public AlluxioMasterInfo setCapacity(Capacity capacity)
- Parameters:
capacity
- the capacity to use- Returns:
- the Alluxio master information
-
setConfiguration
public AlluxioMasterInfo setConfiguration(java.util.Map<java.lang.String,java.lang.Object> configuration)
- Parameters:
configuration
- the configuration to use- Returns:
- the Alluxio master information
-
setLostWorkers
public AlluxioMasterInfo setLostWorkers(java.util.List<WorkerInfo> lostWorkers)
- Parameters:
lostWorkers
- the list of lost workers to use- Returns:
- the Alluxio master information
-
setMetrics
public AlluxioMasterInfo setMetrics(java.util.Map<java.lang.String,java.lang.Long> metrics)
- Parameters:
metrics
- the metrics to use- Returns:
- the Alluxio master information
-
setMountPoints
public AlluxioMasterInfo setMountPoints(java.util.Map<java.lang.String,MountPointInfo> mountPoints)
- Parameters:
mountPoints
- the mount points to use- Returns:
- the Alluxio master information
-
setRpcAddress
public AlluxioMasterInfo setRpcAddress(java.lang.String rpcAddress)
- Parameters:
rpcAddress
- the RPC address to use- Returns:
- the Alluxio master information
-
setStartTimeMs
public AlluxioMasterInfo setStartTimeMs(long startTimeMs)
- Parameters:
startTimeMs
- the start time to use (in milliseconds)- Returns:
- the Alluxio master information
-
setTierCapacity
public AlluxioMasterInfo setTierCapacity(java.util.Map<java.lang.String,Capacity> tierCapacity)
- Parameters:
tierCapacity
- the capacity per tier to use- Returns:
- the Alluxio master information
-
setUfsCapacity
public AlluxioMasterInfo setUfsCapacity(Capacity ufsCapacity)
- Parameters:
ufsCapacity
- the UFS capacity to use- Returns:
- the Alluxio master information
-
setUptimeMs
public AlluxioMasterInfo setUptimeMs(long uptimeMs)
- Parameters:
uptimeMs
- the uptime to use (in milliseconds)- Returns:
- the Alluxio master information
-
setVersion
public AlluxioMasterInfo setVersion(java.lang.String version)
- Parameters:
version
- the version to use- Returns:
- the Alluxio master information
-
setWorkers
public AlluxioMasterInfo setWorkers(java.util.List<WorkerInfo> workers)
- Parameters:
workers
- the list of workers to use- Returns:
- the Alluxio master information
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-