public interface PersistableResourceService extends MaintainableService
Modifier and Type | Method and Description |
---|---|
java.util.Collection<ServiceConfiguration<?>> |
additionalConfigurationsForPool(java.lang.String alias,
ResourcePool pool)
Enables this service to add configurations to support the resource pool.
|
void |
create()
Creates the persistent storage.
|
void |
destroy(java.lang.String name)
Destroys the persistence space with the given name.
|
void |
destroyAll()
Destroys all persistence spaces.
|
boolean |
handlesResourceType(ResourceType<?> resourceType)
Returns
true if this service handles the given resource type. |
startForMaintenance
boolean handlesResourceType(ResourceType<?> resourceType)
true
if this service handles the given resource type.resourceType
- the resource type to checktrue
if this service handles the resource typejava.util.Collection<ServiceConfiguration<?>> additionalConfigurationsForPool(java.lang.String alias, ResourcePool pool) throws CachePersistenceException
alias
- the alias contextpool
- the resource poolCollection
of ServiceConfiguration
CachePersistenceException
- in case of a persistence related problemjava.lang.IllegalArgumentException
- if handlesResourceType(pool.getType)
is false
void destroy(java.lang.String name) throws CachePersistenceException
This method can be called without having created the persistence space from this JVM.
name
- persistence context nameCachePersistenceException
- if the persistence space cannot be destroyedvoid create() throws CachePersistenceException
CachePersistenceException
- if the persistence storage cannot be createdvoid destroyAll() throws CachePersistenceException
Note that this method can be called without having created the persistence spaces from this JVM.
CachePersistenceException
- if the persistence storage cannot be destroyed