{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module FoundationDB.Options.NetworkOption where
import Data.ByteString.Char8 (ByteString)
{-# DEPRECATED
localAddress "Deprecated in FDB C API"
#-}
{-# DEPRECATED
clusterFile "Deprecated in FDB C API"
#-}
{-# DEPRECATED
tlsPlugin "Deprecated in FDB C API"
#-}
{-# DEPRECATED
enableSlowTaskProfiling "Deprecated in FDB C API"
#-}
data NetworkOption = NetworkOptionString Int String
| NetworkOptionInt Int Int
| NetworkOptionBytes Int ByteString
| NetworkOptionFlag Int
deriving (Int -> NetworkOption -> ShowS
[NetworkOption] -> ShowS
NetworkOption -> String
(Int -> NetworkOption -> ShowS)
-> (NetworkOption -> String)
-> ([NetworkOption] -> ShowS)
-> Show NetworkOption
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NetworkOption] -> ShowS
$cshowList :: [NetworkOption] -> ShowS
show :: NetworkOption -> String
$cshow :: NetworkOption -> String
showsPrec :: Int -> NetworkOption -> ShowS
$cshowsPrec :: Int -> NetworkOption -> ShowS
Show, ReadPrec [NetworkOption]
ReadPrec NetworkOption
Int -> ReadS NetworkOption
ReadS [NetworkOption]
(Int -> ReadS NetworkOption)
-> ReadS [NetworkOption]
-> ReadPrec NetworkOption
-> ReadPrec [NetworkOption]
-> Read NetworkOption
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NetworkOption]
$creadListPrec :: ReadPrec [NetworkOption]
readPrec :: ReadPrec NetworkOption
$creadPrec :: ReadPrec NetworkOption
readList :: ReadS [NetworkOption]
$creadList :: ReadS [NetworkOption]
readsPrec :: Int -> ReadS NetworkOption
$creadsPrec :: Int -> ReadS NetworkOption
Read, NetworkOption -> NetworkOption -> Bool
(NetworkOption -> NetworkOption -> Bool)
-> (NetworkOption -> NetworkOption -> Bool) -> Eq NetworkOption
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NetworkOption -> NetworkOption -> Bool
$c/= :: NetworkOption -> NetworkOption -> Bool
== :: NetworkOption -> NetworkOption -> Bool
$c== :: NetworkOption -> NetworkOption -> Bool
Eq, Eq NetworkOption
Eq NetworkOption
-> (NetworkOption -> NetworkOption -> Ordering)
-> (NetworkOption -> NetworkOption -> Bool)
-> (NetworkOption -> NetworkOption -> Bool)
-> (NetworkOption -> NetworkOption -> Bool)
-> (NetworkOption -> NetworkOption -> Bool)
-> (NetworkOption -> NetworkOption -> NetworkOption)
-> (NetworkOption -> NetworkOption -> NetworkOption)
-> Ord NetworkOption
NetworkOption -> NetworkOption -> Bool
NetworkOption -> NetworkOption -> Ordering
NetworkOption -> NetworkOption -> NetworkOption
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: NetworkOption -> NetworkOption -> NetworkOption
$cmin :: NetworkOption -> NetworkOption -> NetworkOption
max :: NetworkOption -> NetworkOption -> NetworkOption
$cmax :: NetworkOption -> NetworkOption -> NetworkOption
>= :: NetworkOption -> NetworkOption -> Bool
$c>= :: NetworkOption -> NetworkOption -> Bool
> :: NetworkOption -> NetworkOption -> Bool
$c> :: NetworkOption -> NetworkOption -> Bool
<= :: NetworkOption -> NetworkOption -> Bool
$c<= :: NetworkOption -> NetworkOption -> Bool
< :: NetworkOption -> NetworkOption -> Bool
$c< :: NetworkOption -> NetworkOption -> Bool
compare :: NetworkOption -> NetworkOption -> Ordering
$ccompare :: NetworkOption -> NetworkOption -> Ordering
$cp1Ord :: Eq NetworkOption
Ord)
localAddress :: String -> NetworkOption
localAddress String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
10) String
str
clusterFile :: String -> NetworkOption
clusterFile String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
20) String
str
traceEnable :: String -> NetworkOption
traceEnable String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
30) String
str
traceRollSize :: Int -> NetworkOption
traceRollSize Int
i = Int -> Int -> NetworkOption
NetworkOptionInt (Int
31) Int
i
traceMaxLogsSize :: Int -> NetworkOption
traceMaxLogsSize Int
i = Int -> Int -> NetworkOption
NetworkOptionInt (Int
32) Int
i
traceLogGroup :: String -> NetworkOption
traceLogGroup String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
33) String
str
traceFormat :: String -> NetworkOption
traceFormat String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
34) String
str
traceClockSource :: String -> NetworkOption
traceClockSource String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
35) String
str
traceFileIdentifier :: String -> NetworkOption
traceFileIdentifier String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
36) String
str
tracePartialFileSuffix :: String -> NetworkOption
tracePartialFileSuffix String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
39) String
str
knob :: String -> NetworkOption
knob String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
40) String
str
tlsPlugin :: String -> NetworkOption
tlsPlugin String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
41) String
str
tlsCertBytes :: ByteString -> NetworkOption
tlsCertBytes ByteString
bs = Int -> ByteString -> NetworkOption
NetworkOptionBytes (Int
42) ByteString
bs
tlsCertPath :: String -> NetworkOption
tlsCertPath String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
43) String
str
tlsKeyBytes :: ByteString -> NetworkOption
tlsKeyBytes ByteString
bs = Int -> ByteString -> NetworkOption
NetworkOptionBytes (Int
45) ByteString
bs
tlsKeyPath :: String -> NetworkOption
tlsKeyPath String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
46) String
str
tlsVerifyPeers :: ByteString -> NetworkOption
tlsVerifyPeers ByteString
bs = Int -> ByteString -> NetworkOption
NetworkOptionBytes (Int
47) ByteString
bs
buggifyEnable :: NetworkOption
buggifyEnable = Int -> NetworkOption
NetworkOptionFlag (Int
48)
buggifyDisable :: NetworkOption
buggifyDisable = Int -> NetworkOption
NetworkOptionFlag (Int
49)
buggifySectionActivatedProbability :: Int -> NetworkOption
buggifySectionActivatedProbability Int
i = Int -> Int -> NetworkOption
NetworkOptionInt (Int
50) Int
i
buggifySectionFiredProbability :: Int -> NetworkOption
buggifySectionFiredProbability Int
i = Int -> Int -> NetworkOption
NetworkOptionInt (Int
51) Int
i
tlsCaBytes :: ByteString -> NetworkOption
tlsCaBytes ByteString
bs = Int -> ByteString -> NetworkOption
NetworkOptionBytes (Int
52) ByteString
bs
tlsCaPath :: String -> NetworkOption
tlsCaPath String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
53) String
str
tlsPassword :: String -> NetworkOption
tlsPassword String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
54) String
str
disableMultiVersionClientApi :: NetworkOption
disableMultiVersionClientApi = Int -> NetworkOption
NetworkOptionFlag (Int
60)
callbacksOnExternalThreads :: NetworkOption
callbacksOnExternalThreads = Int -> NetworkOption
NetworkOptionFlag (Int
61)
externalClientLibrary :: String -> NetworkOption
externalClientLibrary String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
62) String
str
externalClientDirectory :: String -> NetworkOption
externalClientDirectory String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
63) String
str
disableLocalClient :: NetworkOption
disableLocalClient = Int -> NetworkOption
NetworkOptionFlag (Int
64)
clientThreadsPerVersion :: Int -> NetworkOption
clientThreadsPerVersion Int
i = Int -> Int -> NetworkOption
NetworkOptionInt (Int
65) Int
i
disableClientStatisticsLogging :: NetworkOption
disableClientStatisticsLogging = Int -> NetworkOption
NetworkOptionFlag (Int
70)
enableSlowTaskProfiling :: NetworkOption
enableSlowTaskProfiling = Int -> NetworkOption
NetworkOptionFlag (Int
71)
enableRunLoopProfiling :: NetworkOption
enableRunLoopProfiling = Int -> NetworkOption
NetworkOptionFlag (Int
71)
clientBuggifyEnable :: NetworkOption
clientBuggifyEnable = Int -> NetworkOption
NetworkOptionFlag (Int
80)
clientBuggifyDisable :: NetworkOption
clientBuggifyDisable = Int -> NetworkOption
NetworkOptionFlag (Int
81)
clientBuggifySectionActivatedProbability :: Int -> NetworkOption
clientBuggifySectionActivatedProbability Int
i
= Int -> Int -> NetworkOption
NetworkOptionInt (Int
82) Int
i
clientBuggifySectionFiredProbability :: Int -> NetworkOption
clientBuggifySectionFiredProbability Int
i = Int -> Int -> NetworkOption
NetworkOptionInt (Int
83) Int
i
distributedClientTracer :: String -> NetworkOption
distributedClientTracer String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
90) String
str
supportedClientVersions :: String -> NetworkOption
supportedClientVersions String
str = Int -> String -> NetworkOption
NetworkOptionString (Int
1000) String
str
externalClient :: NetworkOption
externalClient = Int -> NetworkOption
NetworkOptionFlag (Int
1001)
externalClientTransportId :: Int -> NetworkOption
externalClientTransportId Int
i = Int -> Int -> NetworkOption
NetworkOptionInt (Int
1002) Int
i