Class DestinationHealthTracker
Passive health bookkeeping and active-request counters for destination pools.
Inheritance
DestinationHealthTracker
Assembly: Titanium.Web.Proxy.dll
Syntax
public sealed class DestinationHealthTracker
Constructors
|
Edit this page
View Source
DestinationHealthTracker()
Declaration
public DestinationHealthTracker()
|
Edit this page
View Source
DestinationHealthTracker(TimeProvider)
Declaration
public DestinationHealthTracker(TimeProvider timeProvider)
Parameters
Methods
|
Edit this page
View Source
GetActiveRequests(string)
Declaration
public long GetActiveRequests(string destinationId)
Parameters
| Type |
Name |
Description |
| string |
destinationId |
|
Returns
|
Edit this page
View Source
ReportFailure(string, IClusterManager?, int)
Declaration
public void ReportFailure(string destinationId, IClusterManager? manager, int unhealthyThreshold = 3)
Parameters
| Type |
Name |
Description |
| string |
destinationId |
|
| IClusterManager |
manager |
|
| int |
unhealthyThreshold |
|
|
Edit this page
View Source
ReportStatus(string, int, IClusterManager?, PassiveHealthConfig?, int)
Classifies one finished response. 502, 503, and 504 are failures. Other codes, including 500, are successes.
Declaration
public void ReportStatus(string destinationId, int statusCode, IClusterManager? manager, PassiveHealthConfig? passive, int destinationCount)
Parameters
| Type |
Name |
Description |
| string |
destinationId |
|
| int |
statusCode |
|
| IClusterManager |
manager |
|
| PassiveHealthConfig |
passive |
|
| int |
destinationCount |
|
|
Edit this page
View Source
ReportSuccess(string)
Declaration
public void ReportSuccess(string destinationId)
Parameters
| Type |
Name |
Description |
| string |
destinationId |
|
|
Edit this page
View Source
TrackRequest(string)
Declaration
public IDisposable TrackRequest(string destinationId)
Parameters
| Type |
Name |
Description |
| string |
destinationId |
|
Returns