Class DiscoveryClient
Inheritance
System.Object
DiscoveryClient
Assembly: Steeltoe.Discovery.Eureka.dll
Syntax
public class DiscoveryClient : object, IEurekaClient, ILookupService
Constructors
|
Edit this page
View Source
DiscoveryClient(ApplicationInfoManager, ILoggerFactory)
Declaration
protected DiscoveryClient(ApplicationInfoManager appInfoManager, ILoggerFactory logFactory = null)
Parameters
|
Edit this page
View Source
DiscoveryClient(IEurekaClientConfig, IEurekaHttpClient, ILoggerFactory)
Declaration
public DiscoveryClient(IEurekaClientConfig clientConfig, IEurekaHttpClient httpClient = null, ILoggerFactory logFactory = null)
Parameters
Fields
|
Edit this page
View Source
_appInfoManager
Declaration
protected ApplicationInfoManager _appInfoManager
Field Value
|
Edit this page
View Source
_cacheRefreshTimer
Declaration
protected Timer _cacheRefreshTimer
Field Value
|
Edit this page
View Source
_heartBeatTimer
Declaration
protected Timer _heartBeatTimer
Field Value
|
Edit this page
View Source
_httpClient
Declaration
protected IEurekaHttpClient _httpClient
Field Value
|
Edit this page
View Source
_localRegionApps
Declaration
protected volatile Applications _localRegionApps
Field Value
|
Edit this page
View Source
_logger
Declaration
protected ILogger _logger
Field Value
|
Edit this page
View Source
_random
Declaration
Field Value
|
Edit this page
View Source
_registryFetchCounter
Declaration
protected long _registryFetchCounter
Field Value
Type |
Description |
System.Int64 |
|
|
Edit this page
View Source
_regularLogger
Declaration
protected ILogger _regularLogger
Field Value
|
Edit this page
View Source
_shutdown
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Edit this page
View Source
_startupLogger
Declaration
protected ILogger _startupLogger
Field Value
Properties
|
Edit this page
View Source
Applications
Declaration
public Applications Applications { get; }
Property Value
|
Edit this page
View Source
ClientConfig
Declaration
public virtual IEurekaClientConfig ClientConfig { get; }
Property Value
|
Edit this page
View Source
HealthCheckHandler
Declaration
public IHealthCheckHandler HealthCheckHandler { get; set; }
Property Value
|
Edit this page
View Source
HttpClient
Declaration
public IEurekaHttpClient HttpClient { get; }
Property Value
|
Edit this page
View Source
LastGoodDeltaRegistryFetchTimestamp
Declaration
public long LastGoodDeltaRegistryFetchTimestamp { get; }
Property Value
Type |
Description |
System.Int64 |
|
|
Edit this page
View Source
LastGoodFullRegistryFetchTimestamp
Declaration
public long LastGoodFullRegistryFetchTimestamp { get; }
Property Value
Type |
Description |
System.Int64 |
|
|
Edit this page
View Source
LastGoodHeartbeatTimestamp
Declaration
public long LastGoodHeartbeatTimestamp { get; }
Property Value
Type |
Description |
System.Int64 |
|
|
Edit this page
View Source
LastGoodRegisterTimestamp
Declaration
public long LastGoodRegisterTimestamp { get; }
Property Value
Type |
Description |
System.Int64 |
|
|
Edit this page
View Source
LastGoodRegistryFetchTimestamp
Declaration
public long LastGoodRegistryFetchTimestamp { get; }
Property Value
Type |
Description |
System.Int64 |
|
|
Edit this page
View Source
LastRemoteInstanceStatus
Declaration
public InstanceStatus LastRemoteInstanceStatus { get; }
Property Value
Methods
|
Edit this page
View Source
FetchFullRegistryAsync()
Declaration
protected async System.Threading.Tasks.Task<Applications> FetchFullRegistryAsync()
Returns
|
Edit this page
View Source
FetchRegistryAsync(Boolean)
Declaration
protected async System.Threading.Tasks.Task<bool> FetchRegistryAsync(bool fullUpdate)
Parameters
Type |
Name |
Description |
System.Boolean |
fullUpdate |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Edit this page
View Source
FetchRegistryDeltaAsync()
Declaration
protected async System.Threading.Tasks.Task<Applications> FetchRegistryDeltaAsync()
Returns
|
Edit this page
View Source
GetApplication(String)
Declaration
public Application GetApplication(string appName)
Parameters
Type |
Name |
Description |
System.String |
appName |
|
Returns
|
Edit this page
View Source
GetInstanceById(String)
Declaration
public IList<InstanceInfo> GetInstanceById(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
|
Edit this page
View Source
GetInstanceRemoteStatus()
Declaration
public InstanceStatus GetInstanceRemoteStatus()
Returns
|
Edit this page
View Source
GetInstancesByVipAddress(String, Boolean)
Declaration
public IList<InstanceInfo> GetInstancesByVipAddress(string vipAddress, bool secure)
Parameters
Type |
Name |
Description |
System.String |
vipAddress |
|
System.Boolean |
secure |
|
Returns
|
Edit this page
View Source
GetInstancesByVipAddressAndAppName(String, String, Boolean)
Declaration
public IList<InstanceInfo> GetInstancesByVipAddressAndAppName(string vipAddress, string appName, bool secure)
Parameters
Type |
Name |
Description |
System.String |
vipAddress |
|
System.String |
appName |
|
System.Boolean |
secure |
|
Returns
|
Edit this page
View Source
GetNextServerFromEureka(String, Boolean)
Declaration
public InstanceInfo GetNextServerFromEureka(string vipAddress, bool secure)
Parameters
Type |
Name |
Description |
System.String |
vipAddress |
|
System.Boolean |
secure |
|
Returns
|
Edit this page
View Source
Initialize()
Declaration
protected void Initialize()
|
Edit this page
View Source
InitializeAsync()
Declaration
protected async System.Threading.Tasks.Task InitializeAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Edit this page
View Source
RefreshInstanceInfo()
Declaration
protected void RefreshInstanceInfo()
|
Edit this page
View Source
RegisterAsync()
Declaration
protected async System.Threading.Tasks.Task<bool> RegisterAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Edit this page
View Source
RegisterDirtyInstanceInfo(InstanceInfo)
Declaration
protected async System.Threading.Tasks.Task<bool> RegisterDirtyInstanceInfo(InstanceInfo inst)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Edit this page
View Source
RenewAsync()
Declaration
protected async System.Threading.Tasks.Task<bool> RenewAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Edit this page
View Source
ShutdownAsync()
Declaration
public virtual async System.Threading.Tasks.Task ShutdownAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Edit this page
View Source
StartTimer(String, Int32, Action)
Declaration
protected Timer StartTimer(string name, int interval, Action task)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Int32 |
interval |
|
Action |
task |
|
Returns
|
Edit this page
View Source
UnregisterAsync()
Declaration
protected async System.Threading.Tasks.Task<bool> UnregisterAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
Events
|
Edit this page
View Source
OnApplicationsChange
Declaration
public event EventHandler<Applications> OnApplicationsChange
Event Type
Implements