Esempio n. 1
0
 /**
  * Sets the fully qualified hostname of this running instance.This is mostly used in
  * constructing the {@link URL} for communicating with the instance.
  *
  * @param hostName the host name of the instance.
  * @return the {@link InstanceInfo} builder.
  */
 public Builder setHostName(String hostName) {
   String existingHostName = result.hostName;
   result.hostName = hostName;
   if ((existingHostName != null) && !(hostName.equals(existingHostName))) {
     refreshStatusPageUrl()
         .refreshHealthCheckUrl()
         .refreshVIPAddress()
         .refreshSecureVIPAddress();
   }
   return this;
 }