Pay attention to the following points when considering using XTP collaboration to reference an external XTP cache from complex event processing rules:
Initial data of the cache
Initial data must be provided for the cache.
Select a data format according to the specifications of the cache access application for update to be used.
Format of the XTP cache
An XTP cache must follow a prescribed format.
If an existing cache is to be used, check that it is consistent with "5.4.10.1 XTP Cache Compatible Formats".
An XTP cache consists of a "Key" and a "Value". A cache to be referenced by this product must be given the following structure:
Type used for "Key" | Type used for "Value" |
---|---|
java.lang.String | java.util.HashMap<java.lang.String, java.lang.Object> |
Each property to be specified in a complex event processing rule corresponds to each "HashMap" element above.
The table below shows the type that are compatible for the value of each "HashMap" element in the cache and the corresponding type in complex event processing rules.
Type used in each "HashMap" element | Corresponding type in complex event processing rules |
---|---|
java.lang.String | string |
java.lang.Boolean | bool/boolean |
java.lang.Byte | byte |
java.lang.Integer | int/integer |
java.lang.Long | long |
java.lang.Float | float |
java.lang.Double | double |
Each "HashMap" to be specified in "Key" and "Value" for an XTP cache must be associated as follows:
In the "HashMap" key, set the value to be specified in "keyProperty" of the Virtual Data Window.
In "Key" in the XTP cache, set the same value as that of the "HashMap" key above.
Refer to "5.4.14 Designing a Cache Access Application for Update" for information on the actual method of use.