Search in sources :

Example 6 with DescribeStreamSummaryRequest

use of com.amazonaws.services.kinesis.model.DescribeStreamSummaryRequest in project hazelcast by hazelcast.

the class KinesisTestHelper method getStreamStatus.

private StreamStatus getStreamStatus() {
    DescribeStreamSummaryRequest request = new DescribeStreamSummaryRequest();
    request.setStreamName(stream);
    StreamDescriptionSummary description = kinesis.describeStreamSummary(request).getStreamDescriptionSummary();
    String statusString = description.getStreamStatus();
    return StreamStatus.valueOf(statusString);
}
Also used : StreamDescriptionSummary(com.amazonaws.services.kinesis.model.StreamDescriptionSummary) DescribeStreamSummaryRequest(com.amazonaws.services.kinesis.model.DescribeStreamSummaryRequest)

Example 7 with DescribeStreamSummaryRequest

use of com.amazonaws.services.kinesis.model.DescribeStreamSummaryRequest in project hazelcast by hazelcast.

the class NoopShardCountMonitor method describeStreamSummaryAsync.

private Future<DescribeStreamSummaryResult> describeStreamSummaryAsync() {
    DescribeStreamSummaryRequest request = new DescribeStreamSummaryRequest();
    request.setStreamName(streamName);
    return kinesis.describeStreamSummaryAsync(request);
}
Also used : DescribeStreamSummaryRequest(com.amazonaws.services.kinesis.model.DescribeStreamSummaryRequest)

Aggregations

DescribeStreamSummaryRequest (com.amazonaws.services.kinesis.model.DescribeStreamSummaryRequest)7 StreamDescriptionSummary (com.amazonaws.services.kinesis.model.StreamDescriptionSummary)5 DescribeStreamSummaryResult (com.amazonaws.services.kinesis.model.DescribeStreamSummaryResult)4 ListShardsRequest (com.amazonaws.services.kinesis.model.ListShardsRequest)4 ListShardsResult (com.amazonaws.services.kinesis.model.ListShardsResult)4 Shard (com.amazonaws.services.kinesis.model.Shard)4 ShardFilter (com.amazonaws.services.kinesis.model.ShardFilter)4 Instant (org.joda.time.Instant)4 Test (org.junit.Test)4 Datapoint (com.amazonaws.services.cloudwatch.model.Datapoint)3 LimitExceededException (com.amazonaws.services.kinesis.model.LimitExceededException)2 BackOff (org.apache.beam.sdk.util.BackOff)1 FluentBackoff (org.apache.beam.sdk.util.FluentBackoff)1 Sleeper (org.apache.beam.sdk.util.Sleeper)1