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 voidclearNotifiers()voiddisableNotifier(String notifier)voidenableNotifier(String notifier)BooleangetAdaptiveSamplingEnabled()IntegergetAdaptiveSamplingTargetCount()TimeUnitgetAdaptiveSamplingTimeUnit()IntegergetAdaptiveSamplingTimeValue()BooleangetApplicationsOnlyEnabled()Set<String>getEnabledNotifiers()Gets the notifier options configured with request tracingIntegergetHistoricTraceStoreSize()LonggetHistoricTraceStoreTimeout()BooleangetReservoirSamplingEnabled()DoublegetSampleRate()BooleangetSampleRateFirstEnabled()TimeUnitgetThresholdUnit()Gets theTimeUnitwhich the threshold for request traces is usingLonggetThresholdValue()Gets the threshold value above which request traces will be sent to the notification serviceIntegergetTraceStoreSize()Gets maximum the number of traces storedLonggetTraceStoreTimeout()BooleanisEnabled()BooleanisHistoricTraceStoreEnabled()voidsetAdaptiveSamplingEnabled(Boolean adaptiveSamplingEnabled)voidsetAdaptiveSamplingTargetCount(Integer adaptiveSamplingTargetCount)voidsetAdaptiveSamplingTimeUnit(TimeUnit adaptiveSamplingTimeUnit)voidsetAdaptiveSamplingTimeValue(Integer adaptiveSamplingTimeValue)voidsetApplicationsOnlyEnabled(Boolean applicationsOnlyEnabled)voidsetEnabled(Boolean enabled)voidsetHistoricTraceStoreEnabled(Boolean historicTraceStoreEnabled)voidsetHistoricTraceStoreSize(Integer historicTraceStoreSize)voidsetHistoricTraceStoreTimeout(Long historicTraceStoreTimeout)voidsetReservoirSamplingEnabled(Boolean reservoirSamplingEnabled)voidsetSampleRate(Double sampleRate)voidsetSampleRateFirstEnabled(Boolean sampleRateFirstEnabled)voidsetThresholdUnit(TimeUnit thresholdUnit)Sets heTimeUnitwhich the threshold for request traces is usingvoidsetThresholdValue(Long thresholdValue)Sets the threshold value above which request traces will be sent to the notification servicevoidsetTraceStoreSize(Integer traceStoreSize)Sets the maximum number of traces to storevoidsetTraceStoreTimeout(Long traceStoreTimeout)StringtoString()
-
-
-
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 theTimeUnitwhich the threshold for request traces is using- Returns:
- See Also:
getThresholdValue()
-
setThresholdUnit
public void setThresholdUnit(TimeUnit thresholdUnit)
Sets heTimeUnitwhich 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()
-
-