public class NetworkOptions
extends java.lang.Object
FoundationDB API
.Constructor and Description |
---|
NetworkOptions(OptionConsumer consumer) |
Modifier and Type | Method and Description |
---|---|
OptionConsumer |
getOptionConsumer()
Returns the object on which these options are being set.
|
void |
setBuggifyDisable() |
void |
setBuggifyEnable() |
void |
setBuggifySectionActivatedProbability(long value)
Set the probability of a BUGGIFY section being active for the current execution.
|
void |
setBuggifySectionFiredProbability(long value)
Set the probability of an active BUGGIFY section being fired.
|
void |
setCallbacksOnExternalThreads()
If set, callbacks from external client libraries can be called from threads created by the FoundationDB client library.
|
void |
setClientBuggifyDisable()
Disable client buggify.
|
void |
setClientBuggifyEnable()
Enable client buggify - will make requests randomly fail (intended for client testing).
|
void |
setClientBuggifySectionActivatedProbability(long value)
Set the probability of a CLIENT_BUGGIFY section being active for the current execution.
|
void |
setClientBuggifySectionFiredProbability(long value)
Set the probability of an active CLIENT_BUGGIFY section being fired.
|
void |
setClusterFile(java.lang.String value)
Deprecated.
|
void |
setDisableClientStatisticsLogging()
Disables logging of client statistics, such as sampled transaction activity.
|
void |
setDisableLocalClient()
Prevents connections through the local client, allowing only connections through externally loaded client libraries.
|
void |
setDisableMultiVersionClientApi()
Disables the multi-version client API and instead uses the local client directly.
|
void |
setEnableRunLoopProfiling()
Enables debugging feature to perform run loop profiling.
|
void |
setEnableSlowTaskProfiling()
Deprecated.
|
void |
setExternalClientDirectory(java.lang.String value)
Searches the specified path for dynamic libraries and adds them to the list of client libraries for use by the multi-version client API.
|
void |
setExternalClientLibrary(java.lang.String value)
Adds an external client library for use by the multi-version client API.
|
void |
setKnob(java.lang.String value)
Set internal tuning or debugging knobs.
|
void |
setLocalAddress(java.lang.String value)
Deprecated.
|
void |
setTLSCaBytes(byte[] value)
Set the ca bundle.
|
void |
setTLSCaPath(java.lang.String value)
Set the file from which to load the certificate authority bundle.
|
void |
setTLSCertBytes(byte[] value)
Set the certificate chain.
|
void |
setTLSCertPath(java.lang.String value)
Set the file from which to load the certificate chain.
|
void |
setTLSKeyBytes(byte[] value)
Set the private key corresponding to your own certificate.
|
void |
setTLSKeyPath(java.lang.String value)
Set the file from which to load the private key corresponding to your own certificate.
|
void |
setTLSPassword(java.lang.String value)
Set the passphrase for encrypted private key.
|
void |
setTLSPlugin(java.lang.String value)
Deprecated.
|
void |
setTLSVerifyPeers(byte[] value)
Set the peer certificate field verification criteria.
|
void |
setTraceClockSource(java.lang.String value)
Select clock source for trace files.
|
void |
setTraceEnable(java.lang.String value)
Enables trace output to a file in a directory of the clients choosing.
|
void |
setTraceFileIdentifier(java.lang.String value)
Once provided, this string will be used to replace the port/PID in the log file names.
|
void |
setTraceFormat(java.lang.String value)
Select the format of the log files.
|
void |
setTraceLogGroup(java.lang.String value)
Sets the 'LogGroup' attribute with the specified value for all events in the trace output files.
|
void |
setTraceMaxLogsSize(long value)
Sets the maximum size of all the trace output files put together.
|
void |
setTraceRollSize(long value)
Sets the maximum size in bytes of a single trace output file.
|
public NetworkOptions(OptionConsumer consumer)
@Deprecated public void setLocalAddress(java.lang.String value)
value
- IP:PORT@Deprecated public void setClusterFile(java.lang.String value)
value
- path to cluster filepublic void setTraceEnable(java.lang.String value)
value
- path to output directory (or NULL for current working directory)public void setTraceRollSize(long value)
[0, INT64_MAX]
. If the value is set to 0, there is no limit on individual file size. The default is a maximum size of 10,485,760 bytes.value
- max size of a single trace output filepublic void setTraceMaxLogsSize(long value)
[0, INT64_MAX]
. If the value is set to 0, there is no limit on the total size of the files. The default is a maximum size of 104,857,600 bytes. If the default roll size is used, this means that a maximum of 10 trace files will be written at a time.value
- max total size of trace filespublic void setTraceLogGroup(java.lang.String value)
value
- value of the LogGroup attributepublic void setTraceFormat(java.lang.String value)
value
- Format of trace filespublic void setTraceClockSource(java.lang.String value)
value
- Trace clock sourcepublic void setTraceFileIdentifier(java.lang.String value)
value
- The identifier that will be part of all trace file namespublic void setKnob(java.lang.String value)
value
- knob_name=knob_value@Deprecated public void setTLSPlugin(java.lang.String value)
value
- file path or linker-resolved namepublic void setTLSCertBytes(byte[] value)
value
- certificatespublic void setTLSCertPath(java.lang.String value)
value
- file pathpublic void setTLSKeyBytes(byte[] value)
value
- keypublic void setTLSKeyPath(java.lang.String value)
value
- file pathpublic void setTLSVerifyPeers(byte[] value)
value
- verification patternpublic void setBuggifySectionActivatedProbability(long value)
value
- probability expressed as a percentage between 0 and 100public void setBuggifySectionFiredProbability(long value)
value
- probability expressed as a percentage between 0 and 100public void setTLSCaBytes(byte[] value)
value
- ca bundlepublic void setTLSCaPath(java.lang.String value)
value
- file pathpublic void setTLSPassword(java.lang.String value)
value
- key passphrasepublic void setDisableMultiVersionClientApi()
public void setCallbacksOnExternalThreads()
public void setExternalClientLibrary(java.lang.String value)
value
- path to client librarypublic void setExternalClientDirectory(java.lang.String value)
value
- path to directory containing client librariespublic void setDisableLocalClient()
public void setDisableClientStatisticsLogging()
@Deprecated public void setEnableSlowTaskProfiling()
public void setEnableRunLoopProfiling()
public void setClientBuggifyEnable()
public void setClientBuggifyDisable()
public void setClientBuggifySectionActivatedProbability(long value)
value
- probability expressed as a percentage between 0 and 100public void setClientBuggifySectionFiredProbability(long value)
value
- probability expressed as a percentage between 0 and 100public void setBuggifyEnable()
public void setBuggifyDisable()
public OptionConsumer getOptionConsumer()