Examples of execute()


Examples of com.sun.enterprise.v3.admin.RestartDomainCommand.execute()

    {
        final ModulesRegistry registry = InjectedValues.getInstance().getModulesRegistry();

        final AdminCommandContext ctx = new AdminCommandContext(ImplUtil.getLogger(), new PlainTextActionReporter());
        final AdminCommand cmd = new RestartDomainCommand(registry);
        cmd.execute(ctx);
    }

    private NetworkConfig networkConfig()
    {
        return getDomainRootProxy().child(Domain.class).getConfigs().getConfig().get("server-config").getNetworkConfig().as(NetworkConfig.class);
View Full Code Here

Examples of com.sun.enterprise.web.connector.grizzly.AsyncTask.execute()

        if ( apt == null ){
            apt = (AsyncTask)task;
        }

        if (apt != null){
            apt.execute();
        }
    }
   

    /**
 
View Full Code Here

Examples of com.sun.enterprise.web.connector.grizzly.ReadTask.execute()

                    byteBuffer.limit(limit);
                    byteBuffer.position(position);

                    // Get notification once the task has completed.
                    readTask.addTaskListener(this);
                    readTask.execute();
                } else {
                    fireTaskEvent(taskEvent);
                }  
            } else {
                // Failed to read the URI. Close the connections.
View Full Code Here

Examples of com.sun.faban.common.Command.execute()

                Command cmd = new Command(ddCmd);
                cmd.setWorkingDirectory(metaInf);
                cmd.setStreamHandling(Command.STDOUT, Command.CAPTURE);
                cmd.setStreamHandling(Command.STDERR, Command.CAPTURE);
                CommandHandle p = cmd.execute();
                if (p.exitValue() != 0) {
                    StringBuilder b = new StringBuilder();
                    b.append("Error generating faban driver deployment " +
                             "descriptor for " + dir + ".\n");
View Full Code Here

Examples of com.sun.faban.harness.agent.CmdAgentImpl.execute()

     */
    public static CommandHandle exec(Command c)
            throws IOException, InterruptedException {
        CmdAgentImpl agent = CmdAgentImpl.getHandle();
        if (agent != null) // Running on agent
            return agent.execute(c, Invoker.getContextLocation());
        else // Running on master
            return CmdService.getHandle().execute(c,
                    Invoker.getContextLocation());
    }

View Full Code Here

Examples of com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute()

        renderResponse.execute(getFacesContext());
        assertTrue(!(getFacesContext().getRenderResponse()) &&
                   !(getFacesContext().getResponseComplete()));

        // This causes the components to be set to valid
        applyRequestValues.execute(getFacesContext());
        assertTrue(!(getFacesContext().getRenderResponse()) &&
                   !(getFacesContext().getResponseComplete()));

        // process the validations
        processValidations.execute(getFacesContext());
View Full Code Here

Examples of com.sun.faces.lifecycle.Phase.execute()

        Config.set((ServletRequest)
            getFacesContext().getExternalContext().getRequest(),
                   Config.FMT_LOCALE, Locale.CANADA_FRENCH);

        try {
            renderResponse.execute(getFacesContext());
        } catch (FacesException fe) {
            System.out.println(fe.getMessage());
            if (null != fe.getCause()) {
                fe.getCause().printStackTrace();
            } else {
View Full Code Here

Examples of com.sun.faces.lifecycle.ProcessValidationsPhase.execute()

        applyRequestValues.execute(getFacesContext());
        assertTrue(!(getFacesContext().getRenderResponse()) &&
                   !(getFacesContext().getResponseComplete()));

        // process the validations
        processValidations.execute(getFacesContext());
        // We know there are validation errors on the page
        assertTrue(getFacesContext().getRenderResponse());

        System.out.println("Verifying results...");
        // verify the messages have been added correctly.
View Full Code Here

Examples of com.sun.faces.lifecycle.RenderResponsePhase.execute()

        Config.set((ServletRequest)
            getFacesContext().getExternalContext().getRequest(),
                   Config.FMT_LOCALE, Locale.CANADA_FRENCH);

        try {
            renderResponse.execute(getFacesContext());
        } catch (FacesException fe) {
            System.out.println(fe.getMessage());
            if (null != fe.getCause()) {
                fe.getCause().printStackTrace();
            } else {
View Full Code Here

Examples of com.sun.grid.installer.util.cmd.CopyExecutableCommand.execute()

            new File(checkHostFile).deleteOnExit();          

            Debug.trace("Copy auto_conf file to '" + host.getHostname() + ":" + checkHostFile + "'.");
            CopyExecutableCommand copyCmd = new CopyExecutableCommand(host.getResolveTimeout(), host.getHostname(), host.getConnectUser(),
                    variables.getProperty(VAR_SHELL_NAME, ""), (Util.IS_MODE_WINDOWS && host.getArchitecture().startsWith("win")), checkHostFile, remoteFile);
            copyCmd.execute();
            exitValue = copyCmd.getExitValue();
            if (exitValue == EXIT_VAL_CMDEXEC_TERMINATED) {
                //Set the log content
                newState = Host.State.COPY_TIMEOUT_CHECK_HOST;
                Debug.error("Timeout while copying the " + checkHostFile + " script to host " + host.getHostname() + " via " + variables.getProperty(VAR_COPY_COMMAND) + " command!\nMaybe a password is expected. Try the command in the terminal first.");
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.