C# 클래스 ServiceStack.Redis.RedisSentinel

상속: IRedisSentinel
파일 보기 프로젝트 열기: ServiceStack/ServiceStack.Redis 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultAddress string
DefaultMasterName string

보호된 프로퍼티들

프로퍼티 타입 설명
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