private void initRMIParameters() throws Exception {
  if (rmiHostMaster == null || rmiPortMaster == null) {
    File confDir=ReplicatorRuntimeConf.locateReplicatorConfDir();
    File propsFile=new File(confDir,ReplicationServiceManager.CONFIG_SERVICES);
    println(String.format("Not all RMI parameters provided, using configuration: %s",propsFile));
    TungstenProperties serviceProps=PropertiesManager.loadProperties(propsFile);
    if (rmiPortMaster == null)     rmiPortMaster=serviceProps.getString(ReplicatorConf.RMI_PORT,ReplicatorConf.RMI_DEFAULT_PORT,false);
    if (rmiHostMaster == null)     rmiHostMaster=ReplicationServiceManager.getHostName(serviceProps);
  }
}

private void initRMIParameters ( ) throws Exception { if ( rmiHostMaster == null || rmiPortMaster == null ) { File confDir = ReplicatorRuntimeConf . locateReplicatorConfDir ( ) ; File propsFile = new File ( confDir , ReplicationServiceManager . CONFIG_SERVICES ) ; println ( String . format ( "Not all RMI parameters provided, using configuration: %s" , propsFile ) ) ; TungstenProperties serviceProps = PropertiesManager . loadProperties ( propsFile ) ; if ( rmiPortMaster == null ) rmiPortMaster = serviceProps . getString ( ReplicatorConf . RMI_PORT , ReplicatorConf . RMI_DEFAULT_PORT , false ) ; if ( rmiHostMaster == null ) rmiHostMaster = ReplicationServiceManager . getHostName ( serviceProps ) ; } }
tries to load services . properties and extract rmi parameters from there .
