powered by Jive Software

Clustering Plugin

A commercial clustering plugin was available some time ago. This plugin was made open source, see http://www.igniterealtime.org/projects/openfire/plugins.jsp without the Coherence files. Currently one does need an old Coherence version to get it running,

If one wants to create a clustering plugin based on an existing clustering solution one does need to look at the packages org.jivesoftware.util.cache and org.jivesoftware.openfire.cluster. In those packages one will find interfaces like:

  • ClusterNodeInfo

  • CacheFactoryStrategy

  • ExternalizableUtilStrategy

  • ClusterTask

  • Cache

References:

http://www.igniterealtime.org/community/message/174820

http://www.igniterealtime.org/community/thread/36463

I try to modify this plugin to be used with new coherence version.But I found sth like this :

publisherStats[STATS_CPU_TIME] = cluster.getPublisher().getStatsCpu();

publisherStats[STATS_SENT] = cluster.getPublisher().getStatsSent();

publisherStats[STATS_RESENT] = cluster.getPublisher().getStatsResent();

receiverStats[STATS_SENT] = cluster.getReceiver().getStatsReceived();

receiverStats[STATS_RESENT] = cluster.getReceiver().getStatsRepeated();

cluster.getPublisher().resetStats();

cluster.getReceiver().resetStats();

are not support in newer coherence

Bucause I am not familiar with coherence.

Do you have some suggestion about how to migrate these code to newer coherence?

Thanks