00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030  
00031 package org.objectweb.proactive.core.util;
00032 
00033 
00040 public class IbisProperties {
00041     public static final String IBIS_DEFAULT_NAME_SERVER = "name_server";
00042     public static final String IBIS_DEFAULT_NAME_SERVER_POOL = "name_server_pool";
00043     public static final String IBIS_DEFAULT_POOL_HOST_NUMBER = "pool_host_number";
00044     private static java.util.Properties defaultProperties;
00045 
00046     static {
00047         defaultProperties = new java.util.Properties();
00048         IbisProperties.loadDefaultProperties();
00049     }
00050 
00051     public static void loadDefaultProperties() {
00052         defaultProperties.setProperty(IBIS_DEFAULT_NAME_SERVER, "localhost");
00053         defaultProperties.setProperty(IBIS_DEFAULT_NAME_SERVER_POOL, "rutget");
00054         defaultProperties.setProperty(IBIS_DEFAULT_POOL_HOST_NUMBER, "1");
00055         IbisProperties.addPropertiesToSystem(defaultProperties);
00056     }
00057 
00063     protected static void addPropertiesToSystem(java.util.Properties p) {
00064         for (java.util.Enumeration e = p.propertyNames(); e.hasMoreElements();) {
00065             String s = (String) e.nextElement();
00066 
00067             
00068             if (System.getProperty(s) == null) {
00069                 System.setProperty(s, p.getProperty(s));
00070             }
00071         }
00072     }
00073 
00074     public static void load() {
00075         
00076     }
00077 }