Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ZHandle
- data ClientID
- data ZooOp
- data ZooOpResult
- = ZooCreateOpResult CInt CBytes
- | ZooDeleteOpResult CInt
- | ZooSetOpResult CInt Stat
- | ZooCheckOpResult CInt
- data AclVector
- zooOpenAclUnsafe :: AclVector
- zooReadAclUnsafe :: AclVector
- zooCreatorAllAcl :: AclVector
- data ZooAcl = ZooAcl {}
- data HsWatcherCtx = HsWatcherCtx {}
- data VoidCompletion
- data DataCompletion = DataCompletion {
- dataCompletionValue :: Maybe Bytes
- dataCompletionStat :: Stat
- newtype StatCompletion = StatCompletion {}
- newtype StringCompletion = StringCompletion {}
- newtype StringsCompletion = StringsCompletion {}
- data StringsStatCompletion = StringsStatCompletion {}
- data AclCompletion = AclCompletion {}
- data Stat = Stat {
- statCzxid :: !Int64
- statMzxid :: !Int64
- statCtime :: !Int64
- statMtime :: !Int64
- statVersion :: !Int32
- statCversion :: !Int32
- statAversion :: !Int32
- statEphemeralOwner :: !Int64
- statDataLength :: !Int32
- statNumChildren :: !Int32
- statPzxid :: !Int64
- data ZooEvent
- pattern ZooCreateEvent :: ZooEvent
- pattern ZooDeleteEvent :: ZooEvent
- pattern ZooChangedEvent :: ZooEvent
- pattern ZooChildEvent :: ZooEvent
- pattern ZooSessionEvent :: ZooEvent
- pattern ZooNoWatchingEvent :: ZooEvent
- data ZooState
- pattern ZooExpiredSession :: ZooState
- pattern ZooAuthFailed :: ZooState
- pattern ZooConnectingState :: ZooState
- pattern ZooAssociatingState :: ZooState
- pattern ZooConnectedState :: ZooState
- data CreateMode
- pattern ZooPersistent :: CreateMode
- pattern ZooEphemeral :: CreateMode
- pattern ZooSequence :: CreateMode
- pattern ZooPersistentSequential :: CreateMode
- pattern ZooEphemeralSequential :: CreateMode
- pattern ZooContainer :: CreateMode
- pattern ZooPersistentWithTTL :: CreateMode
- pattern ZooPersistentSequentialWithTTL :: CreateMode
- data ZooLogLevel
- pattern ZooLogError :: ZooLogLevel
- pattern ZooLogWarn :: ZooLogLevel
- pattern ZooLogInfo :: ZooLogLevel
- pattern ZooLogDebug :: ZooLogLevel
- data ZooPerm
- pattern ZooPermRead :: ZooPerm
- pattern ZooPermWrite :: ZooPerm
- pattern ZooPermCreate :: ZooPerm
- pattern ZooPermDelete :: ZooPerm
- pattern ZooPermAdmin :: ZooPerm
- pattern ZooPermAll :: ZooPerm
- compactZooPerms :: [ZooPerm] -> ZooPerm
- newtype StringVector = StringVector {}
Documentation
This structure holds all the arguments necessary for one op as part of a
containing multi_op via zooMulti
.
data ZooOpResult Source #
ZooCreateOpResult CInt CBytes | |
ZooDeleteOpResult CInt | |
ZooSetOpResult CInt Stat | |
ZooCheckOpResult CInt |
Instances
Eq ZooOpResult Source # | |
Defined in ZooKeeper.Internal.Types (==) :: ZooOpResult -> ZooOpResult -> Bool (/=) :: ZooOpResult -> ZooOpResult -> Bool | |
Show ZooOpResult Source # | |
Defined in ZooKeeper.Internal.Types showsPrec :: Int -> ZooOpResult -> ShowS show :: ZooOpResult -> String showList :: [ZooOpResult] -> ShowS |
Instances
zooOpenAclUnsafe :: AclVector Source #
This is a completely open ACL
zooReadAclUnsafe :: AclVector Source #
This ACL gives the world the ability to read.
zooCreatorAllAcl :: AclVector Source #
This ACL gives the creators authentication id's all permissions.
data HsWatcherCtx Source #
HsWatcherCtx | |
|
Instances
Show HsWatcherCtx Source # | |
Defined in ZooKeeper.Internal.Types showsPrec :: Int -> HsWatcherCtx -> ShowS show :: HsWatcherCtx -> String showList :: [HsWatcherCtx] -> ShowS |
data VoidCompletion Source #
data DataCompletion Source #
DataCompletion | |
|
Instances
Eq DataCompletion Source # | |
Defined in ZooKeeper.Internal.Types (==) :: DataCompletion -> DataCompletion -> Bool (/=) :: DataCompletion -> DataCompletion -> Bool | |
Show DataCompletion Source # | |
Defined in ZooKeeper.Internal.Types showsPrec :: Int -> DataCompletion -> ShowS show :: DataCompletion -> String showList :: [DataCompletion] -> ShowS |
newtype StatCompletion Source #
Instances
Eq StatCompletion Source # | |
Defined in ZooKeeper.Internal.Types (==) :: StatCompletion -> StatCompletion -> Bool (/=) :: StatCompletion -> StatCompletion -> Bool | |
Show StatCompletion Source # | |
Defined in ZooKeeper.Internal.Types showsPrec :: Int -> StatCompletion -> ShowS show :: StatCompletion -> String showList :: [StatCompletion] -> ShowS |
newtype StringCompletion Source #
Instances
Show StringCompletion Source # | |
Defined in ZooKeeper.Internal.Types showsPrec :: Int -> StringCompletion -> ShowS show :: StringCompletion -> String showList :: [StringCompletion] -> ShowS |
newtype StringsCompletion Source #
Instances
Show StringsCompletion Source # | |
Defined in ZooKeeper.Internal.Types showsPrec :: Int -> StringsCompletion -> ShowS show :: StringsCompletion -> String showList :: [StringsCompletion] -> ShowS |
data StringsStatCompletion Source #
Instances
Show StringsStatCompletion Source # | |
Defined in ZooKeeper.Internal.Types showsPrec :: Int -> StringsStatCompletion -> ShowS show :: StringsStatCompletion -> String showList :: [StringsStatCompletion] -> ShowS |
data AclCompletion Source #
Instances
Show AclCompletion Source # | |
Defined in ZooKeeper.Internal.Types showsPrec :: Int -> AclCompletion -> ShowS show :: AclCompletion -> String showList :: [AclCompletion] -> ShowS |
Stat | |
|
Watch Types
These constants indicate the event that caused the watch event. They are possible values of the first parameter of the watcher callback.
Instances
Eq ZooEvent Source # | |
Show ZooEvent Source # | |
Storable ZooEvent Source # | |
Defined in ZooKeeper.Internal.Types peekElemOff :: Ptr ZooEvent -> Int -> IO ZooEvent pokeElemOff :: Ptr ZooEvent -> Int -> ZooEvent -> IO () peekByteOff :: Ptr b -> Int -> IO ZooEvent pokeByteOff :: Ptr b -> Int -> ZooEvent -> IO () |
pattern ZooCreateEvent :: ZooEvent Source #
A node has been created.
This is only generated by watches on non-existent nodes. These watches
are set using zooWatchExists
.
pattern ZooDeleteEvent :: ZooEvent Source #
A node has been deleted.
This is only generated by watches on nodes. These watches
are set using zooWatchExists
and zooWatchGet
.
pattern ZooChangedEvent :: ZooEvent Source #
A node has changed.
This is only generated by watches on nodes. These watches
are set using zooWatchExists
and zooWatchGet
.
pattern ZooChildEvent :: ZooEvent Source #
pattern ZooSessionEvent :: ZooEvent Source #
A session has been lost.
This is generated when a client loses contact or reconnects with a server.
pattern ZooNoWatchingEvent :: ZooEvent Source #
A watch has been removed.
This is generated when the server for some reason, probably a resource constraint, will no longer watch a node for a client.
State Consts
These constants represent the states of a zookeeper connection. They are possible parameters of the watcher callback.
Instances
Eq ZooState Source # | |
Show ZooState Source # | |
Print ZooState Source # | |
Defined in ZooKeeper.Internal.Types toUTF8BuilderP :: Int -> ZooState -> Builder () # | |
Storable ZooState Source # | |
Defined in ZooKeeper.Internal.Types peekElemOff :: Ptr ZooState -> Int -> IO ZooState pokeElemOff :: Ptr ZooState -> Int -> ZooState -> IO () peekByteOff :: Ptr b -> Int -> IO ZooState pokeByteOff :: Ptr b -> Int -> ZooState -> IO () |
pattern ZooExpiredSession :: ZooState Source #
pattern ZooAuthFailed :: ZooState Source #
pattern ZooConnectingState :: ZooState Source #
pattern ZooAssociatingState :: ZooState Source #
pattern ZooConnectedState :: ZooState Source #
data CreateMode Source #
These modes are used by zoo_create to affect node create.
Instances
Eq CreateMode Source # | |
Defined in ZooKeeper.Internal.Types (==) :: CreateMode -> CreateMode -> Bool (/=) :: CreateMode -> CreateMode -> Bool | |
Show CreateMode Source # | |
Defined in ZooKeeper.Internal.Types showsPrec :: Int -> CreateMode -> ShowS show :: CreateMode -> String showList :: [CreateMode] -> ShowS | |
Storable CreateMode Source # | |
Defined in ZooKeeper.Internal.Types sizeOf :: CreateMode -> Int alignment :: CreateMode -> Int peekElemOff :: Ptr CreateMode -> Int -> IO CreateMode pokeElemOff :: Ptr CreateMode -> Int -> CreateMode -> IO () peekByteOff :: Ptr b -> Int -> IO CreateMode pokeByteOff :: Ptr b -> Int -> CreateMode -> IO () peek :: Ptr CreateMode -> IO CreateMode poke :: Ptr CreateMode -> CreateMode -> IO () |
pattern ZooPersistent :: CreateMode Source #
pattern ZooEphemeral :: CreateMode Source #
The znode will be deleted upon the client's disconnect.
pattern ZooSequence :: CreateMode Source #
pattern ZooPersistentSequential :: CreateMode Source #
pattern ZooEphemeralSequential :: CreateMode Source #
pattern ZooContainer :: CreateMode Source #
pattern ZooPersistentWithTTL :: CreateMode Source #
pattern ZooPersistentSequentialWithTTL :: CreateMode Source #
data ZooLogLevel Source #
Instances
Eq ZooLogLevel Source # | |
Defined in ZooKeeper.Internal.Types (==) :: ZooLogLevel -> ZooLogLevel -> Bool (/=) :: ZooLogLevel -> ZooLogLevel -> Bool | |
Show ZooLogLevel Source # | |
Defined in ZooKeeper.Internal.Types showsPrec :: Int -> ZooLogLevel -> ShowS show :: ZooLogLevel -> String showList :: [ZooLogLevel] -> ShowS | |
Storable ZooLogLevel Source # | |
Defined in ZooKeeper.Internal.Types sizeOf :: ZooLogLevel -> Int alignment :: ZooLogLevel -> Int peekElemOff :: Ptr ZooLogLevel -> Int -> IO ZooLogLevel pokeElemOff :: Ptr ZooLogLevel -> Int -> ZooLogLevel -> IO () peekByteOff :: Ptr b -> Int -> IO ZooLogLevel pokeByteOff :: Ptr b -> Int -> ZooLogLevel -> IO () peek :: Ptr ZooLogLevel -> IO ZooLogLevel poke :: Ptr ZooLogLevel -> ZooLogLevel -> IO () |
pattern ZooLogError :: ZooLogLevel Source #
pattern ZooLogWarn :: ZooLogLevel Source #
pattern ZooLogInfo :: ZooLogLevel Source #
pattern ZooLogDebug :: ZooLogLevel Source #
ACL permissions.
Instances
Eq ZooPerm Source # | |
Show ZooPerm Source # | |
Bits ZooPerm Source # | |
Defined in ZooKeeper.Internal.Types (.&.) :: ZooPerm -> ZooPerm -> ZooPerm (.|.) :: ZooPerm -> ZooPerm -> ZooPerm xor :: ZooPerm -> ZooPerm -> ZooPerm complement :: ZooPerm -> ZooPerm shift :: ZooPerm -> Int -> ZooPerm rotate :: ZooPerm -> Int -> ZooPerm setBit :: ZooPerm -> Int -> ZooPerm clearBit :: ZooPerm -> Int -> ZooPerm complementBit :: ZooPerm -> Int -> ZooPerm testBit :: ZooPerm -> Int -> Bool bitSizeMaybe :: ZooPerm -> Maybe Int shiftL :: ZooPerm -> Int -> ZooPerm unsafeShiftL :: ZooPerm -> Int -> ZooPerm shiftR :: ZooPerm -> Int -> ZooPerm unsafeShiftR :: ZooPerm -> Int -> ZooPerm rotateL :: ZooPerm -> Int -> ZooPerm |
pattern ZooPermRead :: ZooPerm Source #
pattern ZooPermWrite :: ZooPerm Source #
pattern ZooPermCreate :: ZooPerm Source #
pattern ZooPermDelete :: ZooPerm Source #
pattern ZooPermAdmin :: ZooPerm Source #
pattern ZooPermAll :: ZooPerm Source #
compactZooPerms :: [ZooPerm] -> ZooPerm Source #
newtype StringVector Source #
Instances
Show StringVector Source # | |
Defined in ZooKeeper.Internal.Types showsPrec :: Int -> StringVector -> ShowS show :: StringVector -> String showList :: [StringVector] -> ShowS |