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");