Package com.rackspacecloud.blueflood.service

Examples of com.rackspacecloud.blueflood.service.ScheduleContext


        // should we inject the Dropwizard config into Blueflood?
        if (ingestConfiguration.isPopulateBluefloodConfigurationSettings()) {
            overrideBluefloodConfiguration(ingestConfiguration);
        }
       
        final ScheduleContext rollupContext = new ScheduleContext(System.currentTimeMillis(), Util.parseShards("NONE"));
       
        // construct the ingestion writer.
        ClassLoader loader = IMetricsWriter.class.getClassLoader();
        Class writerImpl = loader.loadClass(ingestConfiguration.getMetricsWriterClass());
        IMetricsWriter writer = (IMetricsWriter) writerImpl.newInstance();
View Full Code Here


    @BeforeClass
    public static void setUp() {
        httpPort = Configuration.getInstance().getIntegerProperty(HttpConfig.HTTP_INGESTION_PORT);
        manageShards.add(1); manageShards.add(5); manageShards.add(6);
        context = spy(new ScheduleContext(System.currentTimeMillis(), manageShards));
        httpIngestionService = new HttpIngestionService();
        httpIngestionService.startService(context, new AstyanaxMetricsWriter());
        vendor = new HttpClientVendor();
        client = vendor.getClient();
    }
View Full Code Here

        // verify the configuration is not broken
        checkConfiguration();

        // establish a context. It will get used by the ingestor and shard state services.
        final Collection<Integer> shards = Collections.unmodifiableCollection(Util.parseShards(config.getStringProperty(CoreConfig.SHARDS)));
        final ScheduleContext rollupContext = new ScheduleContext(System.currentTimeMillis(), shards);

        String host = config.getStringProperty("UDP_BIND_HOST");
        int port = config.getIntegerProperty("UDP_BIND_PORT");
        // start ingesting.
        startIngestion(rollupContext, new InetSocketAddress(host, port));
View Full Code Here

TOP

Related Classes of com.rackspacecloud.blueflood.service.ScheduleContext

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.