Package org.jclouds.date.internal

Examples of org.jclouds.date.internal.SimpleDateFormatDateService


   }

   @Override
   @Consumes(MediaType.APPLICATION_JSON)
   public ListPage<MachineType> expected() {
      SimpleDateFormatDateService dateService = new SimpleDateFormatDateService();
      return ListPage.<MachineType>builder()
              .kind(MACHINE_TYPE_LIST)
              .id("projects/myproject/machineTypes")
              .selfLink(URI.create("https://www.googleapis.com/compute/v1beta13/projects/myproject/machineTypes"))
              .addItem(MachineType.builder()
                      .id("12907738072351752276")
                      .creationTimestamp(dateService.iso8601DateParse("2012-06-07T20:48:14.670"))
                      .selfLink(URI.create("https://www.googleapis" +
                              ".com/compute/v1beta13/projects/myproject/machineTypes/n1-standard-1"))
                      .name("n1-standard-1")
                      .description("1 vCPU, 3.75 GB RAM, and a 10 GB ephemeral root disk")
                      .guestCpus(1)
                      .memoryMb(3840)
                      .imageSpaceGb(10)
                      .maximumPersistentDisks(16)
                      .maximumPersistentDisksSizeGb(128)
                      .build())
              .addItem(MachineType.builder()
                      .id("12908560709887590691")
                      .creationTimestamp(dateService.iso8601DateParse("2012-06-07T20:51:19.936"))
                      .selfLink(URI.create("https://www.googleapis" +
                              ".com/compute/v1beta13/projects/myproject/machineTypes/n1-standard-8-d"))
                      .name("n1-standard-8-d")
                      .description("8 vCPUs, 30 GB RAM, a 10 GB ephemeral root disk, " +
                              "and 2 extra 1770 GB ephemeral disks")
View Full Code Here


              .selfLink(URI.create("https://www.googleapis.com/compute/v1beta13/projects/google/firewalls"))
              .items(ImmutableSet.of(
                      new ParseFirewallTest().expected()
                      , Firewall.builder()
                      .id("12862241067393040785")
                      .creationTimestamp(new SimpleDateFormatDateService().iso8601DateParse("2012-04-13T03:05:04.365"))
                      .selfLink(URI.create("https://www.googleapis" +
                              ".com/compute/v1beta13/projects/google/firewalls/default-ssh"))
                      .name("default-ssh")
                      .description("SSH allowed from anywhere")
                      .network(URI.create("https://www.googleapis" +
View Full Code Here

   @Override
   @Consumes(MediaType.APPLICATION_JSON)
   public Instance expected() {
      return Instance.builder()
              .id("13051190678907570425")
              .creationTimestamp(new SimpleDateFormatDateService().iso8601DateParse("2012-11-25T23:48:20.758"))
              .selfLink(URI.create("https://www.googleapis" +
                      ".com/compute/v1beta13/projects/myproject/instances/test-0"))
              .description("desc")
              .name("test-0")
              .image(URI.create("https://www.googleapis" +
View Full Code Here

   }

   @Override
   @Consumes(MediaType.APPLICATION_JSON)
   public MachineType expected() {
      SimpleDateFormatDateService dateService = new SimpleDateFormatDateService();
      return MachineType.builder()
              .id("12907738072351752276")
              .creationTimestamp(dateService.iso8601DateParse("2012-06-07T20:48:14.670"))
              .selfLink(URI.create("https://www.googleapis.com/compute/v1beta13/projects/myproject/machineTypes/n1" +
                      "-standard-1"))
              .name("n1-standard-1")
              .description("1 vCPU, 3.75 GB RAM, and a 10 GB ephemeral root disk")
              .guestCpus(1)
View Full Code Here

   }

   @Override
   public LoadBalancer expected() {
      return LoadBalancer.builder().region("LON").id(4865).name("adriancole-LON").status(Status.DELETED).nodeCount(0)
            .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2011-12-05T18:03:23Z"))
            .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2011-12-05T18:04:04Z"))
            .uri(URI.create("https://lon.loadbalancers.api.rackspacecloud.com/v1.0/123123/loadbalancers/4865")).build();
   }
View Full Code Here

                  .algorithm(Algorithm.RANDOM)
                  .status(Status.ACTIVE)
                  .nodeCount(1)
                  .virtualIPs(ImmutableSet.of(
                        new VirtualIPWithId(VirtualIP.Type.PUBLIC, VirtualIP.IPVersion.IPV4, 403, "206.55.130.1")))
                  .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2010-11-30T03:23:42Z"))
                  .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2010-11-30T03:23:44Z"))
                  .uri(URI.create("https://dfw.loadbalancers.api.rackspacecloud.com/v1.0/123123/loadbalancers/71")).build(),
            LoadBalancer
                  .builder()
                  .region("DFW")
                  .name("lb-site2")
                  .id(166)
                  .protocol("HTTP")
                  .port(80)
                  .algorithm(Algorithm.RANDOM)
                  .status(Status.ACTIVE)
                  .nodeCount(1)
                  .virtualIPs(ImmutableSet.of(
                        new VirtualIPWithId(VirtualIP.Type.PUBLIC, VirtualIP.IPVersion.IPV4, 401, "206.55.130.2")))
                  .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2010-11-30T03:23:42Z"))
                  .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2010-11-30T03:23:44Z"))
                  .uri(URI.create("https://dfw.loadbalancers.api.rackspacecloud.com/v1.0/123123/loadbalancers/166")).build());
   }
View Full Code Here

            .nodes(ImmutableSet.of(
                  Node.builder().id(1041).address("10.1.1.1").port(80).condition(Node.Condition.ENABLED).status(Node.Status.ONLINE).build(),
                  Node.builder().id(1411).address("10.1.1.2").port(80).condition(Node.Condition.ENABLED).status(Node.Status.ONLINE).build()))
            .sessionPersistenceType(SessionPersistence.HTTP_COOKIE)
            .clusterName("c1.dfw1")
            .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2010-11-30T03:23:42Z"))
            .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2010-11-30T03:23:44Z"))
            .metadata(metadata)
            .uri(URI.create("https://dfw.loadbalancers.api.rackspacecloud.com/v1.0/123123/loadbalancers/2000")).build();
   }
View Full Code Here

            .id("505")
            .name("jclouds")
            .firstName("Adrian")
            .lastName("Cole")
            .email("adrian@jclouds.org")
            .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2011-04-19T01:57:24+0000"))
            .state(User.State.ENABLED)
            .account("jclouds")
            .accountType(Account.Type.USER)
            .domainId("457")
            .domain("AA000062-jclouds-dev")
View Full Code Here

      @Override
      public Supplier<Date> provideCacheBusterDate() {
         return new Supplier<Date>() {
            public Date get() {
               return new SimpleDateFormatDateService().iso8601DateParse(CONSTANT_DATE);
            }
         };
      }
View Full Code Here

            .id("71752")
            .uuid("47491020-6a78-4f63-9475-23195ac4515c")
            .tenantId("37936628937291")
            .userId("54297837463082")
            .name("test-e92")
            .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-03-19T06:21:13Z"))
            .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-03-19T06:21:13Z"))
            .status(Server.Status.BUILD)
            .image(
                  Resource
                        .builder()
                        .id("1241")
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.