C# Class NRack.Base.AppServer

Inheritance: IAppServer
Exibir arquivo Open project: kerryjiang/NRack

Public Methods

Method Description
CanBeRecycled ( ) : bool
GetFilePath ( string relativeFilePath ) : string

Gets the physical file path by the relative file path, search both in the appserver's root and in the NRack root dir if the isolation level has been set other than 'None'.

GetMetadata ( ) : AppServerMetadata
Start ( ) : bool
Stop ( ) : void

Protected Methods

Method Description
GetCompositionContainer ( IServerConfig config ) : System.ComponentModel.Composition.Hosting.CompositionContainer
OnPreStart ( ) : void
OnPreStop ( ) : void
OnStarted ( ) : void
OnStatusCollected ( StatusInfoCollection status ) : void

Called when [status collected].

OnStopped ( ) : void
RegisterCompositeTarget ( IList targets ) : void
Setup ( IServerConfig config, System.ComponentModel.Composition.Hosting.ExportProvider exportProvider ) : bool
UpdateStatus ( StatusInfoCollection status ) : void

Private Methods

Method Description
Composite ( IServerConfig config ) : bool
IManagedApp ( IBootstrap bootstrap, IServerConfig config ) : bool
IManagedAppBase ( ) : StatusInfoCollection
IManagedAppBase ( ) : bool
IManagedAppBase ( ) : void

Method Details

CanBeRecycled() public method

public CanBeRecycled ( ) : bool
return bool

GetCompositionContainer() protected method

protected GetCompositionContainer ( IServerConfig config ) : System.ComponentModel.Composition.Hosting.CompositionContainer
config IServerConfig
return System.ComponentModel.Composition.Hosting.CompositionContainer

GetFilePath() public method

Gets the physical file path by the relative file path, search both in the appserver's root and in the NRack root dir if the isolation level has been set other than 'None'.
public GetFilePath ( string relativeFilePath ) : string
relativeFilePath string The relative file path.
return string

GetMetadata() public method

public GetMetadata ( ) : AppServerMetadata
return AppServerMetadata

OnPreStart() protected method

protected OnPreStart ( ) : void
return void

OnPreStop() protected method

protected OnPreStop ( ) : void
return void

OnStarted() protected method

protected OnStarted ( ) : void
return void

OnStatusCollected() protected method

Called when [status collected].
protected OnStatusCollected ( StatusInfoCollection status ) : void
status StatusInfoCollection The app status.
return void

OnStopped() protected method

protected OnStopped ( ) : void
return void

RegisterCompositeTarget() protected method

protected RegisterCompositeTarget ( IList targets ) : void
targets IList
return void

Setup() protected method

protected Setup ( IServerConfig config, System.ComponentModel.Composition.Hosting.ExportProvider exportProvider ) : bool
config IServerConfig
exportProvider System.ComponentModel.Composition.Hosting.ExportProvider
return bool

Start() public abstract method

public abstract Start ( ) : bool
return bool

Stop() public abstract method

public abstract Stop ( ) : void
return void

UpdateStatus() protected method

protected UpdateStatus ( StatusInfoCollection status ) : void
status StatusInfoCollection
return void