Examples of servers()


Examples of com.woorea.openstack.nova.Nova.servers()

    keystone.token(access.getToken().getId());

    Nova novaClient = new Nova(ExamplesConfiguration.NOVA_ENDPOINT.concat("/").concat(access.getToken().getTenant().getId()));
    novaClient.token(access.getToken().getId());

    Servers servers = novaClient.servers().list(true).execute();
    if(servers.getList().size() > 0) {

      // Server has to be in activated state.
      ServersResource.StopServer stopServer = novaClient.servers().stop(servers.getList().get(0).getId());
      stopServer.endpoint(ExamplesConfiguration.NOVA_ENDPOINT);
View Full Code Here

Examples of com.woorea.openstack.nova.Nova.servers()

    Servers servers = novaClient.servers().list(true).execute();
    if(servers.getList().size() > 0) {

      // Server has to be in activated state.
      ServersResource.StopServer stopServer = novaClient.servers().stop(servers.getList().get(0).getId());
      stopServer.endpoint(ExamplesConfiguration.NOVA_ENDPOINT);
      stopServer.execute();

      // Wait until server shutdown. Or 400 error occurs.
      Thread.sleep(5000);
View Full Code Here

Examples of com.woorea.openstack.nova.Nova.servers()

      stopServer.execute();

      // Wait until server shutdown. Or 400 error occurs.
      Thread.sleep(5000);

      ServersResource.StartServer startServer = novaClient.servers().start(servers.getList().get(0).getId());
      startServer.endpoint(ExamplesConfiguration.NOVA_ENDPOINT);
      startServer.execute();
    }
  }
}
View Full Code Here

Examples of com.woorea.openstack.nova.Nova.servers()

      serverForCreate.getSecurityGroups()
          .add(new ServerForCreate.SecurityGroup("default"));
      // serverForCreate.getSecurityGroups().add(new
      // ServerForCreate.SecurityGroup(securityGroup.getName()));

      Server server = nova.servers().boot(serverForCreate).execute();
      System.out.println(server);

    } else {
      System.out.println("No tenants found!");
    }
View Full Code Here

Examples of com.woorea.openstack.nova.Nova.servers()

    //NovaClient novaClient = new NovaClient(KeystoneUtils.findEndpointURL(access.getServiceCatalog(), "compute", null, "public"), access.getToken().getId());
    Nova novaClient = new Nova(ExamplesConfiguration.NOVA_ENDPOINT.concat("/").concat(access.getToken().getTenant().getId()));
    novaClient.token(access.getToken().getId());
    //novaClient.enableLogging(Logger.getLogger("nova"), 100 * 1024);
   
    Servers servers = novaClient.servers().list(true).execute();
    for(Server server : servers) {
      System.out.println(server);
    }
   
  }
View Full Code Here

Examples of org.infinispan.loaders.remote.configuration.RemoteCacheStoreConfiguration.servers()

            assert !c.loaders().fetchPersistentState();
            assert !c.loaders().shared();
            assert c.loaders().cacheLoaders().size() == 1;
            RemoteCacheStoreConfiguration rcsc = (RemoteCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
            assert !rcsc.purgeOnStartup();
            assert rcsc.servers().size() == 1;
            RemoteServerConfiguration server = rcsc.servers().get(0);
            assert server.host().equals("remote-host");
            assert server.port() == 11222;
            assert rcsc.async().enabled();
            assert rcsc.async().flushLockTimeout() == 1;
View Full Code Here

Examples of org.infinispan.loaders.remote.configuration.RemoteCacheStoreConfiguration.servers()

            assert !c.loaders().shared();
            assert c.loaders().cacheLoaders().size() == 1;
            RemoteCacheStoreConfiguration rcsc = (RemoteCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
            assert !rcsc.purgeOnStartup();
            assert rcsc.servers().size() == 1;
            RemoteServerConfiguration server = rcsc.servers().get(0);
            assert server.host().equals("remote-host");
            assert server.port() == 11222;
            assert rcsc.async().enabled();
            assert rcsc.async().flushLockTimeout() == 1;
            assert rcsc.async().modificationQueueSize() == 1024;
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.