Menu

Is it possible to connect (init) Genie running on another computer?

Jayanth
2013-05-26
2014-03-05
  • Jayanth

    Jayanth - 2013-05-26

    Hi,

    Is it possible to connect (init) genie server running on another computer on the network? I am trying for distributed execution of my test scripts.

    Thanks
    ~Jayanth

     
  • the_felis_leo

    the_felis_leo - 2014-03-05

    import com.adobe.genie.executor.Executor;
    import com.adobe.genie.executor.CommandHandler;
    import com.adobe.genie.genieCom.SocketClient;
    import com.adobe.genie.utils.Utils;

    Class MyExecutor extends Executor {
    public static void main(String[] args) throws ClassNotFoundException {

        // Init the singleton SocketClient to your remote host
    
    CommandHandler ch = new CommandHandler();
        SocketClient.getInstance(Utils.EXECUTOR_NAME_STR, ch)
            .setDestIpAddress("remotehost");
    
        // lets the Executor does his standard job
    
        Executor.main(args);
    

    }
    }

    / untested! /

     

Log in to post a comment.

MongoDB Logo MongoDB