Class TransientStorageComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.core.transientstore.TransientStorageComponent
- All Implemented Interfaces:
TransientStoreService
,Adaptable
,Component
,Extensible
,TimestampedService
Component exposing the
TransientStoreService
and managing the underlying extension point- Since:
- 7.2
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
protected Map<String,
TransientStoreProvider> Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
deactivate
(ComponentContext context) Deactivates the component.void
doGC()
Triggers Garbage collecting of allTransientStore
void
Triggers Garbage collecting for aTransientStore
.protected TransientStoreConfig
Retrieves aTransientStore
by it's name.List contributed transient storage namesvoid
start
(ComponentContext context) Start the component.void
stop
(ComponentContext context) Stop the component.protected boolean
unregister
(String xp, Descriptor descriptor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregisterContribution, unregisterExtension
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
stores
-
EP_STORE
- See Also:
-
DEFAULT_STORE_NAME
- See Also:
-
-
Constructor Details
-
TransientStorageComponent
public TransientStorageComponent()
-
-
Method Details
-
getStore
Description copied from interface:TransientStoreService
Retrieves aTransientStore
by it's name.If the
TransientStore
is not found, returns the default one.- Specified by:
getStore
in interfaceTransientStoreService
- Parameters:
name
- the name of the targetTransientStore
- Returns:
- the target
TransientStore
or the default one if not found
-
getDefaultDescriptor
-
doGC
public void doGC()Description copied from interface:TransientStoreService
Triggers Garbage collecting of allTransientStore
- Specified by:
doGC
in interfaceTransientStoreService
-
doGC
Description copied from interface:TransientStoreService
Triggers Garbage collecting for aTransientStore
.- Specified by:
doGC
in interfaceTransientStoreService
- Parameters:
name
- the name of the targetTransientStore
-
listStores
Description copied from interface:TransientStoreService
List contributed transient storage names- Specified by:
listStores
in interfaceTransientStoreService
-
unregister
- Overrides:
unregister
in classDefaultComponent
-
start
Description copied from interface:Component
Start the component. This method is called after all the components were resolved and activated- Specified by:
start
in interfaceComponent
- Overrides:
start
in classDefaultComponent
-
stop
Description copied from interface:Component
Stop the component.- Specified by:
stop
in interfaceComponent
- Overrides:
stop
in classDefaultComponent
- Throws:
InterruptedException
-
deactivate
Description copied from interface:Component
Deactivates the component.This method is called by the runtime when a component is deactivated.
- Specified by:
deactivate
in interfaceComponent
- Overrides:
deactivate
in classDefaultComponent
- Parameters:
context
- the runtime context
-
cleanUpStores
public void cleanUpStores()
-