Package storm.kafka.KafkaConfig

Examples of storm.kafka.KafkaConfig.StaticHosts


public class StaticCoordinator implements PartitionCoordinator {
    Map<GlobalPartitionId, PartitionManager> _managers = new HashMap<GlobalPartitionId, PartitionManager>();
    List<PartitionManager> _allManagers = new ArrayList();

    public StaticCoordinator(DynamicPartitionConnections connections, Map stormConf, SpoutConfig config, ZkState state, int taskIndex, int totalTasks, String topologyInstanceId) {
        StaticHosts hosts = (StaticHosts) config.hosts;
        List<GlobalPartitionId> allPartitionIds = new ArrayList();
        for(HostPort h: hosts.hosts) {
            for(int i=0; i<hosts.partitionsPerHost; i++) {
                allPartitionIds.add(new GlobalPartitionId(h, i));
            }
View Full Code Here

TOP

Related Classes of storm.kafka.KafkaConfig.StaticHosts

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.