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

Examples of org.apache.stratos.cartridge.agent.data.publisher.exception.DataPublisherException


        ports.add(Integer.parseInt(dataPublisherConfig.getMonitoringServerSecurePort()));

        // wait till monitoring server ports are active
        CartridgeAgentUtils.waitUntilPortsActive(dataPublisherConfig.getMonitoringServerIp(), ports);
        if(!CartridgeAgentUtils.checkPortsActive(dataPublisherConfig.getMonitoringServerIp(), ports)) {
            throw new DataPublisherException("Monitoring server not active, data publishing is aborted");
        }

        // stream definition identifier = {log.publisher.<cluster id>}
        try {
            streamDefinition = new StreamDefinition(Constants.LOG_PUBLISHER_STREAM_PREFIX + CartridgeAgentConfiguration.getInstance().getClusterId(),
View Full Code Here


    public void start (String filePath) throws DataPublisherException {

        File logFile = new File (filePath);
        if (!logFile.exists() || !logFile.canRead() || logFile.isDirectory()) {
            throw new DataPublisherException("Unable to read the file at path " + filePath);
        }

        LogPublisher fileBasedLogPublisher = new FileBasedLogPublisher(dataPublisherConfig, streamDefinition, filePath,
               CartridgeAgentConfiguration.getInstance().getMemberId());
View Full Code Here

TOP

Related Classes of org.apache.stratos.cartridge.agent.data.publisher.exception.DataPublisherException

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.