C# Class ServiceStack.Redis.RedisSentinel

Inheritance: IRedisSentinel
Afficher le fichier Open project: ServiceStack/ServiceStack.Redis Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultAddress string
DefaultMasterName string

Protected Properties

Свойство Type Description
Log ILog

Private Properties

Свойство Type Description
ConfigureHosts string[]
CreateRedisManager IRedisClientsManager
GetNextSentinel RedisSentinelWorker
GetValidSentinelWorker RedisSentinelWorker
OnSentinelError void
ShouldRetry bool

Méthodes publiques

Méthode Description
Dispose ( ) : void
ForceMasterFailover ( ) : void
GetActiveSentinelHosts ( IEnumerable sentinelHosts ) : List
GetMaster ( ) : RedisEndpoint
GetRedisManager ( ) : IRedisClientsManager
GetSentinelInfo ( ) : SentinelInfo
GetSlaves ( ) : List
RedisSentinel ( IEnumerable sentinelHosts, string masterName = null ) : System
RedisSentinel ( string sentinelHost = null, string masterName = null ) : System
RefreshActiveSentinels ( ) : void
ResetClients ( ) : SentinelInfo
Start ( ) : IRedisClientsManager

Initialize Sentinel Subscription and Configure Redis ClientsManager

Private Methods

Méthode Description
ConfigureHosts ( IEnumerable hosts ) : string[]
CreateRedisManager ( SentinelInfo sentinelInfo ) : IRedisClientsManager
GetNextSentinel ( ) : RedisSentinelWorker
GetValidSentinelWorker ( ) : RedisSentinelWorker
OnSentinelError ( Exception ex ) : void
ShouldRetry ( ) : bool

Check if GetValidSentinel should try the next sentinel server

This will be true if the failures is less than either RedisSentinel.MaxFailures or the # of sentinels, whatever is greater

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ForceMasterFailover() public méthode

public ForceMasterFailover ( ) : void
Résultat void

GetActiveSentinelHosts() public méthode

public GetActiveSentinelHosts ( IEnumerable sentinelHosts ) : List
sentinelHosts IEnumerable
Résultat List

GetMaster() public méthode

public GetMaster ( ) : RedisEndpoint
Résultat RedisEndpoint

GetRedisManager() public méthode

public GetRedisManager ( ) : IRedisClientsManager
Résultat IRedisClientsManager

GetSentinelInfo() public méthode

public GetSentinelInfo ( ) : SentinelInfo
Résultat SentinelInfo

GetSlaves() public méthode

public GetSlaves ( ) : List
Résultat List

RedisSentinel() public méthode

public RedisSentinel ( IEnumerable sentinelHosts, string masterName = null ) : System
sentinelHosts IEnumerable
masterName string
Résultat System

RedisSentinel() public méthode

public RedisSentinel ( string sentinelHost = null, string masterName = null ) : System
sentinelHost string
masterName string
Résultat System

RefreshActiveSentinels() public méthode

public RefreshActiveSentinels ( ) : void
Résultat void

ResetClients() public méthode

public ResetClients ( ) : SentinelInfo
Résultat SentinelInfo

Start() public méthode

Initialize Sentinel Subscription and Configure Redis ClientsManager
public Start ( ) : IRedisClientsManager
Résultat IRedisClientsManager

Property Details

DefaultAddress public_oe static_oe property

public static string DefaultAddress
Résultat string

DefaultMasterName public_oe static_oe property

public static string DefaultMasterName
Résultat string

Log protected_oe static_oe property

protected static ILog Log
Résultat ILog