public static class JobHistory.TaskAttempt extends JobHistory.Task
构造器和说明 |
---|
JobHistory.TaskAttempt() |
限定符和类型 | 方法和说明 |
---|---|
String |
get(JobHistory.Keys k)
Get 'String' value for given key.
|
int |
getInt(JobHistory.Keys k)
Convert value from history to int and return.
|
long |
getLong(JobHistory.Keys k)
Convert value from history to int and return.
|
Map<JobHistory.Keys,String> |
getValues()
Returns Map containing all key-values.
|
void |
handle(Map<JobHistory.Keys,String> values)
Reads values back from the history, input is same Map as passed to Listener by parseHistory().
|
void |
set(JobHistory.Keys k,
String s)
Set value for the key.
|
void |
set(Map<JobHistory.Keys,String> m)
Adds all values in the Map argument to its own values.
|
getTaskAttempts, logFailed, logFailed, logFinished, logStarted, logUpdates
public String get(JobHistory.Keys k)
k
- public int getInt(JobHistory.Keys k)
k
- keypublic long getLong(JobHistory.Keys k)
k
- public void set(JobHistory.Keys k, String s)
k
- s
- public void set(Map<JobHistory.Keys,String> m)
m
- public void handle(Map<JobHistory.Keys,String> values)
values
- public Map<JobHistory.Keys,String> getValues()
Copyright © 2009 The Apache Software Foundation