Apama API Reference for .NET
10.1.0.5
|
The Api class contains static methods to initialise and stop the client interface. More...
Static Public Member Functions | |
static EngineManagement | ConnectToEngine (string host, ushort port, string name) |
This function attempts to establish a connection to an Engine. It returns an EngineManagement object that can be used to access the Engine. More... | |
static EngineManagement | ConnectToEngine (string host, ushort port) |
This function attempts to establish a connection to an Engine. It returns an EngineManagement object that can be used to access the Engine. More... | |
static EngineManagement | ConnectToEngine (string host, ushort port, bool disconnectSlowReceiver) |
This function attempts to establish a connection to an Engine. It returns an EngineManagement object that can be used to access the Engine. More... | |
static EngineManagement | ConnectToEngine (string host, ushort port, bool disconnectSlowReceiver, string name) |
This function attempts to establish a connection to an Engine. It returns an EngineManagement object that can be used to access the Engine. More... | |
static EngineManagement | ConnectToEngineMonitorOnly (string host, ushort port) |
Attempt to establish a monitor-only connection to an Engine listening on the named host and port. If successful, the returned EngineManagement can be used for the ConnectEventConsumer(), GetStatus(), InspectEngine() and Ping() operations. All other operations will fail. More... | |
static EngineManagement | ConnectToEngineMonitorOnly (string host, ushort port, string name) |
Attempt to establish a monitor-only connection to an Engine listening on the named host and port. If successful, the returned EngineManagement can be used for the ConnectEventConsumer(), GetStatus(), InspectEngine() and Ping() operations. All other operations will fail. More... | |
static EngineManagement | ConnectToEngineReceiveOnly (string host, ushort port) |
Attempt to establish a receive-only connection to an Engine listening on the named host and port. If successful, the returned EngineManagement can be used for the ConnectEventConsumer(), GetStatus(), InspectEngine() and Ping() operations. All other operations will fail. More... | |
static EngineManagement | ConnectToEngineReceiveOnly (string host, ushort port, string name) |
Attempt to establish a receive-only connection to an Engine listening on the named host and port. If successful, the returned EngineManagement can be used for the ConnectEventConsumer(), GetStatus(), InspectEngine() and Ping() operations. All other operations will fail. More... | |
static void | DisconnectFromEngine (EngineManagement engineManagement) |
Legacy method equivalent to EngineManagement.Dispose() More... | |
static void | EngineInit () |
This method must be called when the client program is started. It initializes the library's state. Calling it more than once has no effect. More... | |
static void | EngineInit (bool messaging) |
This function must be called once per process first before any other Engine operations are carried out. It initializes the library's state. Calling it more than once has no effect. More... | |
static void | EngineInit (string name, bool messaging) |
This function must be called once per process first before any other Engine operations are carried out. It initializes the library's state. Calling it more than once has no effect. More... | |
static void | EngineShutdown () |
This function must be called once per process before the application closes down. It ensures that communications are shutdown properly and state is cleaned up. More... | |
static void | SetEngineParams ([MarshalAs(UnmanagedType.LPWStr)]string arg0) |
Set custom parameters for this instance of the client library. Must be called before engineInit. The parameters are passed as a set of name, value pairs formatted as <name1>=<value1>;<name2=value2>; (i.e. equals sign between name and value, and semicolon separating the name value pairs). More... | |
The Api class contains static methods to initialise and stop the client interface.
|
static |
This function attempts to establish a connection to an Engine. It returns an EngineManagement object that can be used to access the Engine.
host | The hostname of the machine where the Engine is running on. |
port | The port that the Engine is listening on for transport negotiations with the client. |
name | The name to give for this connection. |
|
static |
This function attempts to establish a connection to an Engine. It returns an EngineManagement object that can be used to access the Engine.
host | The hostname of the machine where the Engine is running on. |
port | The port that the Engine is listening on for transport negotiations with the client. |
|
static |
This function attempts to establish a connection to an Engine. It returns an EngineManagement object that can be used to access the Engine.
host | The hostname of the machine where the Engine is running on. |
port | The port that the Engine is listening on for transport negotiations with the client. |
disconnectSlowReceiver | Disconnect any receiver if it is slow, defaults to false |
|
static |
This function attempts to establish a connection to an Engine. It returns an EngineManagement object that can be used to access the Engine.
host | The hostname of the machine where the Engine is running on. |
port | The port that the Engine is listening on for transport negotiations with the client. |
disconnectSlowReceiver | Disconnect any receiver if it is slow, defaults to false |
name | The name to give for this connection. |
|
static |
Attempt to establish a monitor-only connection to an Engine listening on the named host and port. If successful, the returned EngineManagement can be used for the ConnectEventConsumer(), GetStatus(), InspectEngine() and Ping() operations. All other operations will fail.
host | The hostname of the machine where the Engine is running on. |
port | The port that the Engine is listening on for transport negotiations with the client. |
|
static |
Attempt to establish a monitor-only connection to an Engine listening on the named host and port. If successful, the returned EngineManagement can be used for the ConnectEventConsumer(), GetStatus(), InspectEngine() and Ping() operations. All other operations will fail.
host | The hostname of the machine where the Engine is running on. |
port | The port that the Engine is listening on for transport negotiations with the client. |
name | The name to give for this connection. |
|
static |
Attempt to establish a receive-only connection to an Engine listening on the named host and port. If successful, the returned EngineManagement can be used for the ConnectEventConsumer(), GetStatus(), InspectEngine() and Ping() operations. All other operations will fail.
host | The hostname of the machine where the Engine is running on. |
port | The port that the Engine is listening on for transport negotiations with the client. |
|
static |
Attempt to establish a receive-only connection to an Engine listening on the named host and port. If successful, the returned EngineManagement can be used for the ConnectEventConsumer(), GetStatus(), InspectEngine() and Ping() operations. All other operations will fail.
host | The hostname of the machine where the Engine is running on. |
port | The port that the Engine is listening on for transport negotiations with the client. |
name | The name to give for this connection. |
|
static |
Legacy method equivalent to EngineManagement.Dispose()
Deprecated - Use EngineManagement.Dispose() instead.
engineManagement | The Engine to disconnect from. |
|
static |
This method must be called when the client program is started. It initializes the library's state. Calling it more than once has no effect.
|
static |
This function must be called once per process first before any other Engine operations are carried out. It initializes the library's state. Calling it more than once has no effect.
messaging | Determines whether to initialise messaging transport |
|
static |
This function must be called once per process first before any other Engine operations are carried out. It initializes the library's state. Calling it more than once has no effect.
name | The name of the engine client |
messaging | Determines whether to initialise messaging transport |
|
static |
This function must be called once per process before the application closes down. It ensures that communications are shutdown properly and state is cleaned up.
The upper .NET API layers (EngineClient, EventService and ScenarioService) use AppDomain.ProcessExit event handler to run shutdown and cleanup operations upon exiting the application. As described in http://msdn.microsoft.com/en-us/library/system.appdomain.processexit.aspx the total execution time of all ProcessExit event handlers is limited, just as the total execution time of all finalizers is limited at process shutdown. The default is three seconds.
|
static |
Set custom parameters for this instance of the client library. Must be called before engineInit. The parameters are passed as a set of name, value pairs formatted as <name1>=<value1>;<name2=value2>; (i.e. equals sign between name and value, and semicolon separating the name value pairs).
The following parameters are defined so far.
ConfigFile - A filename from which to read a configuration file LogicalID - The logical id with which this component should be identified (a 64-bit integer)
arg0 | The paramters to set as a formatted string |