PidLockExt

ditto

Members

Functions

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

Cleans up behind and releases the lock file.

filterConfigFiles
istring[] filterConfigFiles(IApplication app, ConfigParser config, istring[] files)

Function to filter the list of configuration files to parse. Only present to satisfy the interface

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

Unused IApplicationExtension methods.

order
int order()

Order set to -1500, as the extension should run after ConfigExt (-10000) but before LogExt (-1000) (as LogExt can create side effects).

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

Unused IApplicationExtension methods.

preParseConfig
void preParseConfig(IApplication app, ConfigParser config)

Unused IConfigExtExtension methods.

preRun
void preRun(IApplication app, istring[] cl_args)

Tries to lock the pid file.

processConfig
void processConfig(IApplication app, ConfigParser config)

Parse the configuration file options to set up the loggers.

Inherited Members

From IConfigExtExtension

preParseConfig
void preParseConfig(IApplication app, ConfigParser config)

Function executed before the configuration files are parsed.

filterConfigFiles
istring[] filterConfigFiles(IApplication app, ConfigParser config, istring[] files)

Function to filter the list of configuration files to parse.

processConfig
void processConfig(IApplication app, ConfigParser config)

Function executed after the configuration files are parsed.

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, istring[] args)

Function executed before the program runs.

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

Function executed after the program runs.

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

Function executed at program exit.

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

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

Meta