|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.oozie.service.StoreService
public class StoreService
Base service for persistency of jobs and actions.
Field Summary | |
---|---|
static String |
CONF_CREATE_DB_SCHEMA
|
static String |
CONF_DRIVER
|
static String |
CONF_MAX_ACTIVE_CONN
|
static String |
CONF_PASSWORD
|
static String |
CONF_PREFIX
|
static String |
CONF_URL
|
static String |
CONF_USERNAME
|
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 |
Field Detail |
---|
public static final String CONF_PREFIX
public static final String CONF_URL
public static final String CONF_DRIVER
public static final String CONF_USERNAME
public static final String CONF_PASSWORD
public static final String CONF_MAX_ACTIVE_CONN
public static final String CONF_CREATE_DB_SCHEMA
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 |