Package org.ogce.gfac.registry

Examples of org.ogce.gfac.registry.RegistryService


  public boolean execute(InvocationContext context) throws GfacException {

    /*
     * Load host and app description from registry
     */
    RegistryService registryService = context.getExecutionContext().getRegistryService();
    String serviceMapStr = registryService.getServiceMap(context.getServiceName());
    System.out.println(serviceMapStr);
    if (serviceMapStr != null) {
      try {

        ServiceMapType serviceMap = ServiceMapDocument.Factory.parse(serviceMapStr).getServiceMap();
        QName appName = GfacUtils.findApplcationName(serviceMap);

        // host name
        String hostName = findHostFromServiceMap(registryService, appName);

        // app
        String appDesc = registryService.getAppDesc(appName.toString(), hostName);
        ApplicationDescriptionType appDescType = ApplicationDescriptionDocument.Factory.parse(appDesc).getApplicationDescription();

        // host desc
        String hostDesc = registryService.getHostDesc(hostName);
        HostDescriptionType hostDescType = HostDescriptionDocument.Factory.parse(hostDesc).getHostDescription();

        // application deployment
        DeploymentDescriptionType deploymentDesc = appDescType.getDeploymentDescription();
        String tmpDir = deploymentDesc.getTmpDir();
View Full Code Here


    String hostName = null;

    /*
     * Load host and app description from registry
     */
    RegistryService registryService = context.getExecutionContext().getRegistryService();
    String serviceMapStr = registryService.getServiceMap(context.getServiceName());

    if (serviceMapStr != null) {
      try {
       
        ServiceMapType serviceMap = ServiceMapDocument.Factory.parse(serviceMapStr).getServiceMap();
View Full Code Here

TOP

Related Classes of org.ogce.gfac.registry.RegistryService

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.