Beispiel #1
0
 /**
  * Get the assigned console host. If it's empty, it returns host IP.
  *
  * @return console host
  */
 public String getConsoleHost() {
   String consoleHost = this.getConsoleProperties().getConsoleHost();
   if (StringUtils.isEmpty(consoleHost)) {
     consoleHost = NetworkUtil.getLocalHostAddress();
   }
   return consoleHost;
 }
 public PropertyBuilder createPropertyBuilder(String hostString) throws DirectoryException {
   Directory directory = new Directory(new File("."));
   GrinderProperties property = new GrinderProperties();
   return new PropertyBuilder(
       property, directory, new File("."), true, hostString, NetworkUtil.getLocalHostName());
 }