public class ServerConfiguration
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerConfiguration.Builder
Builder class for creating a custom instance of
ServerConfiguration. |
| Modifier and Type | Field and Description |
|---|---|
static ServerConfiguration |
DEFAULT
Default server configuration
|
| Modifier and Type | Method and Description |
|---|---|
static ServerConfiguration |
from(ResponseAttributes responseAttributes)
Creates a new server configuration from the given
ResponseAttributes |
int |
getBeaconSizeInBytes()
Get the maximum beacon size, that is the post body, in bytes.
|
int |
getMaxEventsPerSession()
Returns the maximum number of events after which a session is to be split.
|
int |
getMaxSessionDurationInMilliseconds()
Returns the maximum duration in milliseconds after which a session is to be split.
|
int |
getMultiplicity()
Get multiplicity value.
|
int |
getSendIntervalInMilliseconds()
Returns the send interval in milliseconds.
|
int |
getServerID()
Get the server's id to communicate with.
|
int |
getSessionTimeoutInMilliseconds()
Returns the idle timeout after which a session is to be split.
|
int |
getTrafficControlPercentage()
Returns a percentage value that is used for session rate limiting.
|
int |
getVisitStoreVersion()
Returns the version of the visit store that should be used.
|
boolean |
isCaptureEnabled()
Get a boolean indicating whether capturing is enabled in Dynatrace/AppMon or not.
|
boolean |
isCrashReportingEnabled()
Get a boolean indicating whether crash reporting is enabled in Dynatrace/AppMon or not.
|
boolean |
isErrorReportingEnabled()
Get a boolean indicating whether error reporting is enabled in Dynatrace/AppMon or not.
|
boolean |
isSendingCrashesAllowed()
Get a boolean indicating whether sending crashes to the server is allowed or not.
|
boolean |
isSendingDataAllowed()
Get a boolean indicating whether sending arbitrary data to the server is allowed or not.
|
boolean |
isSendingErrorsAllowed()
Get a boolean indicating whether sending errors to the server is allowed or not.
|
boolean |
isSessionSplitByEventsEnabled()
Returns
true if session splitting when exceeding the maximum number of events is enabled, false
otherwise. |
boolean |
isSessionSplitByIdleTimeoutEnabled()
Returns
true if session splitting by exceeding the idle timeout is enabled, false otherwise. |
boolean |
isSessionSplitBySessionDurationEnabled()
Returns
true if session splitting when exceeding the maximum session duration is enabled, false
otherwise. |
ServerConfiguration |
merge(ServerConfiguration other)
Merges given
other with this instance and return the merged instance. |
public static final ServerConfiguration DEFAULT
public static ServerConfiguration from(ResponseAttributes responseAttributes)
ResponseAttributesresponseAttributes - the response attributes from which to create the server configuration.public boolean isCaptureEnabled()
true if capturing is enabled, false otherwise.public boolean isCrashReportingEnabled()
true if crash reporting is enabled, false otherwise.public boolean isErrorReportingEnabled()
true if error reporting is enabled, false otherwise.public int getServerID()
public int getBeaconSizeInBytes()
public int getMultiplicity()
Multiplicity is a factor on the server side, which is greater than 1 to prevent overload situations. This value comes from the server and has to be sent back to the server.
public int getSendIntervalInMilliseconds()
public int getMaxSessionDurationInMilliseconds()
public boolean isSessionSplitBySessionDurationEnabled()
true if session splitting when exceeding the maximum session duration is enabled, false
otherwise.public int getMaxEventsPerSession()
public boolean isSessionSplitByEventsEnabled()
true if session splitting when exceeding the maximum number of events is enabled, false
otherwise.public int getSessionTimeoutInMilliseconds()
public boolean isSessionSplitByIdleTimeoutEnabled()
true if session splitting by exceeding the idle timeout is enabled, false otherwise.public int getVisitStoreVersion()
public int getTrafficControlPercentage()
public boolean isSendingDataAllowed()
Sending data is only allowed if all of the following conditions evaluate to true.
* isCaptureEnabled() is true
* getMultiplicity() is greater than 0
To check if sending errors is allowed, use isSendingErrorsAllowed().
To check if sending crashes is allowed, use isSendingCrashesAllowed().
true if data sending is allowed, false otherwise.public boolean isSendingCrashesAllowed()
Sending crashes is only allowed if all of the following conditions evaluate to true.
* isSendingDataAllowed() yields true
* isCrashReportingEnabled() is true
true if sending crashes is allowed, false otherwise.public boolean isSendingErrorsAllowed()
Sending errors is only allowed if all of the following conditions evaluate to true.
* isSendingDataAllowed() yields true
* isErrorReportingEnabled() is true
true if sending errors is allowed, false otherwise.public ServerConfiguration merge(ServerConfiguration other)
other with this instance and return the merged instance.
Most fields are taken from other, except for the following which do not change:
other - The other instance to merge with.ServerConfiguration instance with merged values.