Class TemplateScanner
java.lang.Object
com.gigaspaces.internal.server.space.TemplateScanner
- Since:
- 8.0.4
- Author:
- Niv Ingberg
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateScanner(SpaceTypeManager typeManager, CacheManager cacheManager, SpaceDataEventManager dataEventManager, SpaceEngine engine) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcancelAllNonNotifyTemplates(Exception ex, boolean skipReadOperations) booleanmatch(Context context, IEntryHolder entry, ITemplateHolder template) booleanmatch(Context context, IEntryHolder entry, ITemplateHolder template, int skipAlreadyMatchedFixedPropertyIndex, String skipAlreadyMatchedIndexPath, boolean safeEntry) booleanmatch(Context context, IEntryHolder entry, ITemplateHolder template, int skipAlreadyMatchedFixedPropertyIndex, String skipAlreadyMatchedIndexPath, boolean safeEntry, int rightColumnPosition) Checks if the specified template matches the specified entry.booleannotifyMatch(Context context, IEntryHolder entry, ITemplateHolder template) voidscanNonNotifyTemplates(Context context, IEntryHolder entry, ServerTransaction txn, FifoSearch fifoSearch) Search for templates that match the specified entry and perform each such template.voidscanNonNotifyTemplates(Context context, IEntryHolder entry, ServerTransaction txn, FifoSearch fifoSearch, FifoGroupsSearch fifoGroupsSearch) Search for templates that match the specified entry and perform each such template.voidscanNotifyTemplates(NotifyContextsHolder notifyContextsHolder, Context context, ServerTransaction txn, FifoSearch fifoSearch)
-
Constructor Details
-
TemplateScanner
public TemplateScanner(SpaceTypeManager typeManager, CacheManager cacheManager, SpaceDataEventManager dataEventManager, SpaceEngine engine)
-
-
Method Details
-
cancelAllNonNotifyTemplates
-
cancelAllNonNotifyTemplates
-
getRegexCache
-
scanNonNotifyTemplates
public void scanNonNotifyTemplates(Context context, IEntryHolder entry, ServerTransaction txn, FifoSearch fifoSearch) throws EntryDeletedException, SAException Search for templates that match the specified entry and perform each such template.- Throws:
EntryDeletedExceptionSAException
-
scanNonNotifyTemplates
public void scanNonNotifyTemplates(Context context, IEntryHolder entry, ServerTransaction txn, FifoSearch fifoSearch, FifoGroupsSearch fifoGroupsSearch) throws EntryDeletedException, SAException Search for templates that match the specified entry and perform each such template.- Throws:
EntryDeletedExceptionSAException
-
scanNotifyTemplates
public void scanNotifyTemplates(NotifyContextsHolder notifyContextsHolder, Context context, ServerTransaction txn, FifoSearch fifoSearch) throws EntryDeletedException, SAException - Throws:
EntryDeletedExceptionSAException
-
match
public boolean match(Context context, IEntryHolder entry, ITemplateHolder template, int skipAlreadyMatchedFixedPropertyIndex, String skipAlreadyMatchedIndexPath, boolean safeEntry, int rightColumnPosition) Checks if the specified template matches the specified entry. Assumes template is a superclass of entry (in the wider sense). Assumes template and entry are not deleted, expired .- Parameters:
entry- the entry to checktemplate- the template to checkskipIndex- if != -1, the method assumes the template field at skipIndex matches the entry field at skipIndex, and hence does not check this index.
-
match
public boolean match(Context context, IEntryHolder entry, ITemplateHolder template, int skipAlreadyMatchedFixedPropertyIndex, String skipAlreadyMatchedIndexPath, boolean safeEntry) -
match
-
notifyMatch
-