Adapter Configuration File

Use the espfeedhandler.xml configuration file to specify which Event Stream Processor streams provide data to RAP.

Syntax

<?xml version="1.0" encoding="UTF-8"?>
<ESPFeedHandler>
	<Logger>
		<LogLevel>warning</LogLevel>
		<LogFile>ESPFeedHandler.log</LogFile>
	</Logger>
	<MainCommandControlServer>
	<MainCCHost>127.0.0.1</MainCCHost>
	<MainCCPort>55555</MainCCPort>
	<Workspace>workspace1</Workspace>
	<Project>project1</Project>
		</MainCommandControlServer>
	<StandbyCommandControlServer>
		<StandbyCCHost/>
		<StandbyCCPort/>
	</StandbyCommandControlServer>
	<UseEncryption/>
	<ESPAuthentication>
		<User></User>
		<Password></Password>
	</ESPAuthentication>
	<Subscription>		<ProjectionSQL></ProjectionSQL>		<SubscriptionStream>ds1</SubscriptionStream>
		<RAPMessageType>69</RAPMessageType>
	</Subscription>
</ESPFeedHandler>
XML Elements
Element Description
ESPFeedHandler

(Required) The root element of the file.

Logger

(Required) The root element for logging activities settings.

LogLevel
(Required) The level of logging. Valid values are:
  • error – logs only errors.
  • warning – logs warnings and errors.
  • info – logs informational messages and messages logged at the warning level.
  • debug – logs debugging messages and messages logged at the info level.
LogFile

(Required) The name and location (relative or absolute path) of the log file.

MainCommandControlServer

(Required) The root element of the connection information for the main command control server.

MainCCHost

(Required) The IP address of the main command control server.

MainCCPort

(Required) The port for the main command control server.

Workspace

(Required) The workspace in the cluster that contains the stream.

Project

(Required) The project that contains the stream.

StandbyCommandControlServer

(Optional) The root element of the connection information for the standby command control server.

StandbyCCHost

(Optional) The IP address of the standby command control server. StandbyCCHost is required for HA.

StandbyCCPort

(Optional) The port for the standby command control server. StandbyCCPort is required for HA.

UseEncryption

(Optional) The root element for SSL encryption for communications between the RAP adapter and Event Stream Processor.

ESPAuthentication

(Required) The root element for the information necessary for authenticating the connection to the command control server.

User

(Optional) The user name to connect to the command control server. If authentication is enabled the user is required.

Password

(Optional) The password to use to connect to the command control server (in encrypted form). If authentication is enabled the password is required.

Subscription

(Required) The root element for information about subscription to a stream.

ProjectionSQL

(Optional) The SQL query projection to be used on the stream.

SubscriptionStream

(Optional) The name of the stream to which you want to subscribe.

RAPMessageType

(Required) The RAP message type number. This is the same number used in the RDS template.