C# 클래스 GSF.Snap.Services.SnapServer

Hosts all of the components of a SortedTreeStore.
A centralized server hosting model for a SortedTreeStore. This class contains all of the databases, client connections, sockets, user authentication, and core settings for the SortedTreeStore.
상속: GSF.Diagnostics.DisposableLoggingClassBase
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian 1 사용 예제들

공개 메소드들

메소드 설명
AddDatabase ( IToServerDatabaseSettings databaseConfig ) : void
AddDatabase ( ServerDatabaseSettings databaseConfig ) : void

Adds a database to the server

AddSocketListener ( SnapSocketListenerSettings socketSettings ) : void

Adds the socket interface to the database

GetFullStatus ( StringBuilder status ) : void

Gets the status of the server.

RemoveDatabase ( string database ) : void

Unloads the database name.

SnapServer ( ) : System

Creates an empty server instance

SnapServer ( IToServerDatabaseSettings settings ) : System

Creates a new instance of SnapServer and adds the supplied database

SnapServer ( IToServerSettings settings ) : System

Creates a new instance of SnapServer

UnloadSocket ( IPEndPoint socketEndpoint ) : void

Unloads the specified socket interface.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the SnapServer object and optionally releases the managed resources.

비공개 메소드들

메소드 설명
Contains ( string databaseName ) : bool

Determines if databaseName is contained in the database.

GetDatabase ( string databaseName ) : SnapServerDatabaseBase

Gets the database that matches databaseName

GetDatabaseInfo ( ) : List

Gets basic information for every database connected to the server.

RegisterClient ( Client client ) : void

Registers a client with the server host.

UnRegisterClient ( Client client ) : void

UnRegisters a client with the server host.

메소드 상세

AddDatabase() 공개 메소드

public AddDatabase ( IToServerDatabaseSettings databaseConfig ) : void
databaseConfig IToServerDatabaseSettings
리턴 void

AddDatabase() 공개 메소드

Adds a database to the server
public AddDatabase ( ServerDatabaseSettings databaseConfig ) : void
databaseConfig ServerDatabaseSettings
리턴 void

AddSocketListener() 공개 메소드

Adds the socket interface to the database
public AddSocketListener ( SnapSocketListenerSettings socketSettings ) : void
socketSettings SnapSocketListenerSettings the config data for the socket listener
리턴 void

Dispose() 보호된 메소드

Releases the unmanaged resources used by the SnapServer object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

GetFullStatus() 공개 메소드

Gets the status of the server.
public GetFullStatus ( StringBuilder status ) : void
status StringBuilder
리턴 void

RemoveDatabase() 공개 메소드

Unloads the database name.
public RemoveDatabase ( string database ) : void
database string
리턴 void

SnapServer() 공개 메소드

Creates an empty server instance
public SnapServer ( ) : System
리턴 System

SnapServer() 공개 메소드

Creates a new instance of SnapServer and adds the supplied database
public SnapServer ( IToServerDatabaseSettings settings ) : System
settings IToServerDatabaseSettings
리턴 System

SnapServer() 공개 메소드

Creates a new instance of SnapServer
public SnapServer ( IToServerSettings settings ) : System
settings IToServerSettings
리턴 System

UnloadSocket() 공개 메소드

Unloads the specified socket interface.
public UnloadSocket ( IPEndPoint socketEndpoint ) : void
socketEndpoint System.Net.IPEndPoint
리턴 void