tachyon
Class WorkerInfo
java.lang.Object
tachyon.WorkerInfo
public class WorkerInfo
- extends Object
The structure to store a worker's information.
ADDRESS
public final InetSocketAddress ADDRESS
WorkerInfo
public WorkerInfo(long id,
InetSocketAddress address,
long capacityBytes)
containPartition
public boolean containPartition(long partition)
getAddress
public InetSocketAddress getAddress()
getAvailableBytes
public long getAvailableBytes()
getCapacityBytes
public long getCapacityBytes()
getId
public long getId()
getLastUpdatedTimeMs
public long getLastUpdatedTimeMs()
getFiles
public Set<Integer> getFiles()
getUsedBytes
public long getUsedBytes()
requestSpaceBytes
public boolean requestSpaceBytes(long requestSpaceBytes)
returnUsedBytes
public void returnUsedBytes(long returnUsedBytes)
removeFile
public void removeFile(int fileId)
toString
public String toString()
- Overrides:
toString
in class Object
updateFile
public void updateFile(boolean add,
int fileId)
updateFiles
public void updateFiles(boolean add,
Collection<Integer> fileIds)
updateId
public void updateId(long id)
updateLastUpdatedTimeMs
public void updateLastUpdatedTimeMs()
updateUsedBytes
public void updateUsedBytes(long usedBytes)
generateClientWorkerInfo
public ClientWorkerInfo generateClientWorkerInfo()
Copyright © 2013. All Rights Reserved.