Start the adapter either in unmanaged, managed, or
cluster-managed mode. In unmanaged and cluster-managed mode, the adapter is started
separately from the ESP project, and in managed mode,
the adapter is started with the ESP project. In unmanaged mode, you can start the adapter from the command line
or using the start command files.
Procedure
Mode |
Steps |
Unmanaged, from the command line |
|
Unmanaged, using the start command
files |
From the adapter directory: - Start the ESP node by
running start_node.bat (Windows) or
start_node.sh (UNIX).
- Start the adapter by running
start_adapter.bat (Windows) or
start_adapter.sh (UNIX).
Note To use the start_node script, you must first
create a cluster database and deploy a cluster to it. See the
SAP Event Stream Processor: Configuration and Administration Guide for
more information.
|
Managed |
- Add an ATTACH ADAPTER statement in the CCL file of your project
to reference the adapter. For example,
ATTACH INPUT ADAPTER Generic_Input_Adapter__external_1
TYPE genericinputadapter
to BaseInput
PROPERTIES configFilePath =
'C:/SAP/ESP-5_1/adapters/framework/instances/<adapter-name>/adapter_config.xml' ;
- Start the node.
cd STREAMING_HOME/cluster/examples
STREAMING_HOME/bin/streamingclusternode --config cluster_example.cfg --node-name node1
- Compile CCL to create CCX.
STREAMING_HOME/bin/streamingcompiler -i <modelname>.ccl -o <modelname>.ccx
- Deploy the project on the cluster.
STREAMING_HOME/bin/streamingclusteradmin --uri=esp[s]://localhost:19011
--username=<name> --password=<password> --add_project --workspacename=
<workspacename> --project-name=<projectname> --ccx=<modelname>.ccx
- Start the deployed project on the cluster.
STREAMING_HOME/bin/streamingclusteradmin --uri=esp[s]://localhost:19011
--username=<name> --password=<password> --start_project --
workspace-name=<workspacename> --project-name=<projectname>
|
Cluster-Managed Mode |
- Start the node.
cd STREAMING_HOME/cluster/examples
STREAMING_HOME/bin/streamingclusternode --config cluster_example.cfg --node-name node1
- Add the adapter to the cluster.
STREAMING_HOME/bin/streamingclusteradmin --uri=esp[s]://localhost:19011
--username=<name> --password=<password> --add_adapter --workspacename=
<workspacename> --adapter-type=toolkit_adapter --adapter-name=<adaptername>
--arc=<adapter-runtime-config> --adc=<application-deployment-config>
- Start the
project.
streamingclusteradmin --uri=esp[s]://localhost:19011 --username=<name> --password=<password> --start_project
--workspace-name=<workspacename> --project-name=<projectname>
- Start the adapter.
STREAMING_HOME/bin/streamingclusteradmin --uri=esp[s]://localhost:19011
--username=<name> --password=<password> --start_adapter --
workspace-name=<workspacename> --adapter-name=<adaptername>
|