Package edu.indiana.extreme.gfac.beans

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


   * @param regService : XRegistry service
   * @param application : Object of Application bean to removed
   * @throws GfacException
   */
  public void removeObject(RegistryService regService, BeanObject application) throws GfacException {
    ApplicationBean appDesc = (ApplicationBean) application;
    regService.removeAppDesc(new QName(appDesc.getObjectNamespace(),appDesc.getApplicationName()).toString(), appDesc.getHostName());

  }
View Full Code Here


     * @param applicationObject : Object of Application bean 
     * @return  Application Name
     * @throws GfacException
     */
  public String updateObject(RegistryService regService, BeanObject applicationObject) throws GfacException {
    ApplicationBean appDesc = (ApplicationBean) applicationObject;
    ApplicationDescriptionDocument oldAppDesc = RegistryUtil.getAppDesc(regService, new QName(appDesc.getObjectNamespace(), appDesc.getApplicationName()), appDesc.getHostName());
    String appDescStr = applicationXMLRequest(regService, appDesc, null);
    if (oldAppDesc != null) {
      regService.removeAppDesc(new QName(appDesc.getObjectNamespace(),appDesc.getApplicationName()).toString(), appDesc.getHostName());
    }
   
    regService.registerAppDesc(appDescStr);
    return appDescStr;
  }
View Full Code Here

TOP

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

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.