Top
Interstage Big Data Complex Event Processing Server V1.0.0 User's Guide
Interstage

6.1.4 Deploying and Undeploying Definition Information

This section explains how to deploy the definition information stored on the CEP Server, and how to undeploy definition information no longer required.

6.1.4.1 Deploying Definition Information

Execute cepdeployrsc to deploy the definition information on the CEP Server.

Refer to "5.6.1 Deploying Definition Information" for examples of deploying definition information.

A general user permission can be used to execute this command.

If the CEP engine is not stopped, then you must stop it (refer to "6.1.7 Stopping the CEP Engine" for details).

6.1.4.2 Checking Deployed Definition Information

Execute cepdispeng and cepgetrsc to check deployed definition information

Execute cepdispeng with the -i option to list the definition information deployed in the CEP engine, and cepgetrsc to check details of the deployed definition information.

A general user permission can be used to execute these commands. The definition information can be checked regardless of whether the CEP engine is stopped or running.

Example

Listing the deployed definition information

When listing the definition information deployed to a CEP engine (CepEngine).

$ cepdispeng -i -e CepEngine<ENTER>
engineId :CepEngine

eventtype :EVENT01

rule :RULE01

master :MASTER01

listener :LISTENER01

Command cepdispeng executed successfully.

Listing details of the deployed definition information

When listing the details of an event type definition (EVENT01) deployed to a CEP engine (CepEngine).

$ cepgetrsc eventtype -e CepEngine -n EVENT01<ENTER>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<eventType xmlns="urn:xmlns-fujitsu-com:cspf:bdcep:v1" id="EVENT01">

<comment>
Event type definition</comment>
<type>CSV</type>

<xmlSchema></xmlSchema>

<csvColumn>

<column name="memberID" type="string"/>

<column name="areaID" type="string"/>

<column name="status" type="string"/>

</csvColumn>

<root></root>

<useLogging>false</useLogging>

<loggingTableName></loggingTableName>

<useCep>true</useCep>

</eventType>


Command cepgetrsc executed successfully.

Note

  • If redirecting the command output of the detailed display (XML format), modify each item accordingly.

  • In addition to XML format data, the results of cepgetrsc also include output messages. If redirecting the command output to a file, delete unnecessary messages before using the results.

6.1.4.3 Updating Deployed Definition Information

Execute cepdeployrsc with the -o option to update the deployed definition information.

A general user permission can be used to execute this command.

If the CEP engine is not stopped, then you must stop it (refer to "6.1.7 Stopping the CEP Engine" for details).

Example

Updating the deployed definition information

When updating an event type definition (EVENT01) of a CEP engine (CepEngine) with new details.

The path of the event type definition with the new details (development asset ID: EVENT01) is shown below.

/application/EVENT01_new.xml

An example of command execution is shown below.

$ cepdeployrsc eventtype -o -e CepEngine -f /application/EVENT01_new.xml<ENTER>
Are you sure you want to deploy the event type definition?
(default: y) [y,n,q]:<ENTER>
Command cepdeployrsc executed successfully.

6.1.4.4 Undeploying Definition Information

Execute cepundeployrsc to undeploy definition information no longer required.

Refer to "5.8.1 Undeploying Definition Information" for examples of undeploying definition information.

A general user permission can be used to execute this command. Release the definition information while the CEP engine is stopped.

Refer to "6.1.7 Stopping the CEP Engine" if the CEP engine needs to be stopped.