public synchronized static JarExecutor getInstance(Properties config) throws ExecutorException { if (instance == null) { instance = new JarExecutor(config); } return instance; }
final JarExecutor j = JarExecutor.getInstance(System.getProperties()); j.start(); serverBaseUrl = "http://localhost:" + j.getServerPort(); log.info("Forked subprocess server listening to: " + serverBaseUrl);
final JarExecutor j = JarExecutor.getInstance(System.getProperties()); j.start(); serverBaseUrl = "http://localhost:" + j.getServerPort(); log.info("Forked subprocess server listening to: " + serverBaseUrl);
public static JarExecutor getInstance(Properties config) throws ExecutorException { if (instance == null) { synchronized (JarExecutor.class) { if (instance == null) { instance = new JarExecutor(config); } } } return instance; }