Apama API Reference for .NET  9.10.0.4
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Apama.Engine.Client.IConnectOperations Interface Reference

IConnectOperations is an interface that specifies methods for connecting an engine as a consumer of another engine. More...

Inherited by Apama.Engine.Client.IEngineClient.

Public Member Functions

void AttachAsConsumerOfEngine (IMessagingClient sourceEngine, string[] channels)
 Connect this engine to another (non-persisently) so that it receives events emitted on the specified channels. This is equivalent to the engine_connect command.

More...
 
void AttachAsConsumerOfEngine (string sourceHost, int sourcePort, string[] channels)
 Connect this engine to another (non-persistently) so that it receives events emitted on the specified channels. This is equivalent to the engine_connect command. More...
 
void AttachAsConsumerOfEngine (string sourceHost, int sourcePort, string[] channels, bool persistent)
 Connect this engine to another so that it receives events emitted on the specified channels. This is equivalent to the engine_connect command. More...
 
void AttachAsConsumerOfEngine (string sourceHost, int sourcePort, string[] channels, bool persistent, bool disconnectSlow, EngineManagement.ConnectMode mode)
 Connect this engine to another so that it receives events emitted on the specified channels. This is equivalent to the engine_connect command. More...
 
void DetachAsConsumerOfEngine (IMessagingClient sourceEngine, string[] channels)
 Disconnect this engine from another so that it not longer receives events emitted on the specified channels. This is equivalent to the More...
 
void DetachAsConsumerOfEngine (string sourceHost, int sourcePort, string[] channels)
 Disconnect this engine from another so that it not longer receives events emitted on the specified channels. This is equivalent to the More...
 
void DetachAsConsumerOfEngine (string sourceHost, int sourcePort, string[] channels, bool persistent)
 Disconnect this engine from another so that it not longer receives events emitted on the specified channels. This is equivalent to the More...
 
void DetachAsConsumerOfEngine (string sourceHost, int sourcePort, string[] channels, bool persistent, EngineManagement.ConnectMode mode)
 Disconnect this engine from another so that it not longer receives events emitted on the specified channels. This is equivalent to the More...
 

Detailed Description

IConnectOperations is an interface that specifies methods for connecting an engine as a consumer of another engine.

See Apama.Engine.Client.EngineClientConstants for constants used by this interface.

Member Function Documentation

void Apama.Engine.Client.IConnectOperations.AttachAsConsumerOfEngine ( IMessagingClient  sourceEngine,
string[]  channels 
)

Connect this engine to another (non-persisently) so that it receives events emitted on the specified channels. This is equivalent to the engine_connect command.

Note: If you do not already have a connected EngineClient instance for the source engine, it is usually more efficient to call the overloaded IConnectOperations::attachAsConsumerOfEngine(String, int, String[]) method which takes a source host and port instead.

Parameters
sourceEngineThe EngineClient instance for the engine to receive from.
channelsthe list of channels from which the engine should receive events. Must be non-null, and contain no null elements.
Exceptions
Apama.EngineExceptionThrown if the engines cannot be connected, or if the channels parameter is invalid.
void Apama.Engine.Client.IConnectOperations.AttachAsConsumerOfEngine ( string  sourceHost,
int  sourcePort,
string[]  channels 
)

Connect this engine to another (non-persistently) so that it receives events emitted on the specified channels. This is equivalent to the engine_connect command.

Parameters
sourceHostThe host of the engine to receive from.
sourcePortThe port of the engine to receive from.
channelsthe list of channels from which the engine should receive events. Must be non-null, and contain no null elements.
Exceptions
Apama.EngineExceptionThrown if the engines cannot be connected, or if the channels parameter is invalid.
void Apama.Engine.Client.IConnectOperations.AttachAsConsumerOfEngine ( string  sourceHost,
int  sourcePort,
string[]  channels,
bool  persistent 
)

Connect this engine to another so that it receives events emitted on the specified channels. This is equivalent to the engine_connect command.

Parameters
sourceHostThe host of the engine to receive from.
sourcePortThe port of the engine to receive from.
channelsthe list of channels from which the engine should receive events. Must be non-null, and contain no null elements.
persistentif true, the connection will be persistent, meaning that the receiver will automatically reconnect to the sender whenever the connection is lost.
Exceptions
Apama.EngineExceptionThrown if the engines cannot be connected, or if the channels parameter is invalid.
void Apama.Engine.Client.IConnectOperations.AttachAsConsumerOfEngine ( string  sourceHost,
int  sourcePort,
string[]  channels,
bool  persistent,
bool  disconnectSlow,
EngineManagement.ConnectMode  mode 
)

Connect this engine to another so that it receives events emitted on the specified channels. This is equivalent to the engine_connect command.

Parameters
sourceHostThe host of the engine to receive from.
sourcePortThe port of the engine to receive from.
channelsthe list of channels from which the engine should receive events. Must be non-null, and contain no null elements.
persistentif true, the connection will be persistent, meaning that the receiver will automatically reconnect to the sender whenever the connection is lost.
disconnectSlowif true, the connection will be disconnected if the receiver is slow
modethe connection mode to use, defaults to legacy (single connection, all events delivered to the default channel). Set to PARALLEL for connection per channel and channel values passed through
Exceptions
Apama.EngineExceptionThrown if the engines cannot be connected, or if the channels parameter is invalid.
void Apama.Engine.Client.IConnectOperations.DetachAsConsumerOfEngine ( IMessagingClient  sourceEngine,
string[]  channels 
)

Disconnect this engine from another so that it not longer receives events emitted on the specified channels. This is equivalent to the

engine_connect –disconnect command, and assumes the connection is non-persistent.

Parameters
sourceEngineThe EngineClient instance for the engine this object is currently connected to as a consumer.
channelsthe list of channels from which the engine should receive events. Must be non-null, and contain no null elements.
Exceptions
Apama.EngineExceptionThrown if the engines cannot be disconnected, or if the channels parameter is invalid.
void Apama.Engine.Client.IConnectOperations.DetachAsConsumerOfEngine ( string  sourceHost,
int  sourcePort,
string[]  channels 
)

Disconnect this engine from another so that it not longer receives events emitted on the specified channels. This is equivalent to the

engine_connect –disconnect command, and assumes the connection is non-persistent.

Parameters
sourceHostThe host of the engine this object is currently connected to as a consumer.
sourcePortThe port of the engine this object is currently connected to as a consumer.
channelsthe list of channels from which the engine should receive events. Must be non-null, and contain no null elements.
Exceptions
Apama.EngineExceptionThrown if the engines cannot be disconnected, or if the channels parameter is invalid.
void Apama.Engine.Client.IConnectOperations.DetachAsConsumerOfEngine ( string  sourceHost,
int  sourcePort,
string[]  channels,
bool  persistent 
)

Disconnect this engine from another so that it not longer receives events emitted on the specified channels. This is equivalent to the

engine_connect –disconnect or engine_connect –disconnect –persistent command.

Parameters
sourceHostThe host of the engine this object is currently connected to as a consumer.
sourcePortThe port of the engine this object is currently connected to as a consumer.
channelsthe list of channels from which the engine should receive events. Must be non-null, and contain no null elements.
persistenttrue if the connection to be removed was persistent (i.e. the receiver automatically reconnects to the sender whenever the connection is lost).
Exceptions
Apama.EngineExceptionThrown if the engines cannot be disconnected, or if the channels parameter is invalid.
void Apama.Engine.Client.IConnectOperations.DetachAsConsumerOfEngine ( string  sourceHost,
int  sourcePort,
string[]  channels,
bool  persistent,
EngineManagement.ConnectMode  mode 
)

Disconnect this engine from another so that it not longer receives events emitted on the specified channels. This is equivalent to the

engine_connect –disconnect or engine_connect –disconnect –persistent command.

Parameters
sourceHostThe host of the engine this object is currently connected to as a consumer.
sourcePortThe port of the engine this object is currently connected to as a consumer.
channelsthe list of channels from which the engine should receive events. Must be non-null, and contain no null elements.
persistenttrue if the connection to be removed was persistent (i.e. the receiver automatically reconnects to the sender whenever the connection is lost).
modethe connection mode to use, defaults to legacy (single connection, all events delivered to the default channel). Set to PARALLEL for connection per channel and channel values passed through
Exceptions
Apama.EngineExceptionThrown if the engines cannot be disconnected, or if the channels parameter is invalid.
Submit a bug or feature
Copyright (c) 2013-2016 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.