Skip to content

TDaemonController

Internal daemon controller class.

Declaration

Source position: daemonapp.pp line 132

type

  TDaemonController = class(TComponent)
  public
    constructor Create;
    destructor Destroy;
    procedure StartService;
    procedure Main;
    procedure Controller;
    function ReportStatus : Boolean;
    property Daemon: TCustomDaemon; {r}
    property Params: TStrings; {r}
    property LastStatus: TCurrentStatus; {r}
    property CheckPoint: DWord; {r}
  end;

Description

TDaemonController is a class that is used by the TDaemonApplication class to control the daemon during runtime. The TDaemonApplication class instantiates an instance of TDaemonController for each daemon in the application and communicates with the daemon through the TDaemonController instance. It should rarely be necessary to access or use this class.

Properties

Member Visibility Description
CheckPoint read only public Send checkpoint signal to the operating system.
Daemon read only public Daemon instance this controller controls.
LastStatus read only public Last reported status.
Params read only public Parameters passed to the daemon.
See all Properties

Methods

Member Visibility Description
Controller public Controller.
Create public Create a new instance of the TDaemonController class.
Destroy public Free a TDaemonController instance.
Main public Daemon main entry point.
ReportStatus public Report the status to the operating system.
StartService public Start the service.
See all Methods

See also

Name Description
TCustomDaemon Base daemon application class.
TDaemonApplication Default descendent of CustomDaemonApplication.