public static int getMaxClusterNodes() {
        return cacheFactoryStrategy.getMaxClusterNodes();
    }
Returns the maximum number of cluster members allowed. A value of 0 will
be returned when clustering is not allowed.

@return the maximum number of cluster members allowed or 0 if clustering is not allowed.
xmppserver/src/main/java/org/jivesoftware/util/cache/CacheFactory.java