C# Class ServiceStack.Redis.RedisSentinelWorker

Inheritance: IDisposable
Exibir arquivo Open project: ServiceStack/ServiceStack.Redis Class Usage Examples

Public Properties

Property Type Description
OnSentinelError Action

Protected Properties

Property Type Description
Log ILog

Public Methods

Method Description
BeginListeningForConfigurationChanges ( ) : void
Dispose ( ) : void
ForceMasterFailover ( string masterName ) : void
RedisSentinelWorker ( RedisSentinel sentinel, RedisEndpoint sentinelEndpoint ) : System.Threading

Private Methods

Method Description
GetMasterHost ( string masterName ) : string
GetMasterHostInternal ( string masterName ) : string
GetSentinelHosts ( string masterName ) : List
GetSentinelInfo ( ) : SentinelInfo
GetSlaveHosts ( string masterName ) : List
SanitizeHostsConfig ( string>.IEnumerable slaves ) : List
SanitizeMasterConfig ( List masterInfo ) : string
SentinelMessageReceived ( string channel, string message ) : void

Event that is fired when the sentinel subscription raises an event

Method Details

BeginListeningForConfigurationChanges() public method

public BeginListeningForConfigurationChanges ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

ForceMasterFailover() public method

public ForceMasterFailover ( string masterName ) : void
masterName string
return void

RedisSentinelWorker() public method

public RedisSentinelWorker ( RedisSentinel sentinel, RedisEndpoint sentinelEndpoint ) : System.Threading
sentinel RedisSentinel
sentinelEndpoint RedisEndpoint
return System.Threading

Property Details

Log protected_oe static_oe property

protected static ILog Log
return ILog

OnSentinelError public_oe property

public Action OnSentinelError
return Action