Option | Description |
-h | --help | Displays usage information. |
-sn host | --sourcehost host | Name of the host on which the source (event sending) correlator is running. The default is localhost. However, you can use the default or specify localhost only when the source correlator and the target correlator are running on the same host. In all other situations, you must specify the public IP address or the name of the host. This ensures that the host of the target correlator can resolve the name/address of the source correlator host. Non-ASCII characters are not allowed in host names. |
-sp port | --sourceport port | Port on which the source (event sending) correlator is listening. The default is 15903. |
-tn host | --targethost host | Name of the host on which the target (event receiving) correlator is running. The default is localhost. However, you can use the default or specify localhost only when the source correlator and the target correlator are running on the same host. In all other situations, you must specify the public IP address or the name of the host. This ensures that the host of the source correlator can resolve the name/address of the target correlator host. Non-ASCII characters are not allowed in host names. |
-tp port | --targetport port | Port on which the target (event receiving) correlator is listening. The default is 15903. |
-c channel | --channel channel | Named channel on which to send/receive events. You can specify the -c option multiple times to send/receive events on multiple channels. You must specify the -c option at least once for each sender/target pair. Until you do, no events emitted by the sender correlator are received by the target correlator. An event is discarded if it is sent on a channel for which you did not specify the -c option. |
-m mode | --mode mode | Indicates whether there is one connection (-m legacy) between the sender and target correlators or one connection for each specified channel (-m parallel). The default behavior is that there is one connection between the sender and target correlators. The tool uses the same connection for every channel. Events sent on any channel are delivered to the default channel in the target correlator and all events are delivered in order. You can specify default behavior by specifying -m legacy or --mode legacy. To create a connection for each specified channel, specify -m parallel or --mode parallel. Events sent on a named channel are delivered to the same named channel in the target correlator. Events sent on the same channel are delivered in order. Events sent on different channels may be re-ordered. You also specify the -m option when you specify the -x option to disconnect. If you are using a separate connection for each channel, you should specify -m parallel when you specify the -x option. If you are using one connection for all channels, you should specify -m legacy when you specify the -x option. See also
Avoid mixing connection modes. |
-x | --disconnect | When you specify the -x option, the behavior depends on whether you also specify the -c option. If you specify the -x option and you do not also specify the -c channel option, then the source correlator stops sending events to the target correlator. Each connection between the source correlator and the target correlator is terminated. If you specify the -x option and the -c channel option and the tool is using one connection for each channel, then the source correlator terminates only the connection(s) it was using for the channel(s) you specify. Any other connections being used for other channels continue to be used. You can specify the -x option with one or more instances of the -c channel option. Remember to also specify -m parallel. If you specify the -x option and the -c channel option and the tool is using one connection for all channels, then the source correlator stops sending events on only the channel(s) you specify. The source correlator continues to send events on any other channels it was already sending events on. If there are no other channels, then the source correlator no longer sends events to the target correlator. However, the connection between the two correlators remains in place. Remember to also specify -m legacy. |
-s | --qdisconnect | Disconnect if slow (only takes effect on the first connection). |
-f file | --filename file | Read connection information from the named file. If this option is specified, the options -sn, -sp, -tn, -tp and -c are all ignored. This file must be in the local character set or in UTF-8 format. If it is UTF-8, specify the -u option in addition to this option. |
-u | --utf8 | Indicates that the connection information file is in UTF-8. |
-v | --verbose | Requests verbose output during engine_connect execution. |
-V | --version | Displays version information for the engine_connect tool. |
Value | Description |
0 | All connections were established successfully. |
1 | One or more source correlators could not be contacted. |
2 | One or more target correlators could not be contacted. |
3 | A problem occurred establishing the connection; request invalid. |
4 | Target correlator failed to contact the source. |
5 | Some other error occurred. |
Legacy connection mode | Parallel connection mode |
0 or 1 connection between two correlators. | Any number of connections between correlators. |
Events sent on different channels are delivered in the order in which they are sent. | Events sent on different channels may be delivered in a different order from the order in which they were sent. |
Sending an event to a named channel delivers the event to the default channel. | Sending an event to a named channel delivers it to only that channel. |
Unlike Universal Messaging for passing events between correlators. | Similar to Universal Messaging for passing events between correlators. |
Same behavior as releases earlier than Apama 5.2. | New behavior starting with Apama 5.2. |