Package com.sun.faban.harness.agent

Examples of com.sun.faban.harness.agent.CmdAgentImpl


     * @return The actual command to execute, or null if not found.
     * @throws IOException If there is a communication error to the
     *                         remote agent
     */
    public static String which(String c) throws IOException {
        CmdAgentImpl agent = CmdAgentImpl.getHandle();
        if (agent != null) // Running on agent
            return agent.which(c, Invoker.getContextLocation());
        else // Running on master
            return CmdService.getHandle().which(c,
                    Invoker.getContextLocation());
    }
View Full Code Here


     * @throws IOException Error communicating with resulting process
     * @throws InterruptedException Thread got interrupted waiting
     */
    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

     * @throws java.io.IOException  Error communicating with resulting process
     * @throws InterruptedException Thread got interrupted waiting
     */
    public static CommandHandle java(Command java)
            throws IOException, InterruptedException {
        CmdAgentImpl agent = CmdAgentImpl.getHandle();
        if (agent != null) // Running on agent
            return agent.java(java, Invoker.getContextLocation());
        else // Running on master
            return CmdService.getHandle().java(java,
                    Invoker.getContextLocation());
    }
View Full Code Here

TOP

Related Classes of com.sun.faban.harness.agent.CmdAgentImpl

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.