Package org.apache.stratos.cartridge.agent.data.publisher

Examples of org.apache.stratos.cartridge.agent.data.publisher.DataContext


        log.info("Starting log publisher for file: " + filePath + ", thread: " + Thread.currentThread().getName());

        scanner = new Scanner(process.getInputStream());
        while (scanner.hasNextLine()) {

            DataContext dataContext = new DataContext();
            // set the relevant data
            dataContext.setCorrelationData(null);
            dataContext.setMetaData(new Object[] {memberId});
            dataContext.setPayloadData(new Object[] {scanner.nextLine()});
            // publish data
            publish(dataContext);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.stratos.cartridge.agent.data.publisher.DataContext

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.