Class RequestTracingExecutionOptions
- java.lang.Object
-
- fish.payara.nucleus.requesttracing.domain.execoptions.RequestTracingExecutionOptions
-
public class RequestTracingExecutionOptions extends Object
Configuration class that holds the dynamic configuration of the Request Tracing service.- Author:
- mertcaliskan
-
-
Constructor Summary
Constructors Constructor Description RequestTracingExecutionOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearNotifiers()
void
disableNotifier(String notifier)
void
enableNotifier(String notifier)
Boolean
getAdaptiveSamplingEnabled()
Integer
getAdaptiveSamplingTargetCount()
TimeUnit
getAdaptiveSamplingTimeUnit()
Integer
getAdaptiveSamplingTimeValue()
Boolean
getApplicationsOnlyEnabled()
Set<String>
getEnabledNotifiers()
Gets the notifier options configured with request tracingInteger
getHistoricTraceStoreSize()
Long
getHistoricTraceStoreTimeout()
Boolean
getReservoirSamplingEnabled()
Double
getSampleRate()
Boolean
getSampleRateFirstEnabled()
TimeUnit
getThresholdUnit()
Gets theTimeUnit
which the threshold for request traces is usingLong
getThresholdValue()
Gets the threshold value above which request traces will be sent to the notification serviceInteger
getTraceStoreSize()
Gets maximum the number of traces storedLong
getTraceStoreTimeout()
Boolean
isEnabled()
Boolean
isHistoricTraceStoreEnabled()
void
setAdaptiveSamplingEnabled(Boolean adaptiveSamplingEnabled)
void
setAdaptiveSamplingTargetCount(Integer adaptiveSamplingTargetCount)
void
setAdaptiveSamplingTimeUnit(TimeUnit adaptiveSamplingTimeUnit)
void
setAdaptiveSamplingTimeValue(Integer adaptiveSamplingTimeValue)
void
setApplicationsOnlyEnabled(Boolean applicationsOnlyEnabled)
void
setEnabled(Boolean enabled)
void
setHistoricTraceStoreEnabled(Boolean historicTraceStoreEnabled)
void
setHistoricTraceStoreSize(Integer historicTraceStoreSize)
void
setHistoricTraceStoreTimeout(Long historicTraceStoreTimeout)
void
setReservoirSamplingEnabled(Boolean reservoirSamplingEnabled)
void
setSampleRate(Double sampleRate)
void
setSampleRateFirstEnabled(Boolean sampleRateFirstEnabled)
void
setThresholdUnit(TimeUnit thresholdUnit)
Sets heTimeUnit
which the threshold for request traces is usingvoid
setThresholdValue(Long thresholdValue)
Sets the threshold value above which request traces will be sent to the notification servicevoid
setTraceStoreSize(Integer traceStoreSize)
Sets the maximum number of traces to storevoid
setTraceStoreTimeout(Long traceStoreTimeout)
String
toString()
-
-
-
Method Detail
-
isEnabled
public Boolean isEnabled()
-
setEnabled
public void setEnabled(Boolean enabled)
-
getSampleRate
public Double getSampleRate()
-
setSampleRate
public void setSampleRate(Double sampleRate)
-
getSampleRateFirstEnabled
public Boolean getSampleRateFirstEnabled()
-
setSampleRateFirstEnabled
public void setSampleRateFirstEnabled(Boolean sampleRateFirstEnabled)
-
getAdaptiveSamplingEnabled
public Boolean getAdaptiveSamplingEnabled()
-
setAdaptiveSamplingEnabled
public void setAdaptiveSamplingEnabled(Boolean adaptiveSamplingEnabled)
-
getAdaptiveSamplingTargetCount
public Integer getAdaptiveSamplingTargetCount()
-
setAdaptiveSamplingTargetCount
public void setAdaptiveSamplingTargetCount(Integer adaptiveSamplingTargetCount)
-
getAdaptiveSamplingTimeValue
public Integer getAdaptiveSamplingTimeValue()
-
setAdaptiveSamplingTimeValue
public void setAdaptiveSamplingTimeValue(Integer adaptiveSamplingTimeValue)
-
getAdaptiveSamplingTimeUnit
public TimeUnit getAdaptiveSamplingTimeUnit()
-
setAdaptiveSamplingTimeUnit
public void setAdaptiveSamplingTimeUnit(TimeUnit adaptiveSamplingTimeUnit)
-
getApplicationsOnlyEnabled
public Boolean getApplicationsOnlyEnabled()
-
setApplicationsOnlyEnabled
public void setApplicationsOnlyEnabled(Boolean applicationsOnlyEnabled)
-
getThresholdValue
public Long getThresholdValue()
Gets the threshold value above which request traces will be sent to the notification service- Returns:
- See Also:
getThresholdUnit()
-
setThresholdValue
public void setThresholdValue(Long thresholdValue)
Sets the threshold value above which request traces will be sent to the notification service- Parameters:
thresholdValue
-- See Also:
setThresholdUnit(TimeUnit)
-
getThresholdUnit
public TimeUnit getThresholdUnit()
Gets theTimeUnit
which the threshold for request traces is using- Returns:
- See Also:
getThresholdValue()
-
setThresholdUnit
public void setThresholdUnit(TimeUnit thresholdUnit)
Sets heTimeUnit
which the threshold for request traces is using- Parameters:
thresholdUnit
-- See Also:
setThresholdValue(Long)
-
getTraceStoreSize
public Integer getTraceStoreSize()
Gets maximum the number of traces stored- Returns:
-
setTraceStoreSize
public void setTraceStoreSize(Integer traceStoreSize)
Sets the maximum number of traces to store- Parameters:
traceStoreSize
-
-
getTraceStoreTimeout
public Long getTraceStoreTimeout()
-
setTraceStoreTimeout
public void setTraceStoreTimeout(Long traceStoreTimeout)
-
getReservoirSamplingEnabled
public Boolean getReservoirSamplingEnabled()
-
setReservoirSamplingEnabled
public void setReservoirSamplingEnabled(Boolean reservoirSamplingEnabled)
-
isHistoricTraceStoreEnabled
public Boolean isHistoricTraceStoreEnabled()
-
setHistoricTraceStoreEnabled
public void setHistoricTraceStoreEnabled(Boolean historicTraceStoreEnabled)
-
getHistoricTraceStoreSize
public Integer getHistoricTraceStoreSize()
-
setHistoricTraceStoreSize
public void setHistoricTraceStoreSize(Integer historicTraceStoreSize)
-
getHistoricTraceStoreTimeout
public Long getHistoricTraceStoreTimeout()
-
setHistoricTraceStoreTimeout
public void setHistoricTraceStoreTimeout(Long historicTraceStoreTimeout)
-
getEnabledNotifiers
public Set<String> getEnabledNotifiers()
Gets the notifier options configured with request tracing- Returns:
-
enableNotifier
public void enableNotifier(String notifier)
-
disableNotifier
public void disableNotifier(String notifier)
-
clearNotifiers
public void clearNotifiers()
-
-