Package org.saidone.component
Class NodeCollectionCreator
java.lang.Object
org.saidone.component.BaseComponent
org.saidone.component.NodeCollectionCreator
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Ensures the primary Node collection exists and provides an index on the
archive date field for efficient queries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
Creates thealf_node
collection if missing and adds an index on theadt
field to speed up archive date lookups.Methods inherited from class org.saidone.component.BaseComponent
setApplicationContext, shutDown, stop
-
Constructor Details
-
NodeCollectionCreator
public NodeCollectionCreator()
-
-
Method Details
-
init
@PostConstruct public void init()Creates thealf_node
collection if missing and adds an index on theadt
field to speed up archive date lookups.- Overrides:
init
in classBaseComponent
-