Examples of Host


Examples of aleph.Host

      }
      StringBuffer warning = new StringBuffer();
      boolean ok = true;      // so far so good
      for (Iterator iter = options.liveHosts.iterator();
           iter.hasNext();) { // enumerate live hosts
        Host host = (Host) iter.next();
        if (! host.stop()) {  // did we shut it down?
          warning.append(" "); // if not, whine about it
          warning.append(host.toString());
          ok = false;
        }
      }
      if (!ok)
        JOptionPane.showMessageDialog(null,
View Full Code Here

Examples of autotest.afe.models.Host

     */
    protected List<JSONObject> handleJsonResult(JSONValue result) {
        List<JSONObject> resultList = super.handleJsonResult(result);
        List<JSONObject> hosts = new ArrayList<JSONObject>();
        for (JSONObject row : resultList) {
            Host host = Host.fromJsonObject(row);
            processHost(host);
            hosts.add(host);
        }
        return hosts;
    }
View Full Code Here

Examples of ch.rakudave.jnetmap.model.device.Host

public class DeviceFactory implements Factory<Device> {
  private static Type type = Type.Workstation;

  @Override
  public Device create() {
    return new Host(type);
  }
View Full Code Here

Examples of com.aerospike.client.Host

    for (String friend : friendNames) {
      String friendInfo[] = friend.split(":");
      String host = friendInfo[0];
      int port = Integer.parseInt(friendInfo[1]);
      Host alias = new Host(host, port);
      Node node = cluster.findAlias(alias);
     
      if (node != null) {
        node.referenceCount++;
      }
View Full Code Here

Examples of com.caucho.server.host.Host

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

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

      if (isLoggable)
        log.fine(dbgId() + "host '" + hostName + "' not configured");
      return;
    }
    else if (! host.getState().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.getName())) {
      if (isLoggable) {
        log.fine(dbgId() + "host alias '" + hostName + " -> '"
                 + host + "' no change");
      }
     
View Full Code Here

Examples of com.caucho.server.host.Host

   
    if (request.isSecure())
      return AuthorizationResult.DEFAULT_ALLOW;

    WebApp webApp = (WebApp) application;
    Host host = webApp.getHost();
    String secureHost = host.getSecureHostName();

    if (secureHost != null) {
      String url = ("https://" + secureHost + webApp.getContextPath()
                    + request.getServletPath());
View Full Code Here

Examples of com.caucho.server.host.Host

      HostContainer hostContainer = _hostContainer;

      if (hostContainer == null)
        return null;

      Host host = hostContainer.getHost(hostName, port);

      if (host == null)
        return null;

      return host.getWebAppContainer().findWebAppByURI(url);
    } catch (Throwable e) {
      log.log(Level.WARNING, e.toString(), e);

      return null;
    }
View Full Code Here

Examples of com.caucho.server.host.Host

    Server server = Server.getCurrent();

    if (server == null || ! server.isActive())
      return null;
   
    Host host = server.getHost(name, 5222);

    if (host == null)
      return null;

    // jms/3f00 vs server/2e06
    if ("default".equals(host.getHostName())
        && ! "localhost".equals(name)) {
      return null;
    }

    Broker broker = host.getBamBroker();

    synchronized (_brokerMap) {
      _brokerMap.put(name, new WeakReference<Broker>(broker));
    }
View Full Code Here

Examples of com.caucho.server.host.Host

   * Returns the owning host
   */
  @Override
  public HostMXBean getHost()
  {
    Host host = getController().getHost();

    if (host != null)
      return host.getAdmin();
    else
      return null;
  }
View Full Code Here

Examples of com.cloud.host.Host

            ConcurrentOperationException, InsufficientCapacityException, ResourceUnavailableException {
       
        VirtualMachine vm = vmProfile.getVirtualMachine();
        NetworkVO networkVO = _networksDao.findById(network.getId());
        DataCenter dc = _configMgr.getZone(network.getDataCenterId());
        Host host = _hostDao.findById(vm.getHostId());
        DeployDestination dest = new DeployDestination(dc, null, null, host);
       
        NicProfile nic = getNicProfileForVm(network, requested, vm);
       
        //1) allocate nic (if needed)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.