Top
Interstage Big DataComplex Event Processing Server V1.1.0 User's Guide
FUJITSU Software

5.5.3 Terracotta Cache

Pay attention to the following points when considering using Terracotta collaboration to reference an external Terracotta cache from complex event processing rules:

5.5.3.1 Terracotta Cache Compatible Formats

A Terracotta cache consists of key-value pairs. The cache referenced by BDCEP must have the following configuration:

Type used for the key

Type used for the 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 is compatible for the value of each "HashMap" element 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.Character

char/character

java.lang.Boolean

bool/boolean

java.lang.Byte

byte

java.lang.Short

short

java.lang.Integer

int/integer

java.lang.Long

long

java.lang.Float

float

java.lang.Double

double

The Terracotta cache key and "HashMap" to be specified for the value must have the following relationship:

The following figure illustrates this relationship.

Refer to "5.6.5 Designing a Terracotta Application" for information on the actual method of use.