openr66.context.task.localexec
Class LocalExecClient

java.lang.Object
  extended by openr66.context.task.localexec.LocalExecClient

public class LocalExecClient
extends Object

Client to execute external command through GoldenGate Local Exec

Author:
Frederic Bregier

Field Summary
static InetSocketAddress address
           
 
Constructor Summary
LocalExecClient()
           
 
Method Summary
 boolean connect()
          Connect to the Server
 void disconnect()
          Disconnect from the server
 goldengate.commandexec.utils.LocalExecResult getLocalExecResult()
           
static void initialize()
          Initialize the LocalExec Client context
static void releaseResources()
          To be called when the server is shutting down to release the resources
 void runOneCommand(String command, long delay, boolean waitFor, goldengate.common.future.GgFuture futureCompletion)
          Run one command with a specific allowed delay for execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

public static InetSocketAddress address
Constructor Detail

LocalExecClient

public LocalExecClient()
Method Detail

initialize

public static void initialize()
Initialize the LocalExec Client context


releaseResources

public static void releaseResources()
To be called when the server is shutting down to release the resources


getLocalExecResult

public goldengate.commandexec.utils.LocalExecResult getLocalExecResult()

runOneCommand

public void runOneCommand(String command,
                          long delay,
                          boolean waitFor,
                          goldengate.common.future.GgFuture futureCompletion)
Run one command with a specific allowed delay for execution. The connection must be ready (done with connect()).

Parameters:
command -
delay -
futureCompletion -

connect

public boolean connect()
Connect to the Server


disconnect

public void disconnect()
Disconnect from the server



Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.