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