Examples of ApplicationManager


Examples of net.rim.device.api.system.ApplicationManager

     *            the process name to check
     * @return true if processName is running
     */
    public static boolean isProcessRunning( String processName ) {
        boolean foundProcess = false;
        ApplicationManager appManager = ApplicationManager.getApplicationManager();
        ApplicationDescriptor[] appDescriptors = appManager.getVisibleApplications();

        for( int i = 0; i < appDescriptors.length; i++ ) {
            if( processName.equalsIgnoreCase( appDescriptors[ i ].getModuleName() ) ) {
                foundProcess = true;
                break;
View Full Code Here

Examples of net.rim.device.api.system.ApplicationManager

            if( args.length > 0 && args[ 0 ].indexOf( WIDGET_FOREGROUND_ENTRY ) != -1 ) {
                qsParams = args[ 0 ];
            } else {
                qsParams = argsToQuery( args, wConfig );
            }
            ApplicationManager mgr = ApplicationManager.getApplicationManager();
            mgr.postGlobalEvent( WIDGET_GUID, 0, 0, qsParams, null );
        } else {
            /*
             * If the WebWorks Application is launched during system startup, wait until system startup is complete. This will
             * allow startup widget to create BrowserField without the ApplicaitonRegistry timeout error.
             */
 
View Full Code Here

Examples of net.rim.device.api.system.ApplicationManager

        }
    }

    private static void waitForStartupComplete() {
        // use ApplicationManager.waitForStartup() in 6.0 when it's available
        ApplicationManager manager = ApplicationManager.getApplicationManager();
        while( manager.inStartup() ) {
            try {
                Thread.sleep( 2000 );
            } catch( InterruptedException e ) {
            }
        }
View Full Code Here

Examples of org.apache.airavata.client.api.ApplicationManager

//    }

    public List<ApplicationDeploymentDescriptionWrap> getDescriptions() throws RegistryException, AiravataAPIInvocationException {
        List<ApplicationDeploymentDescriptionWrap> list = new ArrayList<ApplicationDeploymentDescriptionWrap>();
        if (getServiceName()==null) {
            ApplicationManager applicationManager = getAiravataAPI().getApplicationManager();
            List<ServiceDescription> serviceDescriptors = applicationManager.getAllServiceDescriptions();
          for (ServiceDescription serviceDescription : serviceDescriptors) {
            String serviceName = serviceDescription.getType().getName();
        Map<String,ApplicationDescription> deploymentDescriptions = applicationManager.getApplicationDescriptors(serviceName);
        for (String hostName : deploymentDescriptions.keySet()) {
          ApplicationDescription descriptionWrap=deploymentDescriptions.get(hostName);
          list.add(new ApplicationDeploymentDescriptionWrap(getAiravataAPI(), descriptionWrap, serviceName,hostName));
        }
      }
View Full Code Here

Examples of org.apache.airavata.client.api.ApplicationManager

//    }

    public List<ApplicationDeploymentDescriptionWrap> getDescriptions() throws RegistryException, AiravataAPIInvocationException {
        List<ApplicationDeploymentDescriptionWrap> list = new ArrayList<ApplicationDeploymentDescriptionWrap>();
        if (getServiceName()==null) {
            ApplicationManager applicationManager = getAiravataAPI().getApplicationManager();
            List<ServiceDescription> serviceDescriptors = applicationManager.getAllServiceDescriptions();
          for (ServiceDescription serviceDescription : serviceDescriptors) {
            String serviceName = serviceDescription.getType().getName();
        Map<String,ApplicationDescription> deploymentDescriptions = applicationManager.getApplicationDescriptors(serviceName);
        for (String hostName : deploymentDescriptions.keySet()) {
          ApplicationDescription descriptionWrap=deploymentDescriptions.get(hostName);
          list.add(new ApplicationDeploymentDescriptionWrap(getAiravataAPI(), descriptionWrap, serviceName,hostName));
        }
      }
View Full Code Here

Examples of org.apache.airavata.client.api.ApplicationManager

                "127.0.0.1");

        log("Adding host description ....");

        addHostDescriptor(hostDescription);
        ApplicationManager applicationManager = airavataAPI.getApplicationManager();
        Assert.assertTrue(applicationManager.isHostDescriptorExists(
                hostDescription.getType().getHostName()));

        List<InputParameterType> inputParameters = new ArrayList<InputParameterType>();
        inputParameters.add(descriptorBuilder.buildInputParameterType("echo_input", "echo input", DataType.STRING));

        List<OutputParameterType> outputParameters = new ArrayList<OutputParameterType>();
        outputParameters.add(descriptorBuilder.buildOutputParameterType("echo_output", "Echo output", DataType.STRING));

        ServiceDescription serviceDescription = descriptorBuilder.buildServiceDescription("Echo", "Echo service",
                inputParameters, outputParameters);

        log("Adding service description ...");

        addServiceDescriptor(serviceDescription, "Echo");

        Assert.assertTrue(applicationManager.isServiceDescriptorExists(
                serviceDescription.getType().getName()));

        // Deployment descriptor
        ApplicationDescription applicationDeploymentDescription = descriptorBuilder
                .buildApplicationDeploymentDescription("EchoApplication", OsUtils.getEchoExecutable(), OsUtils.getTempFolderPath());

        log("Adding deployment description ...");

        addApplicationDescriptor(applicationDeploymentDescription, serviceDescription, hostDescription, "EchoApplication");
        Assert.assertTrue(applicationManager.isApplicationDescriptorExists(
                serviceDescription.getType().getName(), hostDescription.getType().getHostName(),
                applicationDeploymentDescription.getType().getApplicationName().getStringValue()));

        log("Saving workflow ...");
        Workflow workflow = new Workflow(getWorkflowComposeContent("src/test/resources/EchoWorkflow.xwf"));
View Full Code Here

Examples of org.apache.geronimo.gshell.application.ApplicationManager

            context = new ClassPathXmlApplicationContext(
                    new String[] { "META-INF/spring/gshell.xml",
                                   "META-INF/spring/gshell-vfs.xml",
                                   "META-INF/spring/gshell-commands.xml",
                                   "org/apache/servicemix/kernel/gshell/core/gshell-test.xml" });
            ApplicationManager appMgr = (ApplicationManager) context.getBean("applicationManager");
            assertNotNull(appMgr);
            Shell shell = appMgr.create();
            assertNotNull(shell);
            shell.execute("help");
        } finally {
            if (context != null) {
                context.destroy();
View Full Code Here

Examples of org.apache.geronimo.gshell.application.ApplicationManager

            context = new ClassPathXmlApplicationContext(
                    new String[] { "META-INF/spring/gshell.xml",
                                   "META-INF/spring/gshell-vfs.xml",
                                   "META-INF/spring/gshell-commands.xml",
                                   "org/apache/servicemix/kernel/gshell/core/gshell-test.xml"});
            ApplicationManager appMgr = (ApplicationManager) context.getBean("applicationManager");
            assertNotNull(appMgr);
            Shell shell = appMgr.create();
            ServiceMixBranding smxBrandng = (ServiceMixBranding)appMgr.getApplication().getModel().getBranding();
            assertNotNull(smxBrandng.getWelcomeMessage());
            System.out.println(smxBrandng.getWelcomeMessage());
            assertNotNull(shell);
            shell.execute("about");
        } finally {
View Full Code Here

Examples of org.apache.geronimo.gshell.application.ApplicationManager

            context = new ClassPathXmlApplicationContext(
                    new String[] { "META-INF/spring/gshell.xml",
                                   "META-INF/spring/gshell-vfs.xml",
                                   "org/apache/servicemix/kernel/gshell/core/gshell-test-commands.xml",
                                   "org/apache/servicemix/kernel/gshell/core/gshell-test.xml"});
            ApplicationManager appMgr = (ApplicationManager) context.getBean("applicationManager");
            assertNotNull(appMgr);
            Shell shell = appMgr.create();
            ServiceMixBranding smxBrandng = (ServiceMixBranding)appMgr.getApplication().getModel().getBranding();
            assertNotNull(smxBrandng.getWelcomeMessage());
            System.out.println(smxBrandng.getWelcomeMessage());
            assertNotNull(shell);
            shell.execute("vfs/ls meta:/commands/");
        } finally {
View Full Code Here

Examples of org.apache.geronimo.gshell.application.ApplicationManager

            context = new ClassPathXmlApplicationContext(
                    new String[] { "META-INF/spring/gshell.xml",
                                   "META-INF/spring/gshell-vfs.xml",
                                   "org/apache/servicemix/kernel/gshell/core/gshell-test-commands.xml",
                                   "org/apache/servicemix/kernel/gshell/core/gshell-test.xml"});
            ApplicationManager appMgr = (ApplicationManager) context.getBean("applicationManager");
            assertNotNull(appMgr);
            Shell shell = appMgr.create();
            ServiceMixBranding smxBrandng = (ServiceMixBranding)appMgr.getApplication().getModel().getBranding();
            assertNotNull(smxBrandng.getWelcomeMessage());
            System.out.println(smxBrandng.getWelcomeMessage());
            assertNotNull(shell);

            shell.execute("vfs");
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.