Package org.apache.ace.agent

Examples of org.apache.ace.agent.FeedbackChannel


        Set<String> names = getFeedbackChannelNames();

        logDebug("Synchronizing feedback channels: %s", names);

        for (String name : names) {
            FeedbackChannel channel = getFeedbackChannel(name);
            if (channel != null) {
                try {
                    channel.sendFeedback();
                    logDebug("Feedback send succesfully for channel: %s", name);
                }
                catch (IOException e) {
                    // Hopefully temporary problem due to remote IO or configuration. No cause to abort the sync so we
                    // just log it as a warning.
View Full Code Here


        writeAuditEvent(eventType, props);
    }

    private void writeAuditEvent(int eventType, Map<String, String> payload) {
        try {
            FeedbackChannel channel = getFeedbackHandler().getChannel(EVENTLOGGER_FEEDBACKCHANNEL);
            boolean isExcluded;
            synchronized(m_excludeEventList) {
                isExcluded = m_excludeEventList.contains(eventType);
            }
            if (channel != null && !isExcluded) {
                channel.write(eventType, payload);
            }
        }
        catch (IOException e) {
            logWarning("Failed to write feedback event!", e);
        }
View Full Code Here

        private void sendFeedbackToServer() {
            try {
                FeedbackHandler feedbackHandler = m_agentControl.getFeedbackHandler();
                Set<String> channelNames = feedbackHandler.getChannelNames();
                for (String channelName : channelNames) {
                    FeedbackChannel channel = feedbackHandler.getChannel(channelName);

                    System.out.printf("Synchronizing feedback of %s with server...%n", channelName);

                    channel.sendFeedback();
                }
            }
            catch (Exception exception) {
                System.out.printf("Feedback synchronization failed with %s.%n", exception.getMessage());
                exception.printStackTrace(System.out);
View Full Code Here

        private void sendFeedbackToServer() {
            try {
                FeedbackHandler feedbackHandler = m_agentContext.getHandler(FeedbackHandler.class);
                Set<String> channelNames = feedbackHandler.getChannelNames();
                for (String channelName : channelNames) {
                    FeedbackChannel channel = feedbackHandler.getChannel(channelName);

                    logInfo("Synchronizing feedback of %s with server...", channelName);

                    channel.sendFeedback();
                }
            }
            catch (Exception exception) {
                logWarning("Feedback synchronization failed with %s.", exception, exception.getMessage());
            }
View Full Code Here

TOP

Related Classes of org.apache.ace.agent.FeedbackChannel

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.