public class ThreadSampleMonitor extends BaseController implements CloseableComponent
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_NUM_OF_SAMPLES |
| Constructor and Description |
|---|
ThreadSampleMonitor(boolean saveThreadSamplesToFile,
String locationForSavedThreadSamples,
String applicationName)
Constructor to be used outside spring context
|
ThreadSampleMonitor(EnvironmentProperties environmentProperties,
ApplicationContextFactory applicationContextFactory)
Constructor to be used in spring context
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearSamples() |
Counter<Trace> |
getLessRelevantTracesCounter() |
int |
getNumOfSamples() |
Counter<Trace> |
getRelevantTracesCounter() |
protected String |
handleRequest(spark.Request request,
spark.Response response) |
void |
terminate() |
getPath, handle, isAllowCORSpublic static final int MAX_NUM_OF_SAMPLES
@Autowired public ThreadSampleMonitor(EnvironmentProperties environmentProperties, ApplicationContextFactory applicationContextFactory)
protected String handleRequest(spark.Request request, spark.Response response) throws Exception
handleRequest in class BaseControllerExceptionpublic void terminate()
terminate in interface CloseableComponentpublic void clearSamples()
public int getNumOfSamples()
Copyright © 2015. All rights reserved.