public static void addListener(ClusterEventListener listener) {
        ClusterManager.addListener(listener, 0);
    }
Registers a listener to receive events.

@param listener the listener.
xmppserver/src/main/java/org/jivesoftware/openfire/cluster/ClusterManager.java