public class SLAStoreService extends Object implements Service
CONF_PREFIX, DEFAULT_LOCK_TIMEOUT, lockTimeout
Constructor and Description |
---|
SLAStoreService() |
Modifier and Type | Method and Description |
---|---|
SLAStore |
create()
Return a SLA store instance with a fresh transaction.
|
<S extends Store> |
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.
|
public SLAStoreService()
public void destroy()
Service
Invoked by the Service
singleton at shutdown time.
public Class<? extends Service> getInterface()
Service
Services are retrieved by its public interface. Specializations of services must return the public interface.
getInterface
in interface Service
public SLAStore create() throws StoreException
The LSA store has to be committed and then closed to commit changes, if only close it rolls back.
StoreException
- thrown if the SLA store could not be created.public <S extends Store> SLAStore create(S store) throws StoreException
The SLA store has to be committed and then closed to commit changes, if only close it rolls back.
StoreException
- thrown if the SLA store could not be created.public void init(Services services) throws ServiceException
Service
Invoked by the Service
singleton at start up time.
init
in interface Service
services
- services singleton initializing the service.ServiceException
- thrown if the service could not initialize.Copyright © 2018 Apache Software Foundation. All rights reserved.