Package org.apache.flume.conf.properties

Examples of org.apache.flume.conf.properties.PropertiesFileConfigurationProvider


      InstantiationException {

    final FlumeNode node = new FlumeNode();
    DefaultLogicalNodeManager nodeManager = new DefaultLogicalNodeManager();
    AbstractFileConfigurationProvider configurationProvider =
        new PropertiesFileConfigurationProvider();

    configurationProvider.setChannelFactory(channelFactory);
    configurationProvider.setSourceFactory(sourceFactory);
    configurationProvider.setSinkFactory(sinkFactory);

    configurationProvider.setNodeName(nodeName);
    configurationProvider.setConfigurationAware(nodeManager);
    configurationProvider.setFile(configurationFile);

    Preconditions.checkState(configurationFile != null,
        "Configuration file not specified");
    Preconditions.checkState(nodeName != null, "Node name not specified");
View Full Code Here


  public void run() throws LifecycleException, InterruptedException,
      InstantiationException {

    final FlumeNode node = new FlumeNode();
    DefaultLogicalNodeManager nodeManager = new DefaultLogicalNodeManager();
    AbstractFileConfigurationProvider configurationProvider = new PropertiesFileConfigurationProvider();

    configurationProvider.setChannelFactory(channelFactory);
    configurationProvider.setSourceFactory(sourceFactory);
    configurationProvider.setSinkFactory(sinkFactory);

    configurationProvider.setNodeName(nodeName);
    configurationProvider.setConfigurationAware(nodeManager);
    configurationProvider.setFile(configurationFile);

    Preconditions.checkState(configurationFile != null,
        "Configuration file not specified");
    Preconditions.checkState(nodeName != null, "Node name not specified");
View Full Code Here

TOP

Related Classes of org.apache.flume.conf.properties.PropertiesFileConfigurationProvider

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.