Package alluxio.wire

Class AlluxioWorkerInfo


  • @NotThreadSafe
    public class AlluxioWorkerInfo
    extends java.lang.Object
    Alluxio worker information.
    • Constructor Detail

      • AlluxioWorkerInfo

        public AlluxioWorkerInfo()
        Creates a new instance of AlluxioWorkerInfo.
    • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object