Examples of shutDown()


Examples of com.amazonaws.http.AmazonHttpClient.shutdown()

    public void setConfiguration(ClientConfiguration clientConfiguration) {
        AmazonHttpClient existingClient = this.client;
        RequestMetricCollector requestMetricCollector = null;
        if (existingClient != null) {
            requestMetricCollector = existingClient.getRequestMetricCollector();
            existingClient.shutdown();
        }
        this.clientConfiguration = clientConfiguration;
        this.client = new AmazonHttpClient(clientConfiguration, requestMetricCollector);
    }
View Full Code Here

Examples of com.amazonaws.services.autoscaling.AmazonAutoScaling.shutdown()

            return instanceIds;
        }
        finally
        {
            if (client != null)
                client.shutdown();
        }
    }

    /**
     * Actual membership AWS source of truth...
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.AmazonDynamoDB.shutdown()

                    item.get(DefaultDynamo.REGION).getS(),
                    syslog
                )
            );
        }
        amazon.shutdown();
        return domains;
    }

    @Override
    @Cacheable.FlushBefore
View Full Code Here

Examples of com.amazonaws.services.ec2.AmazonEC2.shutdown()

            logger.info("Done adding ACL to: " + StringUtils.join(listIPs, ","));
        }
        finally
        {
            if (client != null)
                client.shutdown();
        }
    }

    /**
     * removes a iplist from the SG
View Full Code Here

Examples of com.amazonaws.services.ec2.AmazonEC2Client.shutdown()

                    logger.info("Setting RI price for " + Zone.getZone(offer.getAvailabilityZone()).region + " " + utilization + " " + usageType + " " + offer.getFixedPrice() + " " + hourly);
                }
            } while (!StringUtils.isEmpty(token));
        }

        ec2Client.shutdown();
        if (hasNewPrice) {
            for (ReservationUtilization utilization: files.keySet()) {
                File file = files.get(utilization);
                DataOutputStream out = new DataOutputStream(new FileOutputStream(file));
                try {
View Full Code Here

Examples of com.amazonaws.services.s3.AmazonS3Client.shutdown()

                }
            }
            s3service.deleteBucket(bucket);
            LOG.info("bucket: " + bucket + " deleted");
            tmx.shutdownNow();
            s3service.shutdown();
        }
    }

}
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.flow.ActivityWorker.shutdown()

        Runtime.getRuntime().addShutdownHook(new Thread() {

            public void run() {
                try {
                    workerForCommonTaskList.shutdown();
                    workerForHostSpecificTaskList.shutdown();
                    workerForCommonTaskList.awaitTermination(1, TimeUnit.MINUTES);
                    workerForHostSpecificTaskList.awaitTermination(1, TimeUnit.MINUTES);
                    System.out.println("Activity Workers Exited.");
                }
                catch (InterruptedException e) {
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.coordinator.ReaperWorkerThread.shutdown()

/*  594 */       synchronized (e)
/*      */       {
/*  596 */         if (e._status == 6)
/*      */         {
/*  604 */           ReaperWorkerThread worker = (ReaperWorkerThread)Thread.currentThread();
/*  605 */           worker.shutdown();
/*      */
/*  607 */           synchronized (this)
/*      */           {
/*  609 */             _zombieCount -= 1;
/*      */           }
View Full Code Here

Examples of com.arjuna.orbportability.ORB.shutdown()

        }

        try
        {
            oa.destroy();
            orb.shutdown();
        }
        catch (Exception e)
        {
            System.out.println("Failed to shutdown and destroy the ORB/OA: "+e);
            e.printStackTrace(System.err);
View Full Code Here

Examples of com.art.anette.client.controller.Logic.shutdown()

                    logger.info("reached the number of repeats (" + numRepeats + "); exiting");
                    break;
                }
            }
        }
        logic.shutdown();
    }

    private static void doOneShot(Logic logic) throws Exception {
        boolean success;
        String status;
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.