org.apache.oozie.service
Class CoordinatorEngineService

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

public class CoordinatorEngineService
extends Object
implements Service

Service that return a coordinator 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
CoordinatorEngineService()
           
 
Method Summary
 void destroy()
          Destroy the service.
 CoordinatorEngine getCoordinatorEngine(String user, String authToken)
          Return a Coordinator engine.
 Class<? extends Service> getInterface()
          Return the public interface of the Coordinator engine service.
 CoordinatorEngine getSystemCoordinatorEngine()
          Return a Coordinator 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

CoordinatorEngineService

public CoordinatorEngineService()
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 Coordinator engine service.

Specified by:
getInterface in interface Service
Returns:
CoordinatorEngineService.

getCoordinatorEngine

public CoordinatorEngine getCoordinatorEngine(String user,
                                              String authToken)
Return a Coordinator engine.

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

getSystemCoordinatorEngine

public CoordinatorEngine getSystemCoordinatorEngine()
Return a Coordinator engine for a system user (no user, no group).

Returns:
a system Coordinator engine.


Copyright © 2012 Apache Software Foundation. All Rights Reserved.