geode-core/src/test/java/org/apache/geode/internal/cache/rollingupgrade/RollingUpgrade2DUnitTest.java
public static void startLocator(final String serverHostName, final int port,
      final String testName, Properties props) throws Exception {


    InetAddress bindAddr = null;
    try {
      bindAddr = InetAddress.getByName(serverHostName);// getServerHostName(vm.getHost()));
    } catch (UnknownHostException uhe) {
      throw new Error("While resolving bind address ", uhe);
    }

    Locator.startLocatorAndDS(port, new File(""), bindAddr, props, true, true, null);
    Thread.sleep(5000); // bug in 1.0 - cluster config service not immediately available
  }
/**
   * Starts a locator with given configuration.
   */
Starts a locator with given configuration.
Starts a locator with given configuration .
public static void startLocator(final String serverHostName, final int port,
      final String testName, Properties props) throws Exception {
    InetAddress bindAddr = null;
    try {
      bindAddr = InetAddress.getByName(serverHostName);
    } catch (UnknownHostException uhe) {
      throw new Error("While resolving bind address ", uhe);
    }
    Locator.startLocatorAndDS(port, new File(""), bindAddr, props, true, true, null);
    Thread.sleep(5000); 
  }
public static void startLocator ( final String serverHostName , final int port , final String testName , Properties props ) throws Exception { InetAddress bindAddr = null ; try { bindAddr = InetAddress . getByName ( serverHostName ) ; } catch ( UnknownHostException uhe ) { throw new Error ( "While resolving bind address " , uhe ) ; } Locator . startLocatorAndDS ( port , new File ( "" ) , bindAddr , props , true , true , null ) ; Thread . sleep ( 5000 ) ; }
Starts a locator with given configuration.
Starts a locator with given configuration .
// getServerHostName(vm.getHost())); // bug in 1.0 - cluster config service not immediately available