public static InternalLocator startLocator(int port, File logFile, InternalLogWriter logWriter,
      InternalLogWriter securityLogWriter, HostAddress bindAddress, boolean startDistributedSystem,
      Properties distributedSystemProperties, String hostnameForClients)
      throws IOException {
    return startLocator(port, logFile, logWriter, securityLogWriter, bindAddress,
        startDistributedSystem, distributedSystemProperties, hostnameForClients,
        Paths.get(System.getProperty("user.dir")));
  }
Creates a distribution locator that runs in this VM on the given port and bind address in the
default working directory (Java "user.dir" System Property).

<p>
This is for internal use only as it does not create a distributed system unless told to do so.

@param port the tcp/ip port to listen on
@param logFile the file that log messages should be written to
@param logWriter a log writer that should be used (logFile parameter is ignored)
@param securityLogWriter the logWriter to be used for security related log messages
@param startDistributedSystem if true, a distributed system is started
@param distributedSystemProperties optional properties to configure the distributed system
       (e.g., mcast
       addr/port, other locators)
@param hostnameForClients the name to give to clients for connecting to this locator
geode-core/src/main/java/org/apache/geode/distributed/internal/InternalLocator.java