1 31 package org.objectweb.proactive.ext.locationserver; 32 33 import org.objectweb.proactive.ProActive; 34 import org.objectweb.proactive.core.UniqueID; 35 import org.objectweb.proactive.core.config.ProActiveConfiguration; 36 37 38 public class LocationServerFactory { 39 public LocationServerFactory() { 46 } 47 48 public static LocationServer getLocationServer() { 64 LocationServer server = null; 65 try { 66 server = (LocationServer) ProActive.lookupActive(ProActiveConfiguration.getLocationServerClass(), 67 ProActiveConfiguration.getLocationServerRmi()); 68 } catch (Exception e) { 69 e.printStackTrace(); 70 } 71 return server; 72 } 83 84 89 public static LocationServer getLocationServer(UniqueID id) { 90 return LocationServerFactory.getLocationServer(); 91 } 92 } 93 | Popular Tags |