|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.code.generator.Metrics
public class Metrics
A Metrics file generator that generates a metrics file in the submit directory The following metrics are logged in the metrics file
| Field Summary | |
|---|---|
protected PegasusBag |
mBag
The bag of initialization objects. |
static String |
METRICS_FILE_SUFFIX
The suffix to use while constructing the name of the metrics file |
protected LogManager |
mLogger
The handle to the logging object. |
protected PlannerOptions |
mPOptions
The object containing the command line options specified to the planner at runtime. |
protected PegasusProperties |
mProps
The object holding all the properties pertaining to Pegasus. |
protected String |
mSubmitFileDir
The directory where all the submit files are to be generated. |
| Constructor Summary | |
|---|---|
Metrics()
|
|
| Method Summary | |
|---|---|
Collection<File> |
generateCode(ADag dag)
Generates the code for the executable workflow in terms of a braindump file that contains workflow metadata useful for monitoring daemons etc. |
void |
generateCode(ADag dag,
Job job)
Method not implemented. |
void |
initialize(PegasusBag bag)
Initializes the Code Generator implementation. |
protected File |
writeOutMetricsFile(ADag dag)
Writes out the workflow metrics file in the submit directory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String METRICS_FILE_SUFFIX
protected PegasusBag mBag
protected String mSubmitFileDir
protected PegasusProperties mProps
protected PlannerOptions mPOptions
protected LogManager mLogger
| Constructor Detail |
|---|
public Metrics()
| Method Detail |
|---|
public void initialize(PegasusBag bag)
throws CodeGeneratorException
bag - the bag of initialization objects.
CodeGeneratorException - in case of any error occuring code generation.
public Collection<File> generateCode(ADag dag)
throws CodeGeneratorException
dag - the concrete workflow.
File objects for the files written
out.
CodeGeneratorException - in case of any error occuring code generation.
public void generateCode(ADag dag,
Job job)
throws CodeGeneratorException
dag - the workflowjob - the job for which the code is to be generated.
CodeGeneratorException
protected File writeOutMetricsFile(ADag dag)
throws IOException
dag - the final executable workflow
IOException - in case of error while writing out file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||