Package alluxio.job

Class MasterWorkerInfo


  • @ThreadSafe
    public final class MasterWorkerInfo
    extends java.lang.Object
    Metadata for an Alluxio worker.
    • Constructor Detail

      • MasterWorkerInfo

        public MasterWorkerInfo​(long id,
                                alluxio.wire.WorkerNetAddress address)
        Creates a new instance of MasterWorkerInfo.
        Parameters:
        id - the worker id to use
        address - the worker address to use
    • Method Detail

      • getWorkerAddress

        public alluxio.wire.WorkerNetAddress getWorkerAddress()
        Returns:
        the worker's address
      • getId

        public long getId()
        Returns:
        the id of the worker
      • getLastUpdatedTimeMs

        public long getLastUpdatedTimeMs()
        Returns:
        the last updated time of the worker in ms
      • getStartTime

        public long getStartTime()
        Returns:
        the start time in milliseconds
      • generateClientWorkerInfo

        public alluxio.wire.WorkerInfo generateClientWorkerInfo()
        Returns:
        generated WorkerInfo for this worker
      • toString

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

        public void updateLastUpdatedTimeMs()
        Updates the last updated time of the worker in ms.