Top
Interstage Big Data Complex Event Processing Server V1.0.0 Developer's Reference
Interstage

1.1.8 Annotation

Annotations attach additional information to individual complex event processing statements. Describe an annotation before the complex event processing statement to which you want to add information.

Annotation type

Notation

Explanation

Name

@Name("Name")

or @Name('Name')

Attaches Name to a complex event processing statement. Attaching a unique name makes it easier to distinguish output information during debugging.

When you attach the same name to multiple complex event processing statements, two hyphens (--) and a number will be automatically appended to make unique names.

SoapListener

@SoapListener("listenerDefinition") or

@SoapListener('listenerDefinition')

Associates a listener definition with a SELECT statement. For listenerDefinition, specify the "development asset ID" specified at "listener definition". This passes the SELECT statement output as a SOAP message to the user-developed Web service specified in the listener definition.

DebugLogListener

@DebugLogListener

Outputs logs for debugging complex event processing statements.

LoggingListener

@LoggingListener(table="logStorageArea", properties="propertyNamesToBeOutput")

or the same format but with single quotation marks (') instead of double quotation marks (")

Logs the complex event processing statement output results to logStorageArea.

Specify the output destination of the Hadoop system in logStorageArea using a full path. Even if events are to be recorded in the engine log, specify with a virtual path name beginning with a slash (e.g., "/eventName") to distinguish events.

In propertyNamesToBeOutput, specify the property names to be output by the complex event processing statement, separated by commas.

VDW

@VDW(cacheName="cacheName", keyProperty="propertyNameCorrespondingToCacheKey")

or the same format but with single quotation marks (') instead of double quotation marks (")

The annotation to be attached to the CREATE WINDOW statement that creates a Virtual Data Window. Refer to "1.3.1.3 Virtual Data Window Generation" for information on how to write a CREATE WINDOW statement.

Specify the KEY-VALUE method cacheName accessed by the Virtual Data Window, and specify the propertyNameCorrespondingToCacheKey.

Information

Annotation execution sequence

If the @SoapListener, @DebugLogListener, and @LoggingListener annotations are specified simultaneously for one complex event processing statement, the output processing of each annotation is executed in the sequence in which they are specified.

@SoapListener('LISTEN01')
@DebugLogListener

select gatewayId, value from EVENT_01;

In the above example, the sequence of output execution is @SoapListener, then @DebugLogListener.