public class PlannerMetrics extends Data
Modifier and Type | Field and Description |
---|---|
private java.util.Properties |
mApplicationMetrics
The application metrics that need to be forwarded
|
private java.lang.String |
mBaseSubmitDirectory
The base submit directory where the files are being created.
|
private java.lang.String |
mClient
The name of the client
|
private java.lang.String |
mDataConfiguration
The UUID associated with the workflow.
|
private java.lang.String |
mDAXPath
The path to the DAX that was planned by the workflow.
|
private double |
mDuration
The planning duration
|
private double |
mEndTime
The end time for the planning.
|
private java.lang.String |
mErrorMessage
The error message to be logged
|
private int |
mExitcode
the exitcode of the planner
|
private java.io.File |
mMetricsFileInSubmitDirectory |
private java.text.NumberFormat |
mNumFormatter
The number formatter to format the run submit dir entries.
|
private java.lang.String |
mPropertiesPath
The pointer to the properties file that was used.
|
private java.lang.String |
mRelativeSubmitDirectory
The relative submit directory for this run.
|
private java.lang.String |
mRootWorkflowUUID
The Root Workflow UUID.
|
private double |
mStartTime
The start time for the planning.
|
private java.lang.String |
mType
The name of the client
|
private java.lang.String |
mUser
The user who planned the workflow.
|
private java.lang.String |
mVersion
The planner version
|
private java.lang.String |
mVOGroup
The VOGroup to which the user belonged to.
|
private WorkflowMetrics |
mWFMetrics
The metrics about the workflow.
|
private java.lang.String |
mWorkflowUUID
The UUID associated with the workflow.
|
Constructor and Description |
---|
PlannerMetrics()
The default metrics.
|
Modifier and Type | Method and Description |
---|---|
protected void |
append(java.lang.StringBuffer buffer,
java.lang.String key,
java.lang.String value)
Appends a key=value pair to the StringBuffer.
|
java.lang.Object |
clone()
Returns the clone of the object.
|
java.util.Properties |
getApplicationMetrics()
Returns the application specific metrics that will be forwarded to the
server
|
java.lang.String |
getBaseSubmitDirectory()
Returns the path to the base submit directory.
|
java.lang.String |
getDataConfiguration()
Returns the data configuration
|
java.lang.String |
getDAX()
Sets the path to the DAX.
|
double |
getDuration()
Returns the duration for the planning
|
double |
getEndTime()
Returns the end time for the planning operation as epoch with
millisecond precision
|
java.lang.String |
getErrorMessage()
Returns the error message that we want to log
|
int |
getExitcode()
Returns the exitcode for the planner
|
java.io.File |
getMetricsFileLocationInSubmitDirectory()
Sets the metrics file location in the submit directory
|
java.lang.String |
getMetricsType()
Returns the metric type
|
java.lang.String |
getProperties()
Returns the path to the properties file for the run.
|
java.lang.String |
getRelativeSubmitDirectory()
Returns the path to the relative submit directory.
|
java.lang.String |
getRootWorkflowUUID()
Returns the UUID for the Root workflow
|
double |
getStartTime()
Returns the start time for the planning operation as epoch with
millisecond precision
|
java.lang.String |
getUser()
Returns the username.
|
java.lang.String |
getVOGroup()
Returns the VO Group.
|
WorkflowMetrics |
getWorkflowMetrics()
Returns the workflow metrics.
|
java.lang.String |
getWorkflowUUID()
Returns the UUID for the workflow
|
void |
setApplicationMetrics(PegasusProperties properties)
Sets the app metrics that need to be forwarded.
|
void |
setApplicationMetrics(java.util.Properties properties)
Sets the app metrics that need to be forwarded.
|
void |
setBaseSubmitDirectory(java.lang.String base)
Sets the path to the base submit directory.
|
void |
setDataConfiguration(java.lang.String configuration)
The data configuration
|
void |
setDAX(java.lang.String path)
Sets the path to the DAX.
|
void |
setDuration(double duration)
Sets the user.
|
void |
setEndTime(java.util.Date end)
Set the end time for the planning operation.
|
void |
setEndTime(double end)
Set the end time for the planning operation.
|
void |
setErrorMessage(java.lang.String error)
Set the error message that we want to log
|
void |
setExitcode(int exitcode)
Sets the exitcode for the planner.
|
void |
setMetricsFileLocationInSubmitDirectory(java.io.File f)
Sets the metrics file location in the submit directory
|
void |
setMetricsType(java.lang.String type)
Sets the metrics
|
void |
setMetricsTypeToError()
Convenience setter method
|
void |
setProperties(java.lang.String path)
Sets the path to the properties file for the run.
|
void |
setRelativeSubmitDirectory(java.lang.String relative)
Sets the path to the submit directory relative to the base.
|
void |
setRootWorkflowUUID(java.lang.String uuid)
Sets the root UUID for the workflow
|
void |
setStartTime(java.util.Date start)
Set the start time for the planning operation.
|
void |
setStartTime(double start)
Set the start time for the planning operation.
|
void |
setUser(java.lang.String user)
Sets the user.
|
void |
setVOGroup(java.lang.String group)
Sets the vo group
|
void |
setWorkflowMetrics(WorkflowMetrics metrics)
Sets the workflow metrics.
|
void |
setWorkflowUUID(java.lang.String uuid)
Sets the UUID for the workflow
|
java.lang.String |
toJson()
Converts the planner metrics to JSON
|
java.lang.String |
toPrettyJson()
Converts the planner metrics to JSON
|
java.lang.String |
toString()
Returns a textual description of the object.
|
setToString, vectorToString
private java.lang.String mBaseSubmitDirectory
private java.lang.String mRelativeSubmitDirectory
private java.io.File mMetricsFileInSubmitDirectory
private java.lang.String mDAXPath
private java.lang.String mPropertiesPath
private java.lang.String mUser
private java.lang.String mVOGroup
private java.text.NumberFormat mNumFormatter
private final java.lang.String mClient
private final java.lang.String mVersion
private java.lang.String mType
private double mStartTime
private double mEndTime
private double mDuration
private int mExitcode
private java.lang.String mRootWorkflowUUID
private java.lang.String mWorkflowUUID
private java.lang.String mDataConfiguration
private WorkflowMetrics mWFMetrics
private java.util.Properties mApplicationMetrics
private java.lang.String mErrorMessage
public java.lang.String getRootWorkflowUUID()
public void setRootWorkflowUUID(java.lang.String uuid)
uuid
- the UUID of the workflowpublic java.lang.String getWorkflowUUID()
public void setWorkflowUUID(java.lang.String uuid)
uuid
- the UUID of the workflowpublic WorkflowMetrics getWorkflowMetrics()
public void setWorkflowMetrics(WorkflowMetrics metrics)
metrics
- the workflow metrics.public void setApplicationMetrics(java.util.Properties properties)
metrics
- the application metricspublic void setApplicationMetrics(PegasusProperties properties)
metrics
- the application metricspublic java.util.Properties getApplicationMetrics()
public java.lang.String getUser()
public void setUser(java.lang.String user)
user
- the user.public void setMetricsType(java.lang.String type)
type
- the metrics typepublic void setMetricsTypeToError()
type
- the metrics typepublic java.lang.String getMetricsType()
public void setVOGroup(java.lang.String group)
group
- the vo group.public java.lang.String getVOGroup()
public void setProperties(java.lang.String path)
path
- the path to the properties file.public java.lang.String getProperties()
public void setBaseSubmitDirectory(java.lang.String base)
base
- the path to the base submit directory.public java.lang.String getBaseSubmitDirectory()
public void setRelativeSubmitDirectory(java.lang.String relative)
relative
- the relative path from the base submit directory.public java.lang.String getRelativeSubmitDirectory()
public void setMetricsFileLocationInSubmitDirectory(java.io.File f)
f
- the file pointing to the metrics filepublic java.io.File getMetricsFileLocationInSubmitDirectory()
public void setDAX(java.lang.String path)
path
- the path to the DAX file.public java.lang.String getDAX()
public void setDataConfiguration(java.lang.String configuration)
configuration
- the data configurationpublic java.lang.String getDataConfiguration()
public void setStartTime(java.util.Date start)
start
- the start time.public void setStartTime(double start)
start
- the start time.public double getStartTime()
public void setEndTime(java.util.Date end)
end
- the end time.public void setEndTime(double end)
end
- the end time.public double getEndTime()
public double getDuration()
public void setDuration(double duration)
duration
- the durationpublic int getExitcode()
public void setExitcode(int exitcode)
exitcode
- the exitcodepublic void setErrorMessage(java.lang.String error)
error
- errorpublic java.lang.String getErrorMessage()
public java.lang.String toJson()
public java.lang.String toPrettyJson()
public java.lang.String toString()
protected void append(java.lang.StringBuffer buffer, java.lang.String key, java.lang.String value)
buffer
- the StringBuffer that is to be appended to.key
- the key.value
- the value.public java.lang.Object clone()
clone
in class java.lang.Object