Cluster.DataGrid

Description

Functions to operate on the cluster

Functions

NameSignature and Synopsis
CacheLoadConceptByExtIdConcept CacheLoadConceptByExtId(String extId, boolean includeContained)
Retrieve from the cache the concept whose external identifier is specified
CacheLoadConceptByIdConcept CacheLoadConceptById(long id, boolean includeContained)
Retrieve from the cache the concept whose identifier is specified
CacheLoadConceptIndexedByExtIdConcept CacheLoadConceptIndexedByExtId(String extId, boolean includeContained, String className)
Retrieve from the cache the concept whose external identifier is specified. This method relies on an index that should be added on the concept's extId. See Index(String, Object, boolean) and the extractor to be used for the index creation - EntityExtIdGetter().
CacheLoadConceptsByExtIdObject[] CacheLoadConceptsByExtId(String[] extIds)
Bulk retrieval of Concepts from the Cache.
CacheLoadEntityvoid CacheLoadEntity(Entity entity)
Load the entity into RETE
CacheLoadEventByExtIdEvent CacheLoadEventByExtId(String extId)
Retrieve from the cache the event whose external identifier is specified
CacheLoadEventByIdEvent CacheLoadEventById(long id)
Retrieve from the cache the event whose identifier is specified
CacheLoadParentvoid CacheLoadParent(Concept cept, boolean recursive)
Loads from cache the parent concepts of the given concept.
CacheNameString CacheName(String entityPath)
Returns the cache name for the specified entityPath
CacheReevaluatevoid CacheReevaluate(Entity entity)
Reload the entity into RETE and reevaluate all rules (allowed only in preprocessor)
ClassNameString ClassName(String entityPath)
Returns the generated class name
EnableCacheUpdatevoid EnableCacheUpdate(boolean updateCache)
Set to true if the current RTC changes be replicated to the cache else RTC changes will lead to cache eviction instead of updates
EvictCachevoid EvictCache(String cacheName, Object filter, boolean deleteFromPersistence)
Execute a query/filter based eviction from cache. Strictly to be used for entities with cache-only object management.
It will work only if "Store Properties As Individual Fields" is enabled in the CDD cluster setting.
It will not work with the history based properties.
Indexvoid Index(String cacheName, Object property, boolean isOrdered)
Creates an index on the property
Lockboolean Lock(String key, long timeout, boolean localOnly)
Locks the object represented by the key within a rule session
UnLockvoid UnLock(String key, boolean localOnly)
Unlocks the object represented by the key within a rule session