C# Class Dev2.ServerLifecycleManager

PBI 5278 Application Server Life-cycle Manager Facilitates start-up, execution and tear-down of the application server.
Inheritance: IDisposable
显示文件 Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Public facing implementation of the Dispose interface

Private Methods

Method Description
CleanupServer ( ) : bool

Performs all necessary cleanup such that the server is gracefully moved to a state that does not allow workflow execution.

ConfigureLoggging ( ) : bool
DeleteTempFiles ( ) : void
DeleteTempFiles ( string tempPath ) : void
Dispose ( bool disposing ) : void

Proper dispose pattern implementation to ensure Application Server is terminated correctly, even from finalizer.

EnsureRunningAsAdministrator ( string arguments ) : bool
Fail ( string message, Exception e ) : void

Executes each workflow contained in the group indicated by groupName in the same order that they were specified in the configuration file.

Fail ( string message, string details = "" ) : void
GcmEntryPoint ( ) : void
InitializeCommandLineArguments ( ) : void
InitializeServer ( ) : bool

Performs all necessary initialization such that the server is in a state that allows workflow execution.

IsElevated ( ) : bool
LoadConfiguration ( XmlDocument document ) : bool
LoadConfiguration ( string filePath ) : bool

Reads the configuration file and records the entries in class level fields.

LoadExternalDependencies ( ) : bool

Loads any external dependencies specified in the configuration file into the current AppDomain.

LoadHostSecurityProvider ( ) : bool
LoadReferences ( Assembly asm, HashSet inspected ) : void

Loads the assemblies that are referenced by the input assembly, but only if that assembly has not already been inspected.

LoadResourceCatalog ( ) : bool

LoadServerWorkspace ( ) : bool
LoadSettingsProvider ( ) : bool

PBI 1018 - Loads the settings provider.

LogException ( Exception ex ) : void
Main ( string arguments ) : int

Entry Point for application server.

MigrateOldResources ( ) : void
MigrateResources ( string oldResourceFolder ) : void
PerformTimerActions ( object state ) : void
PreloadReferences ( ) : bool

Ensures all external dependencies have been loaded, then loads all referenced assemblies by the currently executing assembly, and recursively loads each of the referenced assemblies of the initial dependency set until all dependencies have been loaded.

ProcessAssemblyReferenceGroup ( XmlNode section ) : bool

Transforms AssemblyReferenceGroup nodes into AssemblyReference objects.

ProcessGcManager ( XmlNode section ) : bool
ProcessWorkflowGroup ( XmlNode section ) : bool

Transforms WorkflowGroup nodes into WorkflowEntry objects.

ReadBooleanSection ( XmlNode section, string sectionName, bool &result, bool &setter ) : bool
Run ( bool interactiveMode ) : int

Runs the application server, and handles all initialization, execution and cleanup logic required.

RunMain ( string arguments ) : int
ServerLifecycleManager ( string arguments ) : System

Constructors an instance of the ServerLifecycleManager class, ServerLifecycleManager is essentially a singleton but implemented as an instance type to ensure proper finalization occurs.

ServerLoop ( bool interactiveMode ) : int
SetStarted ( ) : void
SetWorkingDirectory ( ) : bool
SetupTempCleanupSetting ( ) : void
StartGcManager ( ) : bool
StartPulseLogger ( ) : void
StartWebServer ( ) : bool
Stop ( bool didBreak, int result ) : int
TerminateGcManager ( ) : void
UnloadSettingsProvider ( ) : void
ValidatResourceFolder ( ) : void
Write ( string message ) : void
WriteLine ( string message ) : void

Method Details

Dispose() public method

Public facing implementation of the Dispose interface
public Dispose ( ) : void
return void