public static void fireJoinedCluster(boolean asynchronous) {
        try {
            Log.info("Firing joined cluster event for this node");
            Event event = new Event(EventType.joined_cluster, null);
            events.put(event);
            if (!asynchronous) {
                while (!event.isProcessed()) {
                    Thread.sleep(50);
                }
            }
        } catch (InterruptedException e) {
            // Should never happen
            Log.error(e.getMessage(), e);
        }
    }
Triggers event indicating that this JVM is now part of a cluster. At this point the
{@link org.jivesoftware.openfire.XMPPServer#getNodeID()} holds the new nodeID value and
the old nodeID value is passed in case the listener needs it.
<p>
When joining the cluster as the senior cluster member the {@link #fireMarkedAsSeniorClusterMember()}
event will be sent right after this event.
</p>
This event will be triggered in another thread. This will avoid potential deadlocks
in Coherence.

@param asynchronous true if event will be triggered in background
xmppserver/src/main/java/org/jivesoftware/openfire/cluster/ClusterManager.java