org.apache.oozie.local
Class LocalOozie

java.lang.Object
  extended by org.apache.oozie.local.LocalOozie

public class LocalOozie
extends Object

LocalOozie runs workflows in an embedded Oozie instance .

LocalOozie is meant for development/debugging purposes only.


Constructor Summary
LocalOozie()
           
 
Method Summary
static OozieClient getClient()
          Return a OozieClient for LocalOozie.
static OozieClient getClient(String user)
          Return a OozieClient for LocalOozie configured for a given user.
static OozieClient getClientCoord(String user)
          Return a OozieClient for LocalOozie configured for a given user.
static OozieClient getCoordClient()
          Return a OozieClient for LocalOozie.
static void start()
          Start LocalOozie.
static void stop()
          Stop LocalOozie.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalOozie

public LocalOozie()
Method Detail

start

public static void start()
                  throws Exception
Start LocalOozie.

Throws:
Exception - if LocalOozie could not be started.

stop

public static void stop()
Stop LocalOozie.


getClient

public static OozieClient getClient()
Return a OozieClient for LocalOozie.

The returned instance is configured with the user name of the JVM (the value of the system property 'user.name').

The following methods of the client are NOP in the returned instance: OozieClient.validateWSVersion(), OozieClient.setHeader(java.lang.String, java.lang.String), OozieClient.getHeader(java.lang.String), OozieClient.removeHeader(java.lang.String), OozieClient.getHeaderNames() and org.apache.oozie.client.OozieClient#setSafeMode.

Returns:
a OozieClient for LocalOozie.

getCoordClient

public static OozieClient getCoordClient()
Return a OozieClient for LocalOozie.

The returned instance is configured with the user name of the JVM (the value of the system property 'user.name').

The following methods of the client are NOP in the returned instance: OozieClient.validateWSVersion(), OozieClient.setHeader(java.lang.String, java.lang.String), OozieClient.getHeader(java.lang.String), OozieClient.removeHeader(java.lang.String), OozieClient.getHeaderNames() and org.apache.oozie.client.OozieClient#setSafeMode.

Returns:
a OozieClient for LocalOozie.

getClient

public static OozieClient getClient(String user)
Return a OozieClient for LocalOozie configured for a given user.

The following methods of the client are NOP in the returned instance: OozieClient.validateWSVersion(), OozieClient.setHeader(java.lang.String, java.lang.String), OozieClient.getHeader(java.lang.String), OozieClient.removeHeader(java.lang.String), OozieClient.getHeaderNames() and org.apache.oozie.client.OozieClient#setSafeMode.

Parameters:
user - user name to use in LocalOozie for running workflows.
Returns:
a OozieClient for LocalOozie configured for the given user.

getClientCoord

public static OozieClient getClientCoord(String user)
Return a OozieClient for LocalOozie configured for a given user.

The following methods of the client are NOP in the returned instance: OozieClient.validateWSVersion(), OozieClient.setHeader(java.lang.String, java.lang.String), OozieClient.getHeader(java.lang.String), OozieClient.removeHeader(java.lang.String), OozieClient.getHeaderNames() and org.apache.oozie.client.OozieClient#setSafeMode.

Parameters:
user - user name to use in LocalOozie for running coordinator.
Returns:
a OozieClient for LocalOozie configured for the given user.


Copyright © 2011 Yahoo. All Rights Reserved.