Package edu.indiana.extreme.gfac.beans

Examples of edu.indiana.extreme.gfac.beans.HostBean


   * @return hostName
   * @throws GfacException
   */
  public String updateObject(RegistryService regService, BeanObject host)
      throws GfacException {
    HostBean hostBean = (HostBean) host;
//    HostDescriptionDocument oldHostDesc = RegistryUtil.getHostDesc(
//        regService, hostBean.getHostName());
    String hostDescStr = hostXMLRequest((HostBean) host, null);
    regService.removeHostDesc(hostBean.getHostName());
    regService.registerHostDesc(hostDescStr);
    return hostBean.getHostName();
  }
View Full Code Here


   *            : Object of host bean
   * @throws GfacException
   */
  public void removeObject(RegistryService regService, BeanObject host)
      throws GfacException {
    HostBean hostBean = (HostBean) host;
    regService.removeHostDesc(hostBean.getHostName());
  }
View Full Code Here

      String hostName) throws GfacException {
    String hostDescStr = registryService.getHostDesc(hostName);
    if (hostDescStr != null) {
      HostDescriptionType hostDescriptionType = GfacUtils
          .parseHostDescirption(hostDescStr);
      return new HostBean(hostDescriptionType);
    } else {
      throw new GfacException("Host of name " + hostName
          + " does not exist", FaultCode.InvaliedLocalArgumnet);
    }
  }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.gfac.beans.HostBean

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.