org.ehcache.internal.store.tiering
Class CacheStore.Provider

java.lang.Object
  extended by org.ehcache.internal.store.tiering.CacheStore.Provider
All Implemented Interfaces:
Store.Provider, Service
Enclosing class:
CacheStore<K,V>

public static class CacheStore.Provider
extends java.lang.Object
implements Store.Provider


Constructor Summary
CacheStore.Provider()
           
 
Method Summary
<K,V> Store<K,V>
createStore(Store.Configuration<K,V> storeConfig, ServiceConfiguration<?>... serviceConfigs)
          Creates a new Store instance
 void initStore(Store<?,?> resource)
          Informs this Provider, a Store it created is being initialized
 void releaseStore(Store<?,?> resource)
          Informs this Provider, a Store it created is being disposed (i.e.
 void start(ServiceProvider serviceProvider)
          Start this service using the provided configuration and ServiceProvider.
 void stop()
          Stops this service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheStore.Provider

public CacheStore.Provider()
Method Detail

createStore

public <K,V> Store<K,V> createStore(Store.Configuration<K,V> storeConfig,
                                    ServiceConfiguration<?>... serviceConfigs)
Description copied from interface: Store.Provider
Creates a new Store instance

Specified by:
createStore in interface Store.Provider
Parameters:
storeConfig - the basic configuration for the Store
serviceConfigs - the configurations the Provider may need to configure the Store
Returns:
the Store honoring the configurations passed in

releaseStore

public void releaseStore(Store<?,?> resource)
Description copied from interface: Store.Provider
Informs this Provider, a Store it created is being disposed (i.e. closed)

Specified by:
releaseStore in interface Store.Provider

initStore

public void initStore(Store<?,?> resource)
Description copied from interface: Store.Provider
Informs this Provider, a Store it created is being initialized

Specified by:
initStore in interface Store.Provider

start

public void start(ServiceProvider serviceProvider)
Description copied from interface: Service
Start this service using the provided configuration and ServiceProvider.

The goal of the service provider is to allow a service to use other services.

Specified by:
start in interface Service
Parameters:
serviceProvider - the service provider.

stop

public void stop()
Description copied from interface: Service
Stops this service.

Specified by:
stop in interface Service