Package org.jclouds.date.internal

Examples of org.jclouds.date.internal.SimpleDateFormatDateService


            .id("1459")
            .uuid("2443c9c7-9791-412e-ac09-a6d55ec25335")
            .tenantId("37")
            .userId("508151008")
            .name("mygroup-72c")
            .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-03-23T01:30:26Z"))
            .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-03-23T01:30:26Z"))
            .hostId("881706597197955ac7cc4b353bc7ec884e13fa280de9cc82057796cb")
            .status(Status.ACTIVE)
            .image(
                  Resource
                        .builder()
View Full Code Here


            .<ObjectInfo> of(
                  ObjectInfoImpl.builder().container("container").name("test_obj_1")
                        .uri(URI.create("http://localhost/key/test_obj_1"))
                        .hash(base16().lowerCase().decode("4281c348eaf83e70ddce0e07221c3d28")).bytes(14l)
                        .contentType("application/octet-stream")
                        .lastModified(new SimpleDateFormatDateService().iso8601DateParse("2009-02-03T05:26:32.612Z"))
                        .build(),
                  ObjectInfoImpl.builder().container("container").name("test_obj_2")
                        .uri(URI.create("http://localhost/key/test_obj_2"))
                        .hash(base16().lowerCase().decode("b039efe731ad111bc1b0ef221c3849d0")).bytes(64l)
                        .contentType("application/octet-stream")
                        .lastModified(new SimpleDateFormatDateService().iso8601DateParse("2009-02-03T05:26:32.612Z"))
                        .build());
      GeneratedHttpRequest request = requestForArgs(ImmutableList.<Object> of("container",
            new ListContainerOptions[] { new ListContainerOptions() }));
      ParseObjectInfoListFromJsonResponse parser = i.getInstance(ParseObjectInfoListFromJsonResponse.class);
      parser.setContext(request);
View Full Code Here

      assertEquals(result.getStatus(), expected.getStatus());
      assertEquals(result.getSubmittedAt(), expected.getSubmittedAt());
   }

   public Change expected() {
      Date submittedAt = new SimpleDateFormatDateService().iso8601DateParse("2011-09-10T01:36:41.958Z");
      return Change.create("C2682N5HXP0BZ4", Status.INSYNC, submittedAt);
   }
View Full Code Here

               "{\"reason\": \"" + i + "\"}",
               i == 1 ?
                     HistoryItemType.ACTION :
                     HistoryItemType.CONFIGURATION_UPDATE,
               "This is test " + i + ".",
               new SimpleDateFormatDateService()
                     .iso8601SecondsDateParse("2013-01-0" + i + "T00:00:00Z")
         ));
      }

      return IterableWithMarkers.from(alarmHistoryItems);
View Full Code Here

      return Extension
            .builder()
            .alias("RS-PIE")
            .name("Public Image Extension")
            .namespace(URI.create("http://docs.rackspacecloud.com/servers/api/ext/pie/v1.0"))
            .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2011-01-22T13:25:27-06:00"))
            .description("Adds the capability to share an image with other users.")
            .links(
                  ImmutableSet.of(
                        Link.create(Relation.DESCRIBEDBY, "application/pdf",
                              URI.create("http://docs.rackspacecloud.com/servers/api/ext/cs-pie-20111111.pdf")),
View Full Code Here

            .hostId("cb0d9e5004bef8c21270a0b09f7624f4c387f3a523f3aaa4c5694a61")
            .uuid("7aed8e05-1daf-476a-87b2-640e8f7dcafd")
            .tenantId("37936628937291")
            .userId("54297837463082")
            .name("hpcloud-computes-38d")
            .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-03-22T22:11:55Z"))
            .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-03-22T22:11:19Z"))
            .status(Status.ACTIVE)
            .keyName("jclouds_hpcloud-computes_77")
            .image(
                  Resource
                        .builder()
View Full Code Here

            .builder()
            .id("52415800-8b69-11e0-9b19-734f000004d2")
            .tenantId("1234")
            .userId("5678")
            .name("sample-f352")
            .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2010-10-10T12:00:00Z"))
            .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2010-08-10T12:00:00Z"))
            .hostId("e4d909c290d0fb1ca068ffaddf22cbd0")
            .accessIPv4("67.23.10.132")
            .accessIPv6("::babe:67.23.10.132")
            .status(Status.BUILD)
            .diskConfig(Server.DISK_CONFIG_AUTO)
View Full Code Here

            .builder()
            .id("141b775f-7ac1-45f0-9a95-146260f33a53")
            .tenantId("7f312675f9b84c97bff8f5054e181419")
            .userId("89c01b67395d4bea945f7f5bfd7f344a")
            .name("test")
            .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-05-04T15:07:48Z"))
            .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-05-04T15:07:36Z"))
            .hostId("eab9a77d1c44b8833e4a3dc6d2d9d50de556e780a319f184d8c82d9b")
            .status(Status.PAUSED)
            .image(
                  Resource
                        .builder()
View Full Code Here

                                          Relation.BOOKMARK,
                                          URI.create("http://nova:8774/8d10e6646d5d4585937395b04839a353/flavors/1"))).build())
                  .id("0c80b392-db30-4736-ae02-4480090f1207")
                  .userId("df13814f6c354d00a8acf66502836323")
                  .status(Status.ACTIVE)
                  .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-04-12T11:21:33Z"))
                  .hostId("03d796ebb52b1b555e5f6d9262f7dbd52b3f7c181e3aa89b34ca5408")
                  .name("VM proxy")
                  .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-04-12T11:21:23Z"))
                  .tenantId("8d10e6646d5d4585937395b04839a353")
                  .extendedStatus(ServerExtendedStatus.builder().vmState("active").powerState(1).build())
                  .diskConfig("MANUAL").build(),
            Server.builder()
                  .addresses(ImmutableMultimap.<String, Address>builder()
                        .putAll("Net TenantA Front-Middle", Address.createV4("172.16.11.4"))
                        .putAll("Net TenantA Middle-Back", Address.createV4("172.16.12.5")).build())
                  .links(
                        Link.create(
                              Relation.SELF,
                              URI.create("http://nova:8774/v1.1/8d10e6646d5d4585937395b04839a353/servers/b332b5cd-535e-4677-b68e-fc8badc13236")),
                        Link.create(
                              Relation.BOOKMARK,
                              URI.create("http://nova:8774/8d10e6646d5d4585937395b04839a353/servers/b332b5cd-535e-4677-b68e-fc8badc13236")))
                  .image(
                        Resource.builder()
                              .id("416af940-2d3c-4a7c-977c-a9030685ad5e")
                              .links(
                                    Link.create(
                                          Relation.BOOKMARK,
                                          URI.create("http://nova:8774/8d10e6646d5d4585937395b04839a353/images/416af940-2d3c-4a7c-977c-a9030685ad5e"))).build())
                  .flavor(
                        Resource.builder()
                              .id("1")
                              .links(
                                    Link.create(
                                          Relation.BOOKMARK,
                                          URI.create("http://nova:8774/8d10e6646d5d4585937395b04839a353/flavors/1"))).build())
                  .id("b332b5cd-535e-4677-b68e-fc8badc13236")
                  .userId("df13814f6c354d00a8acf66502836323")
                  .status(Status.ACTIVE)
                  .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-04-12T11:18:58Z"))
                  .hostId("e5bbff80bebacfe1db63951e787b5341427060a602d33abfefb6a1bc")
                  .name("VM blog")
                  .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-04-12T11:18:48Z"))
                  .tenantId("8d10e6646d5d4585937395b04839a353")
                  .extendedStatus(ServerExtendedStatus.builder().vmState("active").powerState(1).build())
                  .diskConfig("MANUAL").build(),
            Server.builder()
                  .addresses(ImmutableMultimap.<String, Address>builder()
                        .putAll("Net TenantA Middle-Back", Address.createV4("172.16.12.4")).build())
                  .links(
                        Link.create(
                              Relation.SELF,
                              URI.create("http://nova:8774/v1.1/8d10e6646d5d4585937395b04839a353/servers/f9d43436-4572-4c9b-9b74-5fa6890a2f21")),
                        Link.create(
                              Relation.BOOKMARK,
                              URI.create("http://nova:8774/8d10e6646d5d4585937395b04839a353/servers/f9d43436-4572-4c9b-9b74-5fa6890a2f21")))
                  .image(
                        Resource.builder()
                              .id("416af940-2d3c-4a7c-977c-a9030685ad5e")
                              .links(
                                    Link.create(
                                          Relation.BOOKMARK,
                                          URI.create("http://nova:8774/8d10e6646d5d4585937395b04839a353/images/416af940-2d3c-4a7c-977c-a9030685ad5e"))).build())
                  .flavor(
                        Resource.builder()
                              .id("1")
                              .links(
                                    Link.create(
                                          Relation.BOOKMARK,
                                          URI.create("http://nova:8774/8d10e6646d5d4585937395b04839a353/flavors/1"))).build())
                  .id("f9d43436-4572-4c9b-9b74-5fa6890a2f21")
                  .userId("df13814f6c354d00a8acf66502836323")
                  .status(Status.ACTIVE)
                  .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-04-12T11:15:09Z"))
                  .hostId("03d796ebb52b1b555e5f6d9262f7dbd52b3f7c181e3aa89b34ca5408")
                  .name("VM MySQL")
                  .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-04-12T11:14:56Z"))
                  .tenantId("8d10e6646d5d4585937395b04839a353")
                  .extendedStatus(ServerExtendedStatus.builder().vmState("active").powerState(1).build())
                  .diskConfig("MANUAL").build());
   }
View Full Code Here

   @Consumes(MediaType.APPLICATION_JSON)
   public Set<Extension> expected() {
      return ImmutableSet.of(
            Extension.builder().alias("os-keypairs").name("Keypairs")
                  .namespace(URI.create("http://docs.openstack.org/ext/keypairs/api/v1.1"))
                  .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2011-08-08T00:00:00+00:00"))
                  .description("Keypair Support").build(),
            Extension.builder().alias("os-volumes").name("Volumes")
                  .namespace(URI.create("http://docs.openstack.org/ext/volumes/api/v1.1"))
                  .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2011-03-25T00:00:00+00:00"))
                  .description("Volumes support").build(),
            Extension.builder().alias("security_groups").name("SecurityGroups")
                  .namespace(URI.create("http://docs.openstack.org/ext/securitygroups/api/v1.1"))
                  .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2011-07-21T00:00:00+00:00"))
                  .description("Security group support").build(),
            Extension.builder().alias("os-floating-ips").name("Floating_ips")
                  .namespace(URI.create("http://docs.openstack.org/ext/floating_ips/api/v1.1"))
                  .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2011-06-16T00:00:00+00:00"))
                  .description("Floating IPs support").build());
   }
View Full Code Here

TOP

Related Classes of org.jclouds.date.internal.SimpleDateFormatDateService

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.