public class Metrics extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Metrics() |
Modifier and Type | Method and Description |
---|---|
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
|
public static final String METRICS_FILE_SUFFIX
protected PegasusBag mBag
protected String mSubmitFileDir
protected PegasusProperties mProps
protected PlannerOptions mPOptions
protected LogManager mLogger
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 workflowIOException
- in case of error while writing out file.Copyright © 2011 The University of Southern California. All Rights Reserved.