public class StackTraceSample extends Object
The sampling is triggered in StackTraceSampleCoordinator.
| Constructor and Description |
|---|
StackTraceSample(int sampleId,
long startTime,
long endTime,
Map<ExecutionAttemptID,List<StackTraceElement[]>> stackTracesByTask)
Creates a stack trace sample.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getEndTime()
Returns the time stamp, when all stack traces were collected at the
JobManager.
|
int |
getSampleId()
Returns the ID of the sample.
|
Map<ExecutionAttemptID,List<StackTraceElement[]>> |
getStackTraces()
Returns the a map of stack traces by execution ID.
|
long |
getStartTime()
Returns the time stamp, when the sample was triggered.
|
String |
toString() |
public StackTraceSample(int sampleId,
long startTime,
long endTime,
Map<ExecutionAttemptID,List<StackTraceElement[]>> stackTracesByTask)
sampleId - ID of the sample.startTime - Time stamp, when the sample was triggered.endTime - Time stamp, when all stack traces were
collected at the JobManager.stackTracesByTask - Map of stack traces by execution ID.public int getSampleId()
public long getStartTime()
public long getEndTime()
public Map<ExecutionAttemptID,List<StackTraceElement[]>> getStackTraces()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.