@@ -0,0 +1,1804 @@
+package com.woorea.openstack.examples.compute;%0A%0Aimport com.woorea.openstack.examples.ExamplesConfiguration;%0Aimport com.woorea.openstack.keystone.Keystone;%0Aimport com.woorea.openstack.keystone.model.Access;%0Aimport com.woorea.openstack.keystone.model.authentication.UsernamePassword;%0Aimport com.woorea.openstack.nova.Nova;%0Aimport com.woorea.openstack.nova.api.ServersResource;%0Aimport com.woorea.openstack.nova.model.Servers;%0A%0Apublic class NovaStopStartServer %7B%0A    public static void main(String%5B%5D args) throws InterruptedException %7B%0A        Keystone keystone = new Keystone(ExamplesConfiguration.KEYSTONE_AUTH_URL);%0A        Access access = keystone.tokens().authenticate(new UsernamePassword(ExamplesConfiguration.KEYSTONE_USERNAME, ExamplesConfiguration.KEYSTONE_PASSWORD))%0A                .withTenantName(ExamplesConfiguration.TENANT_NAME)%0A                .execute();%0A%0A        //use the token in the following requests%0A        keystone.token(access.getToken().getId());%0A%0A        Nova novaClient = new Nova(ExamplesConfiguration.NOVA_ENDPOINT.concat(%22/%22).concat(access.getToken().getTenant().getId()));%0A        novaClient.token(access.getToken().getId());%0A%0A        Servers servers = novaClient.servers().list(true).execute();%0A        if(servers.getList().size() %3E 0) %7B%0A%0A            ServersResource.StopServer stopServer = novaClient.servers().stop(servers.getList().get(0).getId());%0A            stopServer.endpoint(ExamplesConfiguration.NOVA_ENDPOINT);%0A            stopServer.execute();%0A%0A            // Wait until server shutdown.%0A            Thread.sleep(5000);%0A%0A            ServersResource.StartServer startServer = novaClient.servers().start(servers.getList().get(0).getId());%0A            startServer.endpoint(ExamplesConfiguration.NOVA_ENDPOINT);%0A            startServer.execute();%0A        %7D%0A    %7D%0A%7D%0A

Add Stop and Start Nova Compute Server Example. Implemented example code of shutdown and srart nova compute server(instance).