public enum FileSystemContext extends Enum<FileSystemContext>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
FileSystemMasterClient |
acquireMasterClient()
Acquires a block master client from the block master client pool.
|
TachyonBlockStore |
getTachyonBlockStore() |
void |
releaseMasterClient(FileSystemMasterClient masterClient)
Releases a block master client into the block master client pool.
|
void |
reset()
Re-initializes the Block Store context.
|
static FileSystemContext |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileSystemContext[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileSystemContext INSTANCE
public static FileSystemContext[] values()
for (FileSystemContext c : FileSystemContext.values()) System.out.println(c);
public static FileSystemContext valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic FileSystemMasterClient acquireMasterClient()
public void releaseMasterClient(FileSystemMasterClient masterClient)
masterClient
- a block master client to releasepublic TachyonBlockStore getTachyonBlockStore()
public void reset()
ClientContext
.Copyright © 2015. All Rights Reserved.