C# Class Stumps.Server.StumpsHost

A class that represents a multitenant host of Stumps servers.
Inheritance: IStumpsHost
ファイルを表示 Open project: Cayan-LLC/stumps Class Usage Examples

Public Methods

Method Description
CreateServerInstance ( string remoteServerHostName, int port, bool useSsl, bool autoStart ) : StumpsServerInstance

Creates a new instance of a Stumps server.

DeleteServerInstance ( string serverId ) : void

Deletes an existing Stumps server.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FindAll ( ) : IList

Finds all Stumps servers hosted by the current instance.

FindServer ( string serverId ) : StumpsServerInstance

Finds the Stumps server with the specified identifier.

A null value is returned if a Stumps server with the specified serverId is not found.

Load ( ) : void

Loads all Stumps servers from the data store.

Shutdown ( ) : void

Shuts down this instance and all started Stumps servers.

Shutdown ( string serverId ) : void

Shut down the specified Stumps server.

Start ( ) : void

Starts all Stumps servers that are not currently running.

Start ( string serverId ) : void

Starts the Stumps server with the specified unique identifier.

StumpsHost ( IServerFactory serverFactory, IDataAccess dataAccess ) : System

Initializes a new instance of the T:Stumps.Server.StumpsHost class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Method Description
UnwrapAndRegisterServer ( ServerEntity entity ) : void

Method Details

CreateServerInstance() public method

Creates a new instance of a Stumps server.
is null. exceeds the allowed TCP port range. The port is already in use.
public CreateServerInstance ( string remoteServerHostName, int port, bool useSsl, bool autoStart ) : StumpsServerInstance
remoteServerHostName string The host name for the remote server by the Stumps server.
port int The TCP port used to listen for incomming HTTP requests.
useSsl bool true if the remote server requires SSL.
autoStart bool true to automatically start the Stumps server.
return StumpsServerInstance

DeleteServerInstance() public method

Deletes an existing Stumps server.
is null.
public DeleteServerInstance ( string serverId ) : void
serverId string The unique identifier for the Stumps server.
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

FindAll() public method

Finds all Stumps servers hosted by the current instance.
public FindAll ( ) : IList
return IList

FindServer() public method

Finds the Stumps server with the specified identifier.
A null value is returned if a Stumps server with the specified serverId is not found.
public FindServer ( string serverId ) : StumpsServerInstance
serverId string The unique identifier for the Stumps server.
return StumpsServerInstance

Load() public method

Loads all Stumps servers from the data store.
public Load ( ) : void
return void

Shutdown() public method

Shuts down this instance and all started Stumps servers.
public Shutdown ( ) : void
return void

Shutdown() public method

Shut down the specified Stumps server.
is null.
public Shutdown ( string serverId ) : void
serverId string The unique identifier for the Stumps server.
return void

Start() public method

Starts all Stumps servers that are not currently running.
public Start ( ) : void
return void

Start() public method

Starts the Stumps server with the specified unique identifier.
is null.
public Start ( string serverId ) : void
serverId string The unique identifier for the Stumps server.
return void

StumpsHost() public method

Initializes a new instance of the T:Stumps.Server.StumpsHost class.
/// is null. /// or /// is null. ///
public StumpsHost ( IServerFactory serverFactory, IDataAccess dataAccess ) : System
serverFactory IServerFactory The factory used to initialize new server instances.
dataAccess IDataAccess The data access provider used by the instance.
return System