C# Класс ServiceStack.Redis.RedisSentinel

Наследование: IRedisSentinel
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DefaultAddress string
DefaultMasterName string

Защищенные свойства (Protected)

Свойство Тип Описание
Log ILog

Private Properties

Свойство Тип Описание
ConfigureHosts string[]
CreateRedisManager IRedisClientsManager
GetNextSentinel RedisSentinelWorker
GetValidSentinelWorker RedisSentinelWorker
OnSentinelError void
ShouldRetry bool

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

ForceMasterFailover() публичный Метод

public ForceMasterFailover ( ) : void
Результат void

GetActiveSentinelHosts() публичный Метод

public GetActiveSentinelHosts ( IEnumerable sentinelHosts ) : List
sentinelHosts IEnumerable
Результат List

GetMaster() публичный Метод

public GetMaster ( ) : RedisEndpoint
Результат RedisEndpoint

GetRedisManager() публичный Метод

public GetRedisManager ( ) : IRedisClientsManager
Результат IRedisClientsManager

GetSentinelInfo() публичный Метод

public GetSentinelInfo ( ) : SentinelInfo
Результат SentinelInfo

GetSlaves() публичный Метод

public GetSlaves ( ) : List
Результат List

RedisSentinel() публичный Метод

public RedisSentinel ( IEnumerable sentinelHosts, string masterName = null ) : System
sentinelHosts IEnumerable
masterName string
Результат System

RedisSentinel() публичный Метод

public RedisSentinel ( string sentinelHost = null, string masterName = null ) : System
sentinelHost string
masterName string
Результат System

RefreshActiveSentinels() публичный Метод

public RefreshActiveSentinels ( ) : void
Результат void

ResetClients() публичный Метод

public ResetClients ( ) : SentinelInfo
Результат SentinelInfo

Start() публичный Метод

Initialize Sentinel Subscription and Configure Redis ClientsManager
public Start ( ) : IRedisClientsManager
Результат IRedisClientsManager

Описание свойств

DefaultAddress публичное статическое свойство

public static string DefaultAddress
Результат string

DefaultMasterName публичное статическое свойство

public static string DefaultMasterName
Результат string

Log защищенное статическое свойство

protected static ILog Log
Результат ILog