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

8.3 cepdeployrsc

Name

cepdeployrsc - Development asset deployment

Format
cepdeployrsc resource [-o] [-e engineName] -f XMLfilePath
Function description

This command deploys a development asset to a CEP engine.

Specify the type of development asset (event type definition, rule definition, master definition, or SOAP listener definition) to be deployed.

When the command is executed a prompt is displayed - type "y" and press the Enter key to execute the deployment. Execution can be canceled by typing "n" or "q" and pressing the Enter key.

Example

Example of query (for a SOAP listener definition):

Are you sure you want to deploy the SOAP listener definition?(default: y) [y,n,q]:
Arguments
resource

Specify the type of development asset.


eventtype

Event type definition

rule

Rule definition

master

Master definition

listener

SOAP listener definition


-o

This option is used to overwrite the definition content.

If this option is omitted, and if a development asset with the same ID as that specified in the definition file has already been deployed, an error message will be output and the deployment will fail.


-e engineName

Specify the name of the CEP engine to which the development asset is to be deployed.

If only one CEP engine has been configured, this option can be omitted.

If this option is omitted, and if there are two or more configured CEP engines, an error message will be output and the deployment will fail.


-f XMLfilePath

Specify the definition file that describes the definition content of the development asset. We recommend specifying an absolute path.

See

Refer to "9.2 Defining Development Assets" for information on the definition file.


End status

The following status codes are returned:

0

Normal end

8

Abnormal end


Note

  • A file storing detailed display results (XML format) output by cepgetrsc can also be specified as the definition file (refer to "8.7 cepgetrsc" for details).

  • If the CEP engine that is the deployment target is running, deployment cannot be performed.

Example

Example of output at normal end

When a SOAP listener definition file (listenerdeploy.xml) is deployed to a CEP engine (CepEngine1):

$ cepdeployrsc listener -o -e CepEngine1 -f /tmp/listenerdeploy.xml <ENTER>
Are you sure you want to deploy the SOAP listener definition?
(default: y) [y,n,q]:y <ENTER>
Command cepdeployrsc executed successfully.

Example of output at abnormal end

When an attempt is made to deploy a SOAP listener definition during the execution of a command that cannot be executed at the same time:

$ cepdeployrsc listener -o -e CepEngine1 -f /tmp/listenerdeploy.xml <ENTER>
Are you sure you want to deploy the SOAP listener definition?
(default: y) [y,n,q]:<ENTER>
Processing cannot be performed because another command is executing.
Command cepdeployrsc execution failed.