public class ActivityStats extends Object implements Serializable
Constructor and Description |
---|
ActivityStats() |
Modifier and Type | Method and Description |
---|---|
int |
getCompletedCount()
Return count of completed activities
|
DoubleStatsValue |
getCostOverThresholdStats()
Return cost over threshold stats
|
DoubleStatsValue |
getCostStats()
Return cost stats
|
DoubleStatsValue |
getDurationOverThresholdStats()
Return duration over threshold stats
|
DoubleStatsValue |
getDurationStats()
Returns duration stats
|
String |
getId() |
DoubleStatsValue |
getIdleTimeStats()
Return ide time stats
|
String |
getName() |
DoubleStatsValue |
getWaitingTimeStats()
Return waiting time stats
|
void |
reportCompletion() |
void |
reportElementStats(double duration,
double waitingTime,
double idleTime,
double cost,
double costOverThreshold,
double durationOverThreshold)
Handle task completion
|
void |
setId(String id) |
void |
setName(String name) |
String |
toString(String separator)
Returns values separated by separator for all stats
|
public int getCompletedCount()
public String getId()
public void setId(String id)
public String getName()
public void setName(String name)
public DoubleStatsValue getDurationStats()
public DoubleStatsValue getWaitingTimeStats()
public DoubleStatsValue getIdleTimeStats()
public DoubleStatsValue getCostStats()
public DoubleStatsValue getCostOverThresholdStats()
public DoubleStatsValue getDurationOverThresholdStats()
public void reportElementStats(double duration, double waitingTime, double idleTime, double cost, double costOverThreshold, double durationOverThreshold)
duration
- durationwaitingTime
- waiting timeidleTime
- idle timecost
- costcostOverThreshold
- cost over threshold 0 if not over thresholddurationOverThreshold
- duration over threshold, 0 if not over thresholdpublic void reportCompletion()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.