Unit 'daemonapp' Package
[Overview][Resource strings][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TDaemonController

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Internal daemon controller class.

Declaration

Source position: daemonapp.pp line 132

type TDaemonController = class(TComponent)

public

  constructor Create(); override;

  

Create a new instance of the TDaemonController class.

  destructor Destroy; override;

  

Free a TDaemonController instance.

  procedure StartService; virtual;

  

Start the service.

  procedure Main(); virtual;

  

Daemon main entry point.

  procedure Controller(); virtual;

  

Controller.

  function ReportStatus; virtual;

  

Report the status to the operating system.

  property Daemon: TCustomDaemon; [r]

  

Daemon instance this controller controls.

  property Params: TStrings; [r]

  

Parameters passed to the daemon.

  property LastStatus: TCurrentStatus; [r]

  

Last reported status.

  property CheckPoint: DWord; [r]

  

Send checkpoint signal to the operating system.

end;

Inheritance

TDaemonController

  

Internal daemon controller class.

|

TComponent

|

TPersistent,IInterfaceComponentReference

|

TObject,IFPObserved

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.

See also

TCustomDaemon

  

Base daemon application class.

TDaemonApplication

  

Default descendent of CustomDaemonApplication.


Documentation generated on: Nov 22 2024