Package com.caucho.server.host

Examples of com.caucho.server.host.Host


      } catch (Exception e) {
        setConfigException(e);
      }

      if (_parent instanceof Host) {
        Host host = (Host) _parent;

        host.setConfigETag(null);
      }

      _lifecycle.toActive();

      clearCache();
View Full Code Here


   
    os.write(HmuxRequest.HMUX_CHANNEL);
    os.write(channel >> 8);
    os.write(channel);

    Host host = _server.getHost(hostName, 80);
    if (host == null) {
      writeString(os, HmuxRequest.HMUX_HEADER, "check-interval");
      writeString(os, HmuxRequest.HMUX_STRING,
      String.valueOf(_server.getDependencyCheckInterval() / 1000));

      if (isLoggable)
  log.fine(dbgId() + "host '" + host + "' not configured");
      return;
    }
    else if (! host.isActive()) {
      writeString(os, HMUX_UNAVAILABLE, "");

      if (isLoggable)
  log.fine(dbgId() + "host '" + host + "' not active");
      return;
    }

    if (host.getConfigETag() == null)
      sendQuery(null, host, hostName, url);

    if (etag == null) {
    }
    else if (etag.equals(host.getConfigETag())) {
      if (isLoggable)
  log.fine(dbgId() + "host '" + host + "' no change");
     
      writeString(os, HMUX_NO_CHANGE, "");
      return;
    }
    else if (etag.equals("h-" + host.getHostName())) {
      if (isLoggable) {
  log.fine(dbgId() + "host alias '" + hostName + " -> '"
     + host + "' no change");
      }
     
View Full Code Here

TOP

Related Classes of com.caucho.server.host.Host

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.