|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ehcache.internal.persistence.DefaultLocalPersistenceService
public class DefaultLocalPersistenceService
| Constructor Summary | |
|---|---|
DefaultLocalPersistenceService(PersistenceConfiguration persistenceConfiguration)
|
|
| Method Summary | |
|---|---|
FileBasedPersistenceContext |
createPersistenceContext(java.lang.Object identifier,
Store.PersistentStoreConfiguration<?,?,?> storeConfiguration)
Creates a new persistence context |
void |
destroyAllPersistenceContext()
Destroys all persistence context Note that this method can be called without creating the persistence context beforehand in the same JVM. |
void |
destroyPersistenceContext(java.lang.Object identifier)
Destroys the persistence context with the given identifier. |
java.io.File |
getDirectoryFor(java.lang.String identifier)
|
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 |
|---|
public DefaultLocalPersistenceService(PersistenceConfiguration persistenceConfiguration)
| Method Detail |
|---|
public void start(ServiceProvider serviceProvider)
ServiceServiceProvider.
The goal of the service provider is to allow a service to use other services.
start in interface ServiceserviceProvider - the service provider.public void stop()
Service
stop in interface Service
public FileBasedPersistenceContext createPersistenceContext(java.lang.Object identifier,
Store.PersistentStoreConfiguration<?,?,?> storeConfiguration)
throws CachePersistenceException
LocalPersistenceService
createPersistenceContext in interface LocalPersistenceServiceidentifier - the identifier to be used for the persistence contextstoreConfiguration - the configuration of the Store that will use the persistence context
FileBasedPersistenceContext
CachePersistenceException - if the persistence context cannot be created
public void destroyPersistenceContext(java.lang.Object identifier)
throws CachePersistenceException
LocalPersistenceService
destroyPersistenceContext in interface LocalPersistenceServiceidentifier - the identifier of the persistence context
CachePersistenceException - if the persistence context cannot be destroyedpublic void destroyAllPersistenceContext()
LocalPersistenceService
destroyAllPersistenceContext in interface LocalPersistenceServicepublic java.io.File getDirectoryFor(java.lang.String identifier)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||