SignalExt

Undocumented in source.

Constructors

this
this(int[] signals, int[] ignore_signals)

Constructor. Creates the internal signal event, handling the specified signals. The event (accessible via the event() method) must be registered with epoll.

Members

Functions

atExit
void atExit(IApplication app, string[] args, int status, ExitException exception)

atExit IApplicationExtension method.

ignore
void ignore(int[] signals)

Ignores the signals.

onExitException
ExitException onExitException(IApplication app, string[] args, ExitException exception)

Unused IApplicationExtension methods.

order
int order()

Extension order. This extension uses -2_000 because it should be called before the LogExt and StatsExt.

postRun
void postRun(IApplication app, string[] args, int status)

Unused IApplicationExtension methods.

preRun
void preRun(IApplication app, string[] args)

Unused IApplicationExtension methods.

register
typeof(this) register(int signal)

Adds the specified signal to the set of signals handled by this extension.

selectClient
ISelectClient selectClient()

ISelectClient getter, for registering with epoll.

Mixins

__anonymous
mixin ExtensibleClassMixin!(ISignalExtExtension)

Adds a list of extensions (this.extensions) and methods to handle them. See ExtensibleClassMixin documentation for details.

Mixed In Members

From mixin ExtensibleClassMixin!(ISignalExtExtension)

extensions
ExtensionClass[] extensions;

List of extensions. Will be kept sorted by extension order when using the registerExtension() method.

registerExtension
void registerExtension(ExtensionClass ext)

Register a new extension, keeping extensions list sorted.

getExtension
Ext getExtension()

Get an extension based on its type.

Inherited Members

From IApplicationExtension

IApplication
alias IApplication = .IApplication

Alias of IApplication, for use by implementing classes without needing to import ocean.util.app.model.IApplication.

preRun
void preRun(IApplication app, string[] args)

Function executed before the program runs.

postRun
void postRun(IApplication app, string[] args, int status)

Function executed after the program runs.

atExit
void atExit(IApplication app, string[] args, int status, ExitException exception)

Function executed at program exit.

onExitException
ExitException onExitException(IApplication app, string[] args, ExitException exception)

Function executed if (and only if) an ExitException was thrown.

Meta