|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.service.StoreService
public class StoreService
Base service for persistency of jobs and actions.
Field Summary |
---|
Fields inherited from interface org.apache.oozie.service.Service |
---|
CONF_PREFIX, DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND |
Constructor Summary | |
---|---|
StoreService()
|
Method Summary | ||
---|---|---|
void |
destroy()
Destroy the StoreService |
|
javax.persistence.EntityManager |
getEntityManager()
Return EntityManager |
|
Class<? extends Service> |
getInterface()
Return the public interface of the service. |
|
|
getStore(Class<S> klass)
Return instance of store. |
|
|
getStore(Class<S> klass,
T store)
Return instance of store with an EntityManager pointing to an existing Store. |
|
void |
init(Services services)
Initializes the StoreService . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoreService()
Method Detail |
---|
public <S extends Store> S getStore(Class<S> klass) throws StoreException
Store
.
StoreException
public <S extends Store,T extends Store> S getStore(Class<S> klass, T store) throws StoreException
Store
.
StoreException
public Class<? extends Service> getInterface()
getInterface
in interface Service
StoreService
.public void init(Services services) throws ServiceException
StoreService
.
init
in interface Service
services
- services instance.
ServiceException
- thrown if the service could not initialize.public void destroy()
destroy
in interface Service
public javax.persistence.EntityManager getEntityManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |