org.apache.oozie.service
Class BundleEngineService

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

public class BundleEngineService
extends Object
implements Service

Service that return a bundle 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
BundleEngineService()
           
 
Method Summary
 void destroy()
          Destroy the service.
 BundleEngine getBundleEngine(String user, String authToken)
          Return a Bundle engine.
 Class<? extends Service> getInterface()
          Return the public interface of the Bundle engine service.
 BundleEngine getSystemBundleEngine()
          Return a Bundle 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

BundleEngineService

public BundleEngineService()
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 Bundle engine service.

Specified by:
getInterface in interface Service
Returns:
BundleEngineService.

getBundleEngine

public BundleEngine getBundleEngine(String user,
                                    String authToken)
Return a Bundle engine.

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

getSystemBundleEngine

public BundleEngine getSystemBundleEngine()
Return a Bundle engine for a system user (no user, no group).

Returns:
a system Bundle engine.


Copyright © 2012 Apache Software Foundation. All Rights Reserved.