public class ReplicaCatalog
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ReplicaCatalog.FileSystem
File System
|
| Constructor and Description |
|---|
ReplicaCatalog() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addStorageList(java.lang.String file,
java.lang.String storage)
Adds a file to a storage
|
static boolean |
containsFile(java.lang.String fileName)
Checks whether a file exists
|
static File |
getFile(java.lang.String fileName)
Gets the file object based its file name
|
static ReplicaCatalog.FileSystem |
getFileSystem()
Gets the file system
|
static java.util.List |
getStorageList(java.lang.String file)
Gets the list of storages a file exists
|
static void |
init(ReplicaCatalog.FileSystem fs)
Initialize a ReplicaCatalog
|
static void |
setFile(java.lang.String fileName,
File file)
Adds a file name and the associated file object
|
public static void init(ReplicaCatalog.FileSystem fs)
fs - the type of file systempublic static ReplicaCatalog.FileSystem getFileSystem()
public static File getFile(java.lang.String fileName)
fileName, - file namepublic static void setFile(java.lang.String fileName,
File file)
fileName, - the file namefile - , the file objectpublic static boolean containsFile(java.lang.String fileName)
fileName - file namepublic static java.util.List getStorageList(java.lang.String file)
file - the file objectpublic static void addStorageList(java.lang.String file,
java.lang.String storage)
file, - a file objectstorage - , the storage associated with this file