C# Class DynamoDbAutoscaler.Provisioners.Provisioner

Mostra file Open project: litmus/DynamoDbAutoscaler

Protected Properties

Property Type Description
StructuredLogger ILogger
ThroughputClient IDynamoDbTableThroughputClient

Public Methods

Method Description
ProvisionAsync ( IAutoscalingConfigurationSet configuration, DynamoDbThroughput current, DynamoDbThroughput updated, CancellationToken cancellationToken = default(CancellationToken) ) : Task
UpdateProvisionAsync ( IAutoscalingConfigurationSet configuration, DynamoDbThroughput current, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Protected Methods

Method Description
Provisioner ( IDynamoDbTableThroughputClient throughputClient, ILogger structuredLogger ) : System

Private Methods

Method Description
ShouldUpdate ( string entityName, string type, long provisioned, long updated, bool enabled, bool demoMode, System.DateTime increasedAt, System.DateTime decreaseAt, System.TimeSpan increaseInterval, System.TimeSpan decreaseInterval ) : bool

Method Details

ProvisionAsync() public method

public ProvisionAsync ( IAutoscalingConfigurationSet configuration, DynamoDbThroughput current, DynamoDbThroughput updated, CancellationToken cancellationToken = default(CancellationToken) ) : Task
configuration IAutoscalingConfigurationSet
current DynamoDbAutoscaler.DynamoDbThroughput
updated DynamoDbAutoscaler.DynamoDbThroughput
cancellationToken System.Threading.CancellationToken
return Task

Provisioner() protected method

protected Provisioner ( IDynamoDbTableThroughputClient throughputClient, ILogger structuredLogger ) : System
throughputClient IDynamoDbTableThroughputClient
structuredLogger ILogger
return System

UpdateProvisionAsync() public abstract method

public abstract UpdateProvisionAsync ( IAutoscalingConfigurationSet configuration, DynamoDbThroughput current, CancellationToken cancellationToken = default(CancellationToken) ) : Task
configuration IAutoscalingConfigurationSet
current DynamoDbAutoscaler.DynamoDbThroughput
cancellationToken System.Threading.CancellationToken
return Task

Property Details

StructuredLogger protected_oe property

protected ILogger StructuredLogger
return ILogger

ThroughputClient protected_oe property

protected IDynamoDbTableThroughputClient ThroughputClient
return IDynamoDbTableThroughputClient