C# Class Shastra.Hydra.Messaging.Storage.PollingProviderBase

Inheritance: IProvider, IDisposable
Afficher le fichier Open project: NorthNick/hydra

Protected Properties

Свойство Type Description
Distances ServerDistance
StoreDict IStore>.Dictionary

Méthodes publiques

Méthode Description
Dispose ( ) : void
GetStore ( bool waitForInitialisation ) : IStore

Fetches the current store to use for polling.

ServerError ( string server ) : void

Called by listener or sender when they cannot contact a server.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
FinishedInitialisation ( ) : void
InitDistance ( IEnumerable servers ) : void
MeasureDistance ( string server ) : ServerDistanceInfo
OnDistanceInfo ( ServerDistanceInfo sdi ) : void
PollingProviderBase ( IEnumerable stores ) : System

Initialise messaging. Must be called before any attempt to send or listen.

PollingProviderBase ( IEnumerable hydraServers, string database = null, int port = null ) : System

Initialise messaging. Must be called before any attempt to send or listen.

PollingProviderBase ( string hydraServer, string database = null, int port = null ) : System

Initialise messaging. Must be called before any attempt to send or listen.

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

FinishedInitialisation() protected méthode

protected FinishedInitialisation ( ) : void
Résultat void

GetStore() public méthode

Fetches the current store to use for polling.
public GetStore ( bool waitForInitialisation ) : IStore
waitForInitialisation bool Whether to block until the IProvider is fully initialised
Résultat IStore

InitDistance() protected méthode

protected InitDistance ( IEnumerable servers ) : void
servers IEnumerable
Résultat void

MeasureDistance() protected méthode

protected MeasureDistance ( string server ) : ServerDistanceInfo
server string
Résultat ServerDistanceInfo

OnDistanceInfo() protected méthode

protected OnDistanceInfo ( ServerDistanceInfo sdi ) : void
sdi ServerDistanceInfo
Résultat void

PollingProviderBase() protected méthode

Initialise messaging. Must be called before any attempt to send or listen.
protected PollingProviderBase ( IEnumerable stores ) : System
stores IEnumerable Hydra stores to communicate with
Résultat System

PollingProviderBase() protected méthode

Initialise messaging. Must be called before any attempt to send or listen.
protected PollingProviderBase ( IEnumerable hydraServers, string database = null, int port = null ) : System
hydraServers IEnumerable Hydra servers to communicate with
database string Name of the messaging database. Defaults to "hydra"
port int Port number of the messaging database. Defaults to 5984
Résultat System

PollingProviderBase() protected méthode

Initialise messaging. Must be called before any attempt to send or listen.
protected PollingProviderBase ( string hydraServer, string database = null, int port = null ) : System
hydraServer string Hydra server to communicate with
database string Name of the messaging database. Defaults to "hydra"
port int Port number of the messaging database. Defaults to 5984
Résultat System

ServerError() public méthode

Called by listener or sender when they cannot contact a server.
public ServerError ( string server ) : void
server string The server that could not be contacted
Résultat void

Property Details

Distances protected_oe property

protected ServerDistance Distances
Résultat ServerDistance

StoreDict protected_oe property

protected Dictionary StoreDict
Résultat IStore>.Dictionary