Examples of Host


Examples of org.rzo.yajsw.srvmgr.client.Host

            {
              synchronized(proxies)
              {
            proxies.put(host.getName(), proxy);
              }
            Host newHost = new Host(host.getName(), host.getPort());
            newHost.setIncluded(true);
            newHost.setState("CONNECTED");
            hostsList.remove(host.getName());
            hostsList.put(newHost.getName(), newHost);
            //if (host.isIncluded())
            // TODO  servicesList.addService(host.getName(), proxy);
            }
            else
              future.getChannel().close();
          }
        }
        catch (Exception e)
        {
          System.out.println("error accessing "+host.getName());
          e.printStackTrace();
         
          connected = false;
          if (future != null)
            future.getChannel().close();
        }
       
      }
       
      if (!connected)
      {
        synchronized(proxies)
        {
        disconnect(host, proxies.remove(host.getName()));
        }
        changed = true;
      }
      else if (proxy == null && !"DISCONNECTED".equals(host.getState()))
      {
        Host newHost = new Host(host.getName(), host.getPort());
        newHost.setIncluded(host.isIncluded());
        newHost.setState("DISCONNECTED");
        hostsList.put(newHost.getName(), newHost);
      }
    }
    }
  }
View Full Code Here

Examples of org.sonar.wsclient.Host

    }
    return sonar;
  }

  private Host createHost() {
    Host host;
    final String safeHostUrl = getHostSafe(mySonarServerConfig.getHostUrl());
    if (mySonarServerConfig.isAnonymous()) {
      host = new Host(safeHostUrl);
    } else {
      mySonarServerConfig.loadPassword();
      host = new Host(safeHostUrl, mySonarServerConfig.getUser(), mySonarServerConfig.getPassword());
      mySonarServerConfig.clearPassword();
    }
    return host;
  }
View Full Code Here

Examples of org.talamonso.OMAPI.Objects.Host

      c.setAuth(omapiKeyName, omapiKeyValue);
    } catch (OmapiException e) {
      System.err.println(e.getMessage());
    }

    Host searchHost = new Host(c);
;
    searchHost.setName(name);
    try {
      Host existingHost=searchHost.send(Message.OPEN);
      existingHost.delete();

    } catch (OmapiObjectException e) {
      // Object does not exist
      // So we can try to create it       
    }

    try {
      Host newHost = new Host(c);
      newHost.setName(name);
      newHost.setHardwareAddress(macAddress);
      newHost.setHardwareType(1);
      newHost.send(Message.CREATE);
    } catch (OmapiObjectException e1) {
      // Update failed for some reason
      e1.printStackTrace();
    }
View Full Code Here

Examples of org.voltdb.catalog.Host

    /**
     * Take snapshots
     */
    private void takeSnapshot(){
        // Do this only on site lowest id
        Host catalog_host = this.getHost();
        Integer lowest_site_id = Integer.MAX_VALUE, s_id;

        for (Site st : CatalogUtil.getAllSites(catalog_host)) {
            s_id = st.getId();
            lowest_site_id = Math.min(s_id, lowest_site_id);
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.