Search in sources :

Example 1 with ConversationEvent

use of org.jivesoftware.openfire.archive.ConversationEvent in project Openfire by igniterealtime.

the class SendConversationEventsTask method run.

public void run() {
    MonitoringPlugin plugin = (MonitoringPlugin) XMPPServer.getInstance().getPluginManager().getPlugin(MonitoringConstants.NAME);
    ConversationManager conversationManager = (ConversationManager) plugin.getModule(ConversationManager.class);
    for (ConversationEvent event : events) {
        try {
            event.run(conversationManager);
        } catch (Exception e) {
            Log.error("Error while processing chat archiving event", e);
        }
    }
}
Also used : MonitoringPlugin(org.jivesoftware.openfire.plugin.MonitoringPlugin) ConversationManager(org.jivesoftware.openfire.archive.ConversationManager) ConversationEvent(org.jivesoftware.openfire.archive.ConversationEvent) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 ConversationEvent (org.jivesoftware.openfire.archive.ConversationEvent)1 ConversationManager (org.jivesoftware.openfire.archive.ConversationManager)1 MonitoringPlugin (org.jivesoftware.openfire.plugin.MonitoringPlugin)1