public interface TempletonStorage
| Modifier and Type | Interface and Description |
|---|---|
static class |
TempletonStorage.Type |
| Modifier and Type | Field and Description |
|---|---|
static String |
STORAGE_CLASS |
static String |
STORAGE_ROOT |
| Modifier and Type | Method and Description |
|---|---|
void |
closeStorage()
For storage methods that require a connection, this is a hint
that it's time to close the connection.
|
boolean |
delete(TempletonStorage.Type type,
String id)
Delete a data grouping (all data for a jobid, all tracking data
for a job, etc.).
|
List<String> |
getAllForType(TempletonStorage.Type type)
Get the id of each data grouping of a given type in the storage
system.
|
String |
getField(TempletonStorage.Type type,
String id,
String key)
Get the value of one field for a given data type.
|
void |
openStorage(org.apache.hadoop.conf.Configuration config)
For storage methods that require a connection, this is a hint
that it's time to open a connection.
|
void |
saveField(TempletonStorage.Type type,
String id,
String key,
String val)
Save a single key/value pair for a specific job id.
|
void |
startCleanup(org.apache.hadoop.conf.Configuration config)
Start the cleanup process for this storage type.
|
static final String STORAGE_CLASS
static final String STORAGE_ROOT
void startCleanup(org.apache.hadoop.conf.Configuration config)
config - void saveField(TempletonStorage.Type type, String id, String key, String val) throws NotFoundException
type - The data type (as listed above)id - The String id of this data grouping (jobid, etc.)key - The name of the field to saveval - The value of the field to saveNotFoundExceptionString getField(TempletonStorage.Type type, String id, String key)
type - The data type (as listed above)id - The String id of this data grouping (jobid, etc.)key - The name of the field to retrieveboolean delete(TempletonStorage.Type type, String id) throws NotFoundException
type - The data type (as listed above)id - The String id of this data grouping (jobid, etc.)NotFoundExceptionList<String> getAllForType(TempletonStorage.Type type)
type - The data type (as listed above)void openStorage(org.apache.hadoop.conf.Configuration config)
throws IOException
IOExceptionvoid closeStorage()
throws IOException
IOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.