Class CompositeDaemon
Represents a daemon that contains other child daemons.
Start/Stop commands translate into child sub-commands.
This class is used to host other services in various job/background process hosts
Inheritance
System.Object
CompositeDaemon
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.dll
Syntax
public class CompositeDaemon : Daemon, IDisposable, IDaemon, IDaemonView, IApplicationComponent, INamed, IConfigurable, ILocalizedTimeProvider
Constructors
CompositeDaemon(IApplicationComponent)
Declaration
public CompositeDaemon(IApplicationComponent director)
Parameters
CompositeDaemon(IApplication)
Declaration
public CompositeDaemon(IApplication application)
Parameters
Fields
CONFIG_ABORT_START_ATTR
Declaration
public const string CONFIG_ABORT_START_ATTR = "abort-start"
Field Value
Type |
Description |
System.String |
|
CONFIG_DAEMON_COMPOSITE_SECTION
Declaration
public const string CONFIG_DAEMON_COMPOSITE_SECTION = "daemon-composite"
Field Value
Type |
Description |
System.String |
|
CONFIG_DAEMON_SECTION
Declaration
public const string CONFIG_DAEMON_SECTION = "daemon"
Field Value
Type |
Description |
System.String |
|
CONFIG_IGNORE_THIS_DAEMON_ATTR
Declaration
public const string CONFIG_IGNORE_THIS_DAEMON_ATTR = "ignore-this-daemon"
Field Value
Type |
Description |
System.String |
|
Properties
ChildServices
Returns service registry where services can be looked-up by name
Declaration
public IOrderedRegistry<CompositeDaemon.ChildDaemon> ChildServices { get; }
Property Value
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Methods
Destructor()
Declaration
protected override void Destructor()
Overrides
DoAcceptManagerVisit(Object, DateTime)
Declaration
protected override void DoAcceptManagerVisit(object manager, DateTime managerNow)
Parameters
Type |
Name |
Description |
System.Object |
manager |
|
System.DateTime |
managerNow |
|
Overrides
DoCheckForCompleteStop()
Declaration
protected override bool DoCheckForCompleteStop()
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
protected override void DoConfigure(IConfigSectionNode node)
Parameters
Overrides
DoSignalStop()
Declaration
protected override void DoSignalStop()
Overrides
DoStart()
Declaration
protected override void DoStart()
Overrides
DoWaitForCompleteStop()
Declaration
protected override void DoWaitForCompleteStop()
Overrides
RegisterService(Daemon, Int32, Boolean)
Returns true if child service was registered, false if it was already registered prior tp this call.
The method may only be called on stopped (this) service
Declaration
public bool RegisterService(Daemon service, int order, bool abortStart)
Parameters
Type |
Name |
Description |
Daemon |
service |
|
System.Int32 |
order |
|
System.Boolean |
abortStart |
|
Returns
Type |
Description |
System.Boolean |
|
UnregisterService(Daemon)
Returns true if child service was unregistered, false if it did not exist.
The method may only be called on stopped (this) service
Declaration
public bool UnregisterService(Daemon service)
Parameters
Type |
Name |
Description |
Daemon |
service |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IDisposable
Extension Methods