|
|||||||||
| 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
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ehcache.spi.service.LocalPersistenceService |
|---|
LocalPersistenceService.PersistenceSpaceIdentifier |
| Constructor Summary | |
|---|---|
DefaultLocalPersistenceService(PersistenceConfiguration persistenceConfiguration)
|
|
| Method Summary | |
|---|---|
FileBasedPersistenceContext |
createPersistenceContextWithin(LocalPersistenceService.PersistenceSpaceIdentifier space,
java.lang.String name)
Creates a new persistence context within the given space. |
void |
destroyAllPersistenceSpaces()
Destroys all persistence spaces Note that this method can be called without creating the persistence space beforehand in the same JVM. |
void |
destroyPersistenceSpace(java.lang.String name)
Destroys the persistence space with the given name. |
java.io.File |
getDirectoryFor(java.lang.String identifier)
|
LocalPersistenceService.PersistenceSpaceIdentifier |
getOrCreatePersistenceSpace(java.lang.String name)
Retrieves an existing or creates a new persistence space |
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 LocalPersistenceService.PersistenceSpaceIdentifier getOrCreatePersistenceSpace(java.lang.String name)
throws CachePersistenceException
LocalPersistenceService
getOrCreatePersistenceSpace in interface LocalPersistenceServicename - the name to be used for the persistence space
LocalPersistenceService.PersistenceSpaceIdentifier
CachePersistenceException - if the persistence space cannot be created
public void destroyPersistenceSpace(java.lang.String name)
throws CachePersistenceException
LocalPersistenceService
destroyPersistenceSpace in interface LocalPersistenceServicename - the name of the persistence context
CachePersistenceException - if the persistence space cannot be destroyedpublic void destroyAllPersistenceSpaces()
LocalPersistenceService
destroyAllPersistenceSpaces in interface LocalPersistenceService
public FileBasedPersistenceContext createPersistenceContextWithin(LocalPersistenceService.PersistenceSpaceIdentifier space,
java.lang.String name)
throws CachePersistenceException
LocalPersistenceService
createPersistenceContextWithin in interface LocalPersistenceServicespace - space to create withinname - name of the context to create
FileBasedPersistenceContext
CachePersistenceExceptionpublic java.io.File getDirectoryFor(java.lang.String identifier)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||