com.amazonaws.services.kinesis.metrics.interfaces.IMetricsFactory Java Examples

The following examples show how to use com.amazonaws.services.kinesis.metrics.interfaces.IMetricsFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: KinesisConnectorMetricsExecutor.java    From aws-big-data-blog with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a new KinesisConnectorMetricsExecutor.
 * 
 * @param configFile The name of the configuration file to look for on the classpath
 */
public KinesisConnectorMetricsExecutor(String configFile) {
    super(configFile);

    // Amazon CloudWatch Metrics Factory used to emit metrics in KCL
    IMetricsFactory mFactory =
            new CWMetricsFactory(config.AWS_CREDENTIALS_PROVIDER,
                    config.CLOUDWATCH_NAMESPACE,
                    config.CLOUDWATCH_BUFFER_TIME,
                    config.CLOUDWATCH_MAX_QUEUE_SIZE);
    super.initialize(config, mFactory);
}
 
Example #2
Source File: KinesisConnectorMetricsExecutor.java    From amazon-kinesis-connectors with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a new KinesisConnectorMetricsExecutor.
 * 
 * @param configFile The name of the configuration file to look for on the classpath
 */
public KinesisConnectorMetricsExecutor(String configFile) {
    super(configFile);

    // Amazon CloudWatch Metrics Factory used to emit metrics in KCL
    IMetricsFactory mFactory =
            new CWMetricsFactory(config.AWS_CREDENTIALS_PROVIDER,
                    config.CLOUDWATCH_NAMESPACE,
                    config.CLOUDWATCH_BUFFER_TIME,
                    config.CLOUDWATCH_MAX_QUEUE_SIZE);
    super.initialize(config, mFactory);
}
 
Example #3
Source File: KinesisSource.java    From datacollector with Apache License 2.0 4 votes vote down vote up
@VisibleForTesting
void setMetricsFactory(IMetricsFactory metricsFactory) {
  this.metricsFactory = metricsFactory;
}