Package alluxio.wire

Class AlluxioMasterInfo


  • @NotThreadSafe
    public class AlluxioMasterInfo
    extends java.lang.Object
    Alluxio master information.
    • Constructor Detail

      • AlluxioMasterInfo

        public AlluxioMasterInfo()
        Creates a new instance of AlluxioMasterInfo.
    • 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 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