public class NetworkOptions extends 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 |
setClusterFile(String value)
Deprecated.
|
void |
setKnob(String value)
Set internal tuning or debugging knobs.
|
void |
setLocalAddress(String value)
Deprecated.
|
void |
setTLSCertBytes(byte[] value)
Set the certificate chain.
|
void |
setTLSCertPath(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(String value)
Set the file from which to load the private key corresponding to your own certificate.
|
void |
setTLSPlugin(String value)
Set the TLS plugin to load.
|
void |
setTLSVerifyPeers(byte[] value)
Set the peer certificate field verification criteria.
|
void |
setTraceEnable(String value)
Enables trace output to a file in a directory of the clients choosing.
|
void |
setTraceMaxLogsSize(long value)
Sets the maximum size of a 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(String value)
value - IP:PORT@Deprecated public void setClusterFile(String value)
value - path to cluster filepublic void setTraceEnable(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 setKnob(String value)
value - knob_name=knob_valuepublic void setTLSPlugin(String value)
value - file path or linker-resolved namepublic void setTLSCertBytes(byte[] value)
value - certificatespublic void setTLSCertPath(String value)
value - file pathpublic void setTLSKeyBytes(byte[] value)
value - keypublic void setTLSKeyPath(String value)
value - file pathpublic void setTLSVerifyPeers(byte[] value)
value - verification patternpublic OptionConsumer getOptionConsumer()