Package alluxio.wire
Class AlluxioWorkerInfo
- java.lang.Object
-
- alluxio.wire.AlluxioWorkerInfo
-
@NotThreadSafe public class AlluxioWorkerInfo extends java.lang.Object
Alluxio worker information.
-
-
Constructor Summary
Constructors Constructor Description AlluxioWorkerInfo()
Creates a new instance ofAlluxioWorkerInfo
.
-
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.Map<java.lang.String,java.lang.Long>
getMetrics()
java.lang.String
getRpcAddress()
long
getStartTimeMs()
java.util.Map<java.lang.String,Capacity>
getTierCapacity()
java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getTierPaths()
long
getUptimeMs()
java.lang.String
getVersion()
int
hashCode()
AlluxioWorkerInfo
setCapacity(Capacity capacity)
AlluxioWorkerInfo
setConfiguration(java.util.Map<java.lang.String,java.lang.Object> configuration)
AlluxioWorkerInfo
setMetrics(java.util.Map<java.lang.String,java.lang.Long> metrics)
AlluxioWorkerInfo
setRpcAddress(java.lang.String rpcAddress)
AlluxioWorkerInfo
setStartTimeMs(long startTimeMs)
AlluxioWorkerInfo
setTierCapacity(java.util.Map<java.lang.String,Capacity> tierCapacity)
AlluxioWorkerInfo
setTierPaths(java.util.Map<java.lang.String,java.util.List<java.lang.String>> tierPaths)
AlluxioWorkerInfo
setUptimeMs(long uptimeMs)
AlluxioWorkerInfo
setVersion(java.lang.String version)
java.lang.String
toString()
-
-
-
Constructor Detail
-
AlluxioWorkerInfo
public AlluxioWorkerInfo()
Creates a new instance ofAlluxioWorkerInfo
.
-
-
Method Detail
-
getCapacity
public Capacity getCapacity()
- Returns:
- the capacity
-
getConfiguration
public java.util.Map<java.lang.String,java.lang.Object> getConfiguration()
- Returns:
- the configuration
-
getMetrics
public java.util.Map<java.lang.String,java.lang.Long> getMetrics()
- Returns:
- the metrics
-
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
-
getTierPaths
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getTierPaths()
- Returns:
- the tier paths
-
getUptimeMs
public long getUptimeMs()
- Returns:
- the uptime (in milliseconds)
-
getVersion
public java.lang.String getVersion()
- Returns:
- the version
-
setCapacity
public AlluxioWorkerInfo setCapacity(Capacity capacity)
- Parameters:
capacity
- the capacity to use- Returns:
- the Alluxio worker information
-
setConfiguration
public AlluxioWorkerInfo setConfiguration(java.util.Map<java.lang.String,java.lang.Object> configuration)
- Parameters:
configuration
- the configuration to use- Returns:
- the Alluxio worker information
-
setMetrics
public AlluxioWorkerInfo setMetrics(java.util.Map<java.lang.String,java.lang.Long> metrics)
- Parameters:
metrics
- the metrics to use- Returns:
- the Alluxio worker information
-
setRpcAddress
public AlluxioWorkerInfo setRpcAddress(java.lang.String rpcAddress)
- Parameters:
rpcAddress
- the RPC address to use- Returns:
- the Alluxio worker information
-
setStartTimeMs
public AlluxioWorkerInfo setStartTimeMs(long startTimeMs)
- Parameters:
startTimeMs
- the start time to use (in milliseconds)- Returns:
- the Alluxio worker information
-
setTierCapacity
public AlluxioWorkerInfo setTierCapacity(java.util.Map<java.lang.String,Capacity> tierCapacity)
- Parameters:
tierCapacity
- the capacity per tier to use- Returns:
- the Alluxio worker information
-
setTierPaths
public AlluxioWorkerInfo setTierPaths(java.util.Map<java.lang.String,java.util.List<java.lang.String>> tierPaths)
- Parameters:
tierPaths
- the tier paths to use- Returns:
- the Alluxio worker information
-
setUptimeMs
public AlluxioWorkerInfo setUptimeMs(long uptimeMs)
- Parameters:
uptimeMs
- the uptime to use (in milliseconds)- Returns:
- the Alluxio worker information
-
setVersion
public AlluxioWorkerInfo setVersion(java.lang.String version)
- Parameters:
version
- the version to use- Returns:
- the Alluxio worker 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
-
-