Examples of PollPeriod


Examples of org.jclouds.compute.reference.ComputeServiceConstants.PollPeriod

   public void testRecoversWhenTemporarilyNodeNotFound() {
      String nodeId = "myid";
      Timeouts timeouts = new Timeouts();

      PollPeriod period = new PollPeriod();

      final NodeMetadata pendingNode = new NodeMetadataBuilder().ids(nodeId).status(Status.PENDING).build();
      final NodeMetadata runningNode = new NodeMetadataBuilder().ids(nodeId).status(Status.RUNNING).build();
      GetNodeMetadataStrategy nodeClient = createMock(GetNodeMetadataStrategy.class);
      AtomicNodeRunning nodeRunning = new AtomicNodeRunning(nodeClient);
View Full Code Here

Examples of org.jclouds.compute.reference.ComputeServiceConstants.PollPeriod

      assertEquals(props.initStatusInitialPeriod, 501);
      assertEquals(props.initStatusMaxPeriod, 5001);
   }

   public void testDefaultPollPeriod() {
     PollPeriod props = ContextBuilder.newBuilder("stub").buildInjector()
            .getInstance(PollPeriod.class);
      assertEquals(props.pollInitialPeriod, 50);
      assertEquals(props.pollMaxPeriod, 1000);
   }
View Full Code Here

Examples of org.jclouds.compute.reference.ComputeServiceConstants.PollPeriod

   public void testOverridePollPeriod() {
      Properties overrides = new Properties();
      overrides.setProperty(ComputeServiceProperties.POLL_INITIAL_PERIOD, "501");
      overrides.setProperty(ComputeServiceProperties.POLL_MAX_PERIOD, "5001");
     
      PollPeriod props = ContextBuilder.newBuilder("stub").overrides(overrides).buildInjector()
            .getInstance(PollPeriod.class);
     
      assertEquals(props.pollInitialPeriod, 501);
      assertEquals(props.pollMaxPeriod, 5001);
   }
View Full Code Here

Examples of org.jclouds.compute.reference.ComputeServiceConstants.PollPeriod

      assertEquals(props.initStatusInitialPeriod, 501);
      assertEquals(props.initStatusMaxPeriod, 5001);
   }

   public void testDefaultPollPeriod() {
     PollPeriod props = ContextBuilder.newBuilder("stub").buildInjector()
            .getInstance(PollPeriod.class);
      assertEquals(props.pollInitialPeriod, 50);
      assertEquals(props.pollMaxPeriod, 1000);
   }
View Full Code Here

Examples of org.jclouds.compute.reference.ComputeServiceConstants.PollPeriod

   public void testOverridePollPeriod() {
      Properties overrides = new Properties();
      overrides.setProperty(ComputeServiceProperties.POLL_INITIAL_PERIOD, "501");
      overrides.setProperty(ComputeServiceProperties.POLL_MAX_PERIOD, "5001");
     
      PollPeriod props = ContextBuilder.newBuilder("stub").overrides(overrides).buildInjector()
            .getInstance(PollPeriod.class);
     
      assertEquals(props.pollInitialPeriod, 501);
      assertEquals(props.pollMaxPeriod, 5001);
   }
View Full Code Here

Examples of org.jclouds.compute.reference.ComputeServiceConstants.PollPeriod

   public void testRecoversWhenTemporarilyNodeNotFound() {
      String nodeId = "myid";
      Timeouts timeouts = new Timeouts();

      PollPeriod period = new PollPeriod();

      final NodeMetadata pendingNode = new NodeMetadataBuilder().ids(nodeId).status(Status.PENDING).build();
      final NodeMetadata runningNode = new NodeMetadataBuilder().ids(nodeId).status(Status.RUNNING).build();
      GetNodeMetadataStrategy nodeClient = createMock(GetNodeMetadataStrategy.class);
      AtomicNodeRunning nodeRunning = new AtomicNodeRunning(nodeClient);
View Full Code Here

Examples of org.jclouds.compute.reference.ComputeServiceConstants.PollPeriod

   public void testRecoversWhenTemporarilyNodeNotFound() {
      String nodeId = "myid";
      Timeouts timeouts = new Timeouts();

      PollPeriod period = new PollPeriod();

      final NodeMetadata pendingNode = new NodeMetadataBuilder().ids(nodeId).status(Status.PENDING).build();
      final NodeMetadata runningNode = new NodeMetadataBuilder().ids(nodeId).status(Status.RUNNING).build();
      GetNodeMetadataStrategy nodeClient = createMock(GetNodeMetadataStrategy.class);
      AtomicNodeRunning nodeRunning = new AtomicNodeRunning(nodeClient);
View Full Code Here

Examples of org.jclouds.compute.reference.ComputeServiceConstants.PollPeriod

      assertEquals(props.initStatusInitialPeriod, 501);
      assertEquals(props.initStatusMaxPeriod, 5001);
   }

   public void testDefaultPollPeriod() {
     PollPeriod props = ContextBuilder.newBuilder("stub").buildInjector()
            .getInstance(PollPeriod.class);
      assertEquals(props.pollInitialPeriod, 50);
      assertEquals(props.pollMaxPeriod, 1000);
   }
View Full Code Here

Examples of org.jclouds.compute.reference.ComputeServiceConstants.PollPeriod

   public void testOverridePollPeriod() {
      Properties overrides = new Properties();
      overrides.setProperty(ComputeServiceProperties.POLL_INITIAL_PERIOD, "501");
      overrides.setProperty(ComputeServiceProperties.POLL_MAX_PERIOD, "5001");
     
      PollPeriod props = ContextBuilder.newBuilder("stub").overrides(overrides).buildInjector()
            .getInstance(PollPeriod.class);
     
      assertEquals(props.pollInitialPeriod, 501);
      assertEquals(props.pollMaxPeriod, 5001);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.