Package alluxio.job
Class MasterWorkerInfo
- java.lang.Object
-
- alluxio.job.MasterWorkerInfo
-
@ThreadSafe public final class MasterWorkerInfo extends java.lang.ObjectMetadata for an Alluxio worker.
-
-
Constructor Summary
Constructors Constructor Description MasterWorkerInfo(long id, alluxio.wire.WorkerNetAddress address)Creates a new instance ofMasterWorkerInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description alluxio.wire.WorkerInfogenerateClientWorkerInfo()longgetId()longgetLastUpdatedTimeMs()longgetStartTime()alluxio.wire.WorkerNetAddressgetWorkerAddress()java.lang.StringtoString()voidupdateLastUpdatedTimeMs()Updates the last updated time of the worker in ms.
-
-
-
Constructor Detail
-
MasterWorkerInfo
public MasterWorkerInfo(long id, alluxio.wire.WorkerNetAddress address)Creates a new instance ofMasterWorkerInfo.- Parameters:
id- the worker id to useaddress- 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
WorkerInfofor this worker
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
updateLastUpdatedTimeMs
public void updateLastUpdatedTimeMs()
Updates the last updated time of the worker in ms.
-
-