public void createPolicyManagerConfiguration(String clusterName) throws ConfigurationException {
  String policyMgrConfigFileName=getModulePropertiesFileName(ConfigurationConstants.PM_PROPERTIES,getClusterHome());
  File policyMgrConfigFile=new File(policyMgrConfigFileName);
  if (policyMgrConfigFile.exists()) {
    logger.debug(String.format("Policy manager configuration already exists at '%s'",policyMgrConfigFileName));
    return;
  }
  ClusterPolicyManagerConfiguration config=new ClusterPolicyManagerConfiguration(clusterName);
  config.setClusterHome(getClusterHome());
  config.setHost(ConfigurationConstants.PM_RMI_DEFAULT_HOST);
  TungstenProperties configProps=new TungstenProperties();
  configProps.extractProperties(config,true);
  logger.debug("Writing out a policy manager configuration to '" + policyMgrConfigFileName + "'");
  logger.debug("policymgr.properties contains:" + configProps);
  config.store(configProps,policyMgrConfigFileName);
}

public void createPolicyManagerConfiguration ( String clusterName ) throws ConfigurationException { String policyMgrConfigFileName = getModulePropertiesFileName ( ConfigurationConstants . PM_PROPERTIES , getClusterHome ( ) ) ; File policyMgrConfigFile = new File ( policyMgrConfigFileName ) ; if ( policyMgrConfigFile . exists ( ) ) { logger . debug ( String . format ( "Policy manager configuration already exists at '%s'" , policyMgrConfigFileName ) ) ; return ; } ClusterPolicyManagerConfiguration config = new ClusterPolicyManagerConfiguration ( clusterName ) ; config . setClusterHome ( getClusterHome ( ) ) ; config . setHost ( ConfigurationConstants . PM_RMI_DEFAULT_HOST ) ; TungstenProperties configProps = new TungstenProperties ( ) ; configProps . extractProperties ( config , true ) ; logger . debug ( "Writing out a policy manager configuration to '" + policyMgrConfigFileName + "'" ) ; logger . debug ( "policymgr.properties contains:" + configProps ) ; config . store ( configProps , policyMgrConfigFileName ) ; }
creates a default policy manager configuration in the correct location
