org.apache.oozie.service
Class SLAStoreService

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

public class SLAStoreService
extends Object
implements Service


Field Summary
 
Fields inherited from interface org.apache.oozie.service.Service
CONF_PREFIX, DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND
 
Constructor Summary
SLAStoreService()
           
 
Method Summary
 SLAStore create()
          Return a SLA store instance with a fresh transaction.
<S extends Store>
SLAStore
create(S store)
          Return a SLA store instance with an existing transaction.
 void destroy()
          Destroy the service.
 Class<? extends Service> getInterface()
          Return the public interface of the service.
 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

SLAStoreService

public SLAStoreService()
Method Detail

destroy

public void destroy()
Description copied from interface: Service
Destroy the service.

Invoked by the Service singleton at shutdown time.

Specified by:
destroy in interface Service

getInterface

public Class<? extends Service> getInterface()
Description copied from interface: Service
Return the public interface of the service.

Services are retrieved by its public interface. Specializations of services must return the public interface.

Specified by:
getInterface in interface Service
Returns:
the interface of the service.

create

public SLAStore create()
                throws StoreException
Return a SLA store instance with a fresh transaction.

The LSA store has to be committed and then closed to commit changes, if only close it rolls back.

Returns:
a SLA store.
Throws:
StoreException - thrown if the SLA store could not be created.

create

public <S extends Store> SLAStore create(S store)
                throws StoreException
Return a SLA store instance with an existing transaction.

The SLA store has to be committed and then closed to commit changes, if only close it rolls back.

Returns:
a SLA store.
Throws:
StoreException - thrown if the SLA store could not be created.

init

public void init(Services services)
          throws ServiceException
Description copied from interface: Service
Initialize the service.

Invoked by the Service singleton at start up time.

Specified by:
init in interface Service
Parameters:
services - services singleton initializing the service.
Throws:
ServiceException - thrown if the service could not initialize.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.