acid-state-dist-0.1.0.0: Replication backend for acid-state

CopyrightMIT
Maintainermax.voit+hdv@with-eyes.net
Portabilitynon-portable (uses GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Data.Acid.Centered.Slave

Description

The Slave part of a the Centered replication backend for acid state.

Synopsis

Documentation

enslaveState Source

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]").

enslaveStateFrom Source

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.

enslaveRedState Source

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]").

enslaveRedStateFrom Source

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