public static void startLocatorInVM(final int locatorPort) { File logFile = new File("locator-" + locatorPort + ".log"); Properties props = new Properties(); try { locator = Locator.startLocatorAndDS(locatorPort, logFile, null, props); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
public static void startLocator(String address, int port, String logFile) throws IOException { InetAddress inetAddress = InetAddress.getByName(address); Locator.startLocatorAndDS(port, new File(logFile), inetAddress, new Properties()); }
public void run() { File lf = new File(uname + "-locator2-" + port2 + ".log"); try { Locator.startLocatorAndDS(port2, lf, properties); } catch (IOException ios) { fail("Unable to start locator2", ios); } } });
public void run() { File lf = new File(uname + "-locator2-" + port2 + ".log"); try { Locator.startLocatorAndDS(port2, lf, properties); } catch (IOException ios) { fail("Unable to start locator2", ios); } } });
public void run() { File lf = new File(uname + "-locator2-" + port2 + ".log"); try { Locator.startLocatorAndDS(port2, lf, properties); } catch (IOException ios) { fail("Unable to start locator2", ios); } } });
public void run() { File logFile = new File(uniqueName + "-locator" + port2 + ".log"); try { Locator.startLocatorAndDS(port2, logFile, dsProps); } catch (IOException ex) { fail("While starting locator on port " + port2, ex); } } });
public Object call() throws IOException { Properties p = getDistributedSystemProperties(); // I never want this locator to end up starting a jmx manager // since it is part of the unit test framework p.setProperty("jmx-manager", "false"); //Disable the shared configuration on this locator. //Shared configuration tests create their own locator // p.setProperty("enable-cluster-configuration", "false"); Locator.startLocatorAndDS(locatorPort, locatorLogFile, p); return null; } }, "call");
public void run() { File lf = new File(uname + "-locator1-" + port1 + ".log"); try { Locator.startLocatorAndDS(port2, lf, properties); } catch (IOException ios) { fail("Unable to start locator1", ios); } } });
public void run() { File logFile = new File(uniqueName + "-locator" + port1 + ".log"); try { Locator.startLocatorAndDS(port1, logFile, dsProps); } catch (IOException ex) { fail("While starting locator on port " + port1, ex); } } });
public void run() { File logFile = new File(uniqueName + "-locator" + port + ".log"); try { Properties locProps = new Properties(); locProps.setProperty("mcast-port", "0"); Locator.startLocatorAndDS(port, logFile, locProps); } catch (IOException ex) { fail("While starting locator on port " + port, ex); } } });
public Object call() throws IOException { try{ Properties p = getDistributedSystemProperties(); p.putAll(pr); Locator.startLocatorAndDS(locatorPort, locatorLogFile, p); } catch(Exception e){ e.printStackTrace(); } return null; } });
public void run() { File logFile = new File(getUniqueName() + "-locator" + port2 + ".log"); try { Locator.startLocatorAndDS(port2, logFile, null, dsProps, true, true, "locator2HNFC"); } catch (IOException ex) { fail("While starting locator on port " + port2, ex); } } });
public void run() { File logFile = new File(getUniqueName() + "-locator" + port + ".log"); try { // changed to create a DS so that locator is a member Locator.startLocatorAndDS(port, logFile, hostInetAddr, p); } catch (IOException ex) { fail("While starting locator on port " + port, ex); } } });
public void run() { File lf = new File(uname + "-locator2-" + port2 + ".log"); try { Locator.startLocatorAndDS(port2, lf, properties); MembershipManagerHelper.inhibitForcedDisconnectLogging(true); } catch (IOException ios) { fail("Unable to start locator2", ios); } } });
public void run() { File logFile = new File(getUniqueName() + "-locator" + port1 + ".log"); try { Locator.startLocatorAndDS(port1, logFile, null, dsProps, true, true, null); } catch (IOException ex) { fail("While starting locator on port " + port1, ex); } } });
@Override public void run2() throws CacheException { try { TcpServer.getGossipVersionMapForTestOnly().put(TcpServer.TESTVERSION-100, Version.CURRENT_GFE_ORDINAL); Locator.startLocatorAndDS(port0, logFile0, props); } catch (IOException e) { fail("Locator1 start failed with Gossip Version: " + TcpServer.GOSSIPVERSION + "!", e); } } });
public void run() { File logFile = new File(getUniqueName() + "-locator" + port1 + ".log"); try { Locator.startLocatorAndDS(port1, logFile, null, dsProps, true, true, null); } catch (IOException ex) { fail("While starting locator on port " + port1, ex); } } });
public void run() { File logFile = new File(getUniqueName() + "-locator" + port2 + ".log"); try { Locator.startLocatorAndDS(port2, logFile, null, dsProps, true, true, "locator2HNFC"); } catch (IOException ex) { fail("While starting locator on port " + port2, ex); } } });
public void testBothPeerAndServer() throws Exception { Properties props = new Properties(); props.setProperty("mcast-port", "0"); // props.setProperty(DistributionConfig.LOG_LEVEL_NAME , getGemFireLogLevel()); locator = Locator.startLocatorAndDS(port, tmpFile, null, props); Assert.assertTrue(locator.isPeerLocator()); Assert.assertTrue(locator.isServerLocator()); Thread.sleep(1000); doServerLocation(); doGossip(); locator.stop(); }
public void run() { try { locatorPort = locPort; Properties props = getDistributedSystemProperties(); props.put("log-file", "autoReconnectLocatorVM"+VM.getCurrentVMNum()+"_"+getPID()+".log"); locator = Locator.startLocatorAndDS(locatorPort, null, props); addExpectedException("com.gemstone.gemfire.ForcedDisconnectException||Possible loss of quorum"); // MembershipManagerHelper.getMembershipManager(InternalDistributedSystem.getConnectedInstance()).setDebugJGroups(true); } catch (IOException e) { fail("unable to start locator", e); } } });