10.07.2015 Views

Using TCP Adapters with Ensemble - InterSystems Documentation

Using TCP Adapters with Ensemble - InterSystems Documentation

Using TCP Adapters with Ensemble - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Adding a <strong>TCP</strong> Status ServicePortIdentifies the <strong>TCP</strong> port to connect to. <strong>TCP</strong> port numbers have a maximum value of 65535.QSizeReadTimeoutSSLConfigHow many incoming connections the operating system should hold in reserve on behalf of this business service.Set to 0 if only 1 connection at a time is expected. Set to a large number if many clients will connecting rapidly.The default is 100. The range is 0–1000.Number of seconds to wait for each successive incoming <strong>TCP</strong> read operation, following receipt of initial datafrom the remote <strong>TCP</strong> port. The default is 5 seconds. The range is 0–600 seconds (a maximum of 10 minutes).The name of an existing Secure Socket Layer (SSL) or Transport Layer Security (TLS) configuration to use toauthenticate this connection.You can create and manage SSL/TLS configurations using the Management Portal. See the “<strong>Using</strong> SSL/TLS <strong>with</strong>Caché” chapter in the Caché Security Administration Guide.The first field on the Edit SSL/TLS Configuration form is Configuration Name. This is the string to use in the adapter’sSSLConfig field. The SSLConfig string may also add a | (vertical bar) character followed by the private keypassword. The | character is unique because it is not allowed as part of a Configuration Name.StayConnectedIf StayConnected is a positive value, the adapter stays connected to the remote system for this number of secondsbetween input events. A zero value means to disconnect immediately after every input event. The default of –1means to stay permanently connected, even during idle times. <strong>Adapters</strong> are assumed idle at startup and thereforeonly auto-connect if they are configured <strong>with</strong> a StayConnected value of –1.6.6 Adding a <strong>TCP</strong> Status ServiceThe EnsLib.<strong>TCP</strong>.StatusService parses an incoming text string to determine what type of production status information isbeing requested, and then produces a reply string suitable for writing out to the console screen. A user can interact <strong>with</strong> thestatus service directly, or write a command script that contacts the status service, issues commands, and writes the repliesto a text file for later analysis.A developer enables interactions via the status service as follows:1. Add an instance of EnsLib.<strong>TCP</strong>.StatusService to the production.2. Configure the instance of EnsLib.<strong>TCP</strong>.StatusService to accept communications via a particular <strong>TCP</strong> port. Set a Portnumber and a list of AllowedIPAddresses from which to accept connections. These are only two of the several settingsthat are available to configure the <strong>TCP</strong> text line inbound adapter associated <strong>with</strong> the status service. For details, see“Adapter Settings.”Once you have completed these steps, any time the status service is enabled and running, a user or command-line scriptcan initiate a Telnet connection to the configured Port and send commands to the status service. Each command must be atext string that ends <strong>with</strong> the newline character (ASCII 10). The reply strings will also terminate <strong>with</strong> a newline.The following table describes the supported command lines and the contents of the text string returned in each case.<strong>Using</strong> <strong>TCP</strong> <strong>Adapters</strong> <strong>with</strong> <strong>Ensemble</strong> 41

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!