Package org.jclouds.cloudwatch.options

Examples of org.jclouds.cloudwatch.options.ListAlarmHistoryOptions


                        .payload(payloadFromResourceWithContentType("/DescribeAlarmHistoryResponse.xml", "text/xml"))
                        .build());

      assertEquals(new ListAlarmHistoryResponseHandlerTest().expected().toString(),
                   cloudWatchApi.getAlarmApiForRegion(null)
                                .listHistory(new ListAlarmHistoryOptions()
                                                   .alarmName("TestAlarmName")
                                                   .endDate(dateService.iso8601DateParse(endDateStr))
                                                   .historyItemType(HistoryItemType.ACTION)
                                                   .maxRecords(maxRecords)
                                                   .startDate(dateService.iso8601DateParse(startDateStr))
View Full Code Here


      // Create history item by changing its state
      api().setState(alarmName, "Updating the state.", null, Alarm.State.OK);

      // Poll for alarm history
      ListAlarmHistoryOptions daho = new ListAlarmHistoryOptions().alarmName(alarmName);
      success = retry(new Predicate<ListAlarmHistoryOptions>() {
         public boolean apply(ListAlarmHistoryOptions options) {
            for (IterableWithMarker<AlarmHistoryItem> page : api().listHistory(options)) {
               for (AlarmHistoryItem alarmHistoryItem : page) {
                  if (alarmHistoryItem.getAlarmName().equals(alarmName)) {
View Full Code Here

      // Create history item by changing its state
      api().setState(alarmName, "Updating the state.", null, Alarm.State.OK);

      // Poll for alarm history
      ListAlarmHistoryOptions daho = new ListAlarmHistoryOptions().alarmName(alarmName);
      success = retry(new Predicate<ListAlarmHistoryOptions>() {
         public boolean apply(ListAlarmHistoryOptions options) {
            for (IterableWithMarker<AlarmHistoryItem> page : api().listHistory(options)) {
               for (AlarmHistoryItem alarmHistoryItem : page) {
                  if (alarmHistoryItem.getAlarmName().equals(alarmName)) {
View Full Code Here

                        .payload(payloadFromResourceWithContentType("/DescribeAlarmHistoryResponse.xml", "text/xml"))
                        .build());

      assertEquals(new ListAlarmHistoryResponseHandlerTest().expected().toString(),
                   cloudWatchApi.getAlarmApiForRegion(null)
                                .listHistory(new ListAlarmHistoryOptions()
                                                   .alarmName("TestAlarmName")
                                                   .endDate(dateService.iso8601DateParse(endDateStr))
                                                   .historyItemType(HistoryItemType.ACTION)
                                                   .maxRecords(maxRecords)
                                                   .startDate(dateService.iso8601DateParse(startDateStr))
View Full Code Here

      // Create history item by changing its state
      api().setState(alarmName, "Updating the state.", null, Alarm.State.OK);

      // Poll for alarm history
      ListAlarmHistoryOptions daho = new ListAlarmHistoryOptions().alarmName(alarmName);
      success = retry(new Predicate<ListAlarmHistoryOptions>() {
         public boolean apply(ListAlarmHistoryOptions options) {
            for (IterableWithMarker<AlarmHistoryItem> page : api().listHistory(options)) {
               for (AlarmHistoryItem alarmHistoryItem : page) {
                  if (alarmHistoryItem.getAlarmName().equals(alarmName)) {
View Full Code Here

      // Create history item by changing its state
      api().setState(alarmName, "Updating the state.", null, Alarm.State.OK);

      // Poll for alarm history
      ListAlarmHistoryOptions daho = new ListAlarmHistoryOptions().alarmName(alarmName);
      success = retry(new Predicate<ListAlarmHistoryOptions>() {
         public boolean apply(ListAlarmHistoryOptions options) {
            for (IterableWithMarker<AlarmHistoryItem> page : api().listHistory(options)) {
               for (AlarmHistoryItem alarmHistoryItem : page) {
                  if (alarmHistoryItem.getAlarmName().equals(alarmName)) {
View Full Code Here

                        .payload(payloadFromResourceWithContentType("/DescribeAlarmHistoryResponse.xml", "text/xml"))
                        .build());

      assertEquals(new ListAlarmHistoryResponseHandlerTest().expected().toString(),
                   cloudWatchApi.getAlarmApiForRegion(null)
                                .listHistory(new ListAlarmHistoryOptions()
                                                   .alarmName("TestAlarmName")
                                                   .endDate(dateService.iso8601DateParse(endDateStr))
                                                   .historyItemType(HistoryItemType.ACTION)
                                                   .maxRecords(maxRecords)
                                                   .startDate(dateService.iso8601DateParse(startDateStr))
View Full Code Here

TOP

Related Classes of org.jclouds.cloudwatch.options.ListAlarmHistoryOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.