distributed-process-supervisor-0.2.1: Supervisors for The Cloud Haskell Application Platform

Copyright(c) Tim Watson 2017
LicenseBSD3 (see the file LICENSE)
MaintainerTim Watson <watson.timothy@gmail.com>
Stabilityexperimental
Portabilitynon-portable (requires concurrency)
Safe HaskellNone
LanguageHaskell98

Control.Distributed.Process.Supervisor.Management

Contents

Description

 

Synopsis

Documentation

supervisionAgentId :: MxAgentId Source #

The MxAgentId for the node monitoring agent.

supervisionMonitor :: Process ProcessId Source #

Starts the supervision monitoring agent.

monitorSupervisor :: SupervisorPid -> Process (ReceivePort MxSupervisor) Source #

Monitor the supervisor for the given pid. Binds a typed channel to the calling process, to which the resulting ReceivePort belongs.

Multiple monitors can be created for any calling process - sup pair. Each monitor maintains its own typed channel, which will only contain MxSupervisor entries obtained after the channel was established.

unmonitorSupervisor :: SupervisorPid -> Process () Source #

Removes all monitors for sup, associated with the calling process. It is not possible to delete individual monitors (i.e. typed channels).

Mx Event Type

data MxSupervisor Source #

Supervisor event data published to the management API

Instances

Show MxSupervisor Source # 
Generic MxSupervisor Source # 

Associated Types

type Rep MxSupervisor :: * -> * #

Binary MxSupervisor Source # 
NFData MxSupervisor Source # 

Methods

rnf :: MxSupervisor -> () #

type Rep MxSupervisor Source # 
type Rep MxSupervisor = D1 * (MetaData "MxSupervisor" "Control.Distributed.Process.Supervisor.Types" "distributed-process-supervisor-0.2.1-AH9ECMQQeTrGdZ84BFdlQ8" False) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "SupervisorBranchRestarted" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "supervisorPid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * SupervisorPid)) (S1 * (MetaSel (Just Symbol "childSpecKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ChildKey))) ((:*:) * (S1 * (MetaSel (Just Symbol "diedReason") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * DiedReason)) (S1 * (MetaSel (Just Symbol "branchStrategy") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * RestartStrategy))))) (C1 * (MetaCons "SupervisedChildRestarting" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "supervisorPid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * SupervisorPid)) (S1 * (MetaSel (Just Symbol "childInScope") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe ChildPid)))) ((:*:) * (S1 * (MetaSel (Just Symbol "childSpecKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ChildKey)) (S1 * (MetaSel (Just Symbol "exitReason") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ExitReason)))))) ((:+:) * (C1 * (MetaCons "SupervisedChildStarted" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "supervisorPid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * SupervisorPid)) ((:*:) * (S1 * (MetaSel (Just Symbol "childRef") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ChildRef)) (S1 * (MetaSel (Just Symbol "childSpecKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ChildKey))))) (C1 * (MetaCons "SupervisedChildStartFailure" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "supervisorPid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * SupervisorPid)) ((:*:) * (S1 * (MetaSel (Just Symbol "startFailure") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * StartFailure)) (S1 * (MetaSel (Just Symbol "childSpecKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ChildKey))))))) ((:+:) * ((:+:) * (C1 * (MetaCons "SupervisedChildDied" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "supervisorPid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * SupervisorPid)) ((:*:) * (S1 * (MetaSel (Just Symbol "childPid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ChildPid)) (S1 * (MetaSel (Just Symbol "exitReason") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ExitReason))))) (C1 * (MetaCons "SupervisedChildInitFailed" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "supervisorPid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * SupervisorPid)) ((:*:) * (S1 * (MetaSel (Just Symbol "childPid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ChildPid)) (S1 * (MetaSel (Just Symbol "initFailure") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ChildInitFailure)))))) ((:+:) * (C1 * (MetaCons "SupervisedChildStopped" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "supervisorPid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * SupervisorPid)) ((:*:) * (S1 * (MetaSel (Just Symbol "childRef") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ChildRef)) (S1 * (MetaSel (Just Symbol "diedReason") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * DiedReason))))) (C1 * (MetaCons "SupervisorShutdown" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "supervisorPid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * SupervisorPid)) ((:*:) * (S1 * (MetaSel (Just Symbol "shutdownMode") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ShutdownMode)) (S1 * (MetaSel (Just Symbol "exitRason") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ExitReason))))))))