org.apache.oozie.service
Class DagEngineService

java.lang.Object
  extended by org.apache.oozie.service.DagEngineService
All Implemented Interfaces:
Service

public class DagEngineService
extends Object
implements Service

Service that return a dag engine for a user.


Field Summary
 
Fields inherited from interface org.apache.oozie.service.Service
CONF_PREFIX, DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND
 
Constructor Summary
DagEngineService()
           
 
Method Summary
 void destroy()
          Destroy the service.
 DagEngine getDagEngine(String user, String authToken)
          Return a Dag engine.
 Class<? extends Service> getInterface()
          Return the public interface of the Dag engine service.
 DagEngine getSystemDagEngine()
          Return a Dag engine for a system user (no user, no group).
 void init(Services services)
          Initialize the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DagEngineService

public DagEngineService()
Method Detail

init

public void init(Services services)
Initialize the service.

Specified by:
init in interface Service
Parameters:
services - services instance.

destroy

public void destroy()
Destroy the service.

Specified by:
destroy in interface Service

getInterface

public Class<? extends Service> getInterface()
Return the public interface of the Dag engine service.

Specified by:
getInterface in interface Service
Returns:
DagEngineService.

getDagEngine

public DagEngine getDagEngine(String user,
                              String authToken)
Return a Dag engine.

Parameters:
user - user for the dag engine.
authToken - the authentication token.
Returns:
the dag engine for the specified user.

getSystemDagEngine

public DagEngine getSystemDagEngine()
Return a Dag engine for a system user (no user, no group).

Returns:
a system Dag engine.


Copyright © 2012 Apache Software Foundation. All Rights Reserved.