protected ODocument getClusterConfiguration ( String iClusterName ) { final ODocument clusters = getConfiguredClusters ( ) ; if ( iClusterName == null ) iClusterName = ALL_WILDCARD ; final ODocument cfg ; if ( ! clusters . containsField ( iClusterName ) ) // NO CLUSTER IN CFG: GET THE DEFAULT ONE cfg = clusters . field ( ALL_WILDCARD ) ; else // GET THE CLUSTER CFG cfg = clusters . field ( iClusterName ) ; if ( cfg == null ) return new ODocument ( ) ; return cfg ; }
Gets the document representing the cluster configuration .