public class LocalOozie extends Object
Constructor and Description |
---|
LocalOozie() |
Modifier and Type | Method and Description |
---|---|
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.
|
public LocalOozie()
public static void start() throws Exception
Exception
- if LocalOozie could not be started.public static void stop()
public static OozieClient getClient()
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
.OozieClient
for LocalOozie.public static OozieClient getCoordClient()
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
.OozieClient
for LocalOozie.public static OozieClient getClient(String user)
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
.user
- user name to use in LocalOozie for running workflows.OozieClient
for LocalOozie configured for the given user.public static OozieClient getClientCoord(String user)
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
.user
- user name to use in LocalOozie for running coordinator.OozieClient
for LocalOozie
configured for the given user.Copyright © 2015 Apache Software Foundation. All Rights Reserved.