Package com.amazonaws.services.cloudwatch

Examples of com.amazonaws.services.cloudwatch.AmazonCloudWatchClient


    public CWMetricsFactory(AWSCredentialsProvider credentialsProvider,
            ClientConfiguration clientConfig,
            String namespace,
            long bufferTimeMillis,
            int maxQueueSize) {
        this(new AmazonCloudWatchClient(credentialsProvider, clientConfig), namespace, bufferTimeMillis, maxQueueSize);
    }
View Full Code Here


        return cloudWatchClient;
    }

    AmazonCloudWatch createCloudWatchClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonCloudWatch client = new AmazonCloudWatchClient(credentials);
        if (configuration.getAmazonCwEndpoint() != null) {
            client.setEndpoint(configuration.getAmazonCwEndpoint());
        }
        return client;
    }
View Full Code Here

         * Creates an Enabler that sends values in the given namespace to the given AWS account
         *
         * @param namespace the namespace. Must be non-null and not empty.
         */
        public Enabler(String namespace, AWSCredentials creds) {
            this(namespace, new AmazonCloudWatchClient(creds));
        }
View Full Code Here

    /**
     * Get a CloudWatch client whose endpoint is configured based on properties.
     */
    public static AmazonCloudWatch cloudWatch(AWSCredentialsProvider credentials) {
        AmazonCloudWatch client = new AmazonCloudWatchClient(credentials);
        client.setEndpoint(System.getProperty(AwsPropertyKeys.AWS_CLOUD_WATCH_END_POINT.getBundle(),
                "monitoring.amazonaws.com"));
        return client;
    }
View Full Code Here

     * @param credentials Amazon credentials.
     * @deprecated use equivalent constructor that accepts an AWSCredentialsProvider.
     */
    @Deprecated
    public CloudWatchMetricObserver(String name, String namespace, AWSCredentials credentials) {
        this(name, namespace, new AmazonCloudWatchClient(credentials));
    }
View Full Code Here

    MetricUploaderThread(CloudWatchMetricConfig config,
            BlockingQueue<MetricDatum> queue) {
        this(config,
             queue,
             config.getCredentialsProvider() == null
             ? new AmazonCloudWatchClient()
             : new AmazonCloudWatchClient(config.getCredentialsProvider()));
    }
View Full Code Here

     * @throws IOException If an IO Exception occurs
     */
    public ScheduledCloudWatch() throws IOException {
        this(
            new H2DomainStatsData(),
            new AmazonCloudWatchClient(
                new BasicAWSCredentials(
                    Manifests.read("S3Auth-AwsCloudWatchKey"),
                    Manifests.read("S3Auth-AwsCloudWatchSecret")
                ),
                new ClientConfiguration().withProtocol(Protocol.HTTP)
View Full Code Here

    MetricUploaderThread(CloudWatchMetricConfig config,
            BlockingQueue<MetricDatum> queue) {
        this(config,
             queue,
             config.getCredentialsProvider() == null
             ? new AmazonCloudWatchClient()
             : new AmazonCloudWatchClient(config.getCredentialsProvider()));
    }
View Full Code Here

    MetricUploaderThread(CloudWatchMetricConfig config,
            BlockingQueue<MetricDatum> queue) {
        this(config,
             queue,
             config.getCredentialsProvider() == null
             ? new AmazonCloudWatchClient()
             : new AmazonCloudWatchClient(config.getCredentialsProvider()));
    }
View Full Code Here

            ExecutorService execService) {
        this(recordProcessorFactory, config, new AmazonKinesisClient(config.getKinesisCredentialsProvider(),
                config.getKinesisClientConfiguration()),
                new AmazonDynamoDBClient(config.getDynamoDBCredentialsProvider(),
                        config.getDynamoDBClientConfiguration()),
                new AmazonCloudWatchClient(config.getCloudWatchCredentialsProvider(),
                        config.getCloudWatchClientConfiguration()), execService);
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.cloudwatch.AmazonCloudWatchClient

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.