public class FileLocation extends Object
Constructor and Description |
---|
FileLocation(String fileName,
String preferredWorker,
boolean dataOnPreferredWorker,
Set<String> workers)
Description of the file location.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getFileName()
Get the file name.
|
String |
getPreferredWorker()
Get the preferred worker.
|
Set<String> |
getWorkersThatHaveData()
Get the workers where data locate.
|
int |
hashCode() |
boolean |
isDataOnPreferredWorker()
If data locates at the preferred worker.
|
public FileLocation(String fileName, String preferredWorker, boolean dataOnPreferredWorker, Set<String> workers)
fileName
- the file namepreferredWorker
- the preferred workerdataOnPreferredWorker
- theworkers
- the workers where the file locatepublic String getFileName()
public String getPreferredWorker()
public boolean isDataOnPreferredWorker()
public Set<String> getWorkersThatHaveData()
Copyright © 2023. All Rights Reserved.