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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected Map<String, TransientStoreProvider> Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeactivate(ComponentContext context) Deactivates the component.voiddoGC()Triggers Garbage collecting of allTransientStorevoidTriggers Garbage collecting for aTransientStore.protected TransientStoreConfigRetrieves aTransientStoreby it's name.List contributed transient storage namesvoidstart(ComponentContext context) Start the component.voidstop(ComponentContext context) Stop the component.protected booleanunregister(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, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:TransientStoreServiceRetrieves aTransientStoreby it's name.If the
TransientStoreis not found, returns the default one.- Specified by:
getStorein interfaceTransientStoreService- Parameters:
name- the name of the targetTransientStore- Returns:
- the target
TransientStoreor the default one if not found
-
getDefaultDescriptor
-
doGC
public void doGC()Description copied from interface:TransientStoreServiceTriggers Garbage collecting of allTransientStore- Specified by:
doGCin interfaceTransientStoreService
-
doGC
Description copied from interface:TransientStoreServiceTriggers Garbage collecting for aTransientStore.- Specified by:
doGCin interfaceTransientStoreService- Parameters:
name- the name of the targetTransientStore
-
listStores
Description copied from interface:TransientStoreServiceList contributed transient storage names- Specified by:
listStoresin interfaceTransientStoreService
-
unregister
- Overrides:
unregisterin classDefaultComponent
-
start
Description copied from interface:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
stop
Description copied from interface:ComponentStop the component.- Specified by:
stopin interfaceComponent- Overrides:
stopin classDefaultComponent- Throws:
InterruptedException
-
deactivate
Description copied from interface:ComponentDeactivates the component.This method is called by the runtime when a component is deactivated.
- Specified by:
deactivatein interfaceComponent- Overrides:
deactivatein classDefaultComponent- Parameters:
context- the runtime context
-
cleanUpStores
public void cleanUpStores()
-