|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.code.generator.NetloggerJobMapper
public class NetloggerJobMapper
This class can write out the job mappings that link jobs with jobs in the DAX to a Writer stream in the netlogger format.
| Field Summary | |
|---|---|
private LogFormatter |
mLogFormatter
The handle to the netlogger log formatter. |
private LogManager |
mLogger
The handle to pegasus logger used for run. |
static String |
NETLOGGER_LOG_FORMATTER_IMPLEMENTOR
|
| Constructor Summary | |
|---|---|
NetloggerJobMapper(LogManager logger)
The default constructor. |
|
| Method Summary | |
|---|---|
private String |
generateLogEvent(Job job,
String prefix)
Generates a log event message in the netlogger format for a job |
private String |
getKey(String prefix,
String key)
Adds a prefix to the key and returns it. |
private int |
getTaskCount(Job job)
Returns the task count for a job. |
void |
writeOutMappings(Writer writer,
ADag dag)
Writes out the job mappings for a workflow. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NETLOGGER_LOG_FORMATTER_IMPLEMENTOR
private LogFormatter mLogFormatter
private LogManager mLogger
| Constructor Detail |
|---|
public NetloggerJobMapper(LogManager logger)
logger - the logger instance to use for logging| Method Detail |
|---|
public void writeOutMappings(Writer writer,
ADag dag)
throws IOException
writer - the writer stream to which to write out the mappingsdag - the dag for which to write out the mappings
IOException
private String generateLogEvent(Job job,
String prefix)
job - the jobprefix - prefix if any to add to the keys
private String getKey(String prefix,
String key)
prefix - the prefix to be addedkey - the key
private int getTaskCount(Job job)
job -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||