| Copyright | MIT |
|---|---|
| Maintainer | max.voit+hdv@with-eyes.net |
| Portability | non-portable (uses GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Acid.Centered.Slave
Description
The Slave part of a the Centered replication backend for acid state.
- enslaveState :: (IsAcidic st, Typeable st) => String -> PortNumber -> st -> IO (AcidState st)
- enslaveStateFrom :: (IsAcidic st, Typeable st) => FilePath -> String -> PortNumber -> st -> IO (AcidState st)
- enslaveRedState :: (IsAcidic st, Typeable st) => String -> PortNumber -> st -> IO (AcidState st)
- enslaveRedStateFrom :: (IsAcidic st, Typeable st) => FilePath -> String -> PortNumber -> st -> IO (AcidState st)
- data SlaveState st = SlaveState {
- slaveLocalState :: AcidState st
- slaveStateIsRed :: Bool
- slaveStateLock :: MVar ()
- slaveRepFinalizers :: MVar (IntMap (IO ()))
- slaveRepChan :: Chan SlaveRepItem
- slaveSyncDone :: Event
- slaveRevision :: MVar NodeRevision
- slaveRequests :: MVar SlaveRequests
- slaveLastRequestID :: MVar RequestID
- slaveRepThreadId :: MVar ThreadId
- slaveReqThreadId :: MVar ThreadId
- slaveParentThreadId :: ThreadId
- slaveZmqContext :: Context
- slaveZmqAddr :: String
- slaveZmqSocket :: MVar (Socket Dealer)
Documentation
Arguments
| :: (IsAcidic st, Typeable st) | |
| => String | hostname of the Master |
| -> PortNumber | port to connect to |
| -> st | initial state |
| -> IO (AcidState st) |
Open a local State as Slave for a Master.
The directory for the local state files is the default one ("state/[typeOf state]").
Arguments
| :: (IsAcidic st, Typeable st) | |
| => FilePath | location of the local state files. |
| -> String | hostname of the Master |
| -> PortNumber | port to connect to |
| -> st | initial state |
| -> IO (AcidState st) |
Open a local State as Slave for a Master. The directory of the local state files can be specified.
Arguments
| :: (IsAcidic st, Typeable st) | |
| => String | hostname of the Master |
| -> PortNumber | port to connect to |
| -> st | initial state |
| -> IO (AcidState st) |
Open a local State as Slave for a Master.
The directory for the local state files is the default one ("state/[typeOf state]").
Arguments
| :: (IsAcidic st, Typeable st) | |
| => FilePath | location of the local state files. |
| -> String | hostname of the Master |
| -> PortNumber | port to connect to |
| -> st | initial state |
| -> IO (AcidState st) |
Open a local State as Slave for a _redundant_ Master. The directory of the local state files can be specified.
data SlaveState st Source
Slave state structure, for internal use.
Constructors
| SlaveState | |
Fields
| |