private ClusterConfigInfoEx getClusterConfiguration ( ConnectionResources connectionResources , ManagedObjectReference clusterMor , String clusterName ) throws RuntimeFaultFaultMsg , InvalidPropertyFaultMsg { ObjectContent [ ] objectContents = GetObjectProperties . getObjectProperties ( connectionResources , clusterMor , new String [ ] { ClusterParameter . CONFIGURATION_EX . getValue ( ) } ) ; if ( objectContents != null && objectContents . length == 1 ) { List < DynamicProperty > dynamicProperties = objectContents [ 0 ] . getPropSet ( ) ; if ( dynamicProperties != null && dynamicProperties . size ( ) == 1 && dynamicProperties . get ( 0 ) . getVal ( ) instanceof ClusterConfigInfoEx ) { return ( ClusterConfigInfoEx ) dynamicProperties . get ( 0 ) . getVal ( ) ; } } throw new RuntimeException ( String . format ( ANOTHER_FAILURE_MSG , clusterName ) ) ; }
Das method gets the current cluster configurations .