/** * @param clusterInfo * the available partition/host/databases/port combinations in the cluster */ @Override public void setPartitioningInformation( PartitionDatabaseMeta[] clusterInfo ) { for ( int nr = 0; nr < clusterInfo.length; nr++ ) { PartitionDatabaseMeta meta = clusterInfo[nr]; attributes.put( ATTRIBUTE_CLUSTER_PARTITION_PREFIX + nr, Const.NVL( meta.getPartitionId(), "" ) ); attributes.put( ATTRIBUTE_CLUSTER_HOSTNAME_PREFIX + nr, Const.NVL( meta.getHostname(), "" ) ); attributes.put( ATTRIBUTE_CLUSTER_PORT_PREFIX + nr, Const.NVL( meta.getPort(), "" ) ); attributes.put( ATTRIBUTE_CLUSTER_DBNAME_PREFIX + nr, Const.NVL( meta.getDatabaseName(), "" ) ); attributes.put( ATTRIBUTE_CLUSTER_USERNAME_PREFIX + nr, Const.NVL( meta.getUsername(), "" ) ); attributes.put( ATTRIBUTE_CLUSTER_PASSWORD_PREFIX + nr, Const.NVL( Encr .encryptPasswordIfNotUsingVariables( meta.getPassword() ), "" ) ); } }
appendConnectionInfo( report, db.environmentSubstitute( partitioningInformation[i].getHostname() ), db .environmentSubstitute( partitioningInformation[i].getPort() ), db .environmentSubstitute( partitioningInformation[i].getDatabaseName() ) );
hostname = environmentSubstitute( partition.getHostname() ); port = environmentSubstitute( partition.getPort() ); databaseName = environmentSubstitute( partition.getDatabaseName() );
XulTreeRow row = clusterParameterTree.getRootChildren().addNewRow(); row.addCellText( 0, Const.NVL( meta.getPartitionId(), "" ) ); row.addCellText( 1, Const.NVL( meta.getHostname(), "" ) ); row.addCellText( 2, Const.NVL( meta.getPort(), "" ) ); row.addCellText( 3, Const.NVL( meta.getDatabaseName(), "" ) );