C# Class winsw.Plugins.RunawayProcessKiller.RunawayProcessKillerExtension

Inheritance: AbstractWinSWExtension
Mostrar archivo Open project: kohsuke/winsw

Private Properties

Property Type Description

Public Methods

Method Description
Configure ( ServiceDescriptor descriptor, XmlNode node ) : void
OnProcessStarted ( System process ) : void

Records the started process PID for the future use in OnStart() after the restart.

OnWrapperStarted ( ) : void

This method checks if the PID file is stored on the disk and then terminates runaway processes if they exist.

RunawayProcessKillerExtension ( ) : System
RunawayProcessKillerExtension ( String pidfile ) : System

Method Details

Configure() public method

public Configure ( ServiceDescriptor descriptor, XmlNode node ) : void
descriptor ServiceDescriptor
node System.Xml.XmlNode
return void

OnProcessStarted() public method

Records the started process PID for the future use in OnStart() after the restart.
public OnProcessStarted ( System process ) : void
process System
return void

OnWrapperStarted() public method

This method checks if the PID file is stored on the disk and then terminates runaway processes if they exist.
public OnWrapperStarted ( ) : void
return void

RunawayProcessKillerExtension() public method

public RunawayProcessKillerExtension ( ) : System
return System

RunawayProcessKillerExtension() public method

public RunawayProcessKillerExtension ( String pidfile ) : System
pidfile String
return System