Studio:Transport Server Component: Difference between revisions
No edit summary |
No edit summary |
||
Line 44: | Line 44: | ||
| ActiveTransport | | ActiveTransport | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 52: | Line 52: | ||
| '''Read-Only''' | | '''Read-Only''' | ||
|} | |} | ||
| Returns the current active transport object or null if none is active. | | Returns the current active transport object or null if none is active. | ||
|- | |- | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| bool Connect( | | bool Connect( | ||
Line 63: | Line 64: | ||
| bool* stat) | | bool* stat) | ||
|} | |} | ||
| Method | | Method | ||
| Attempts to create a runtime connection to a target using the active transport. The timeout value (in milliseconds) is passed to the runtime connection request and it fails if timeout is exceeded. Default timeout is 5 seconds (5000). Returns true if connection succeeded, false if either the transport or runtime connection failed. | | Attempts to create a runtime connection to a target using the active transport. The timeout value (in milliseconds) is passed to the runtime connection request and it fails if timeout is exceeded. Default timeout is 5 seconds (5000). Returns true if connection succeeded, false if either the transport or runtime connection failed. | ||
|- | |- | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| bool ConnectAsync( | | bool ConnectAsync( | ||
Line 79: | Line 81: | ||
| bool* stat) | | bool* stat) | ||
|} | |} | ||
| Method | | Method | ||
| Makes an asynchronous connection request. A background thread is started to attempt to establish the connection. If monitor is true, the thread will run continuously and attempt to reconnect whenever the connection is lost. If monitor is false (the default) the background thread will exit once a connection is initially established. | | Makes an asynchronous connection request. A background thread is started to attempt to establish the connection. If monitor is true, the thread will run continuously and attempt to reconnect whenever the connection is lost. If monitor is false (the default) the background thread will exit once a connection is initially established. | ||
Line 84: | Line 87: | ||
| bool Database | | bool Database | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 90: | Line 93: | ||
| Object | | Object | ||
|} | |} | ||
| TBD. | | TBD. | ||
|- | |- | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| bool Disconnect( | | bool Disconnect( | ||
Line 99: | Line 103: | ||
| bool* stat) | | bool* stat) | ||
|} | |} | ||
| Method | | Method | ||
| Attempts to disconnect the runtime and the transport from the target. Returns true if successfully disconnected. | | Attempts to disconnect the runtime and the transport from the target. Returns true if successfully disconnected. | ||
|- | |- | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| bool DisconnectAsync( | | bool DisconnectAsync( | ||
Line 109: | Line 114: | ||
| bool* stat) | | bool* stat) | ||
|} | |} | ||
| Method | | Method | ||
| Initiates the request to disconnect from the target, but does not wait fo an acknowledgement of the disconnect request from runtime. Returns true if disconnect request initiated. | | Initiates the request to disconnect from the target, but does not wait fo an acknowledgement of the disconnect request from runtime. Returns true if disconnect request initiated. | ||
Line 114: | Line 120: | ||
| bool IBlockDataDump() | | bool IBlockDataDump() | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 120: | Line 126: | ||
| bool | | bool | ||
|} | |} | ||
| Turns IBlock dumps on or off. Default is off. If enabled, all IBlocks that are sent and received will be dumped to the STRIDE application log and to a predefined tracepoint. | | Turns IBlock dumps on or off. Default is off. If enabled, all IBlocks that are sent and received will be dumped to the STRIDE application log and to a predefined tracepoint. | ||
|- | |- | ||
| IsConnected | | IsConnected | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 132: | Line 139: | ||
| '''Read-only''' | | '''Read-only''' | ||
|} | |} | ||
| Returns the current connection state. | | Returns the current connection state. | ||
|- | |- | ||
| bool Loopback | | bool Loopback | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 142: | Line 150: | ||
| Object | | Object | ||
|} | |} | ||
| TBD. | | TBD. | ||
|- | |- | ||
| bool Statistics | | bool Statistics | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 152: | Line 161: | ||
| Object | | Object | ||
|} | |} | ||
| TBD. | | TBD. | ||
|- | |- | ||
| TargetRuntimeVersion | | TargetRuntimeVersion | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 162: | Line 172: | ||
| string | | string | ||
|} | |} | ||
| Returns the runtime version string. | | Returns the runtime version string. | ||
|- | |- | ||
Line 167: | Line 178: | ||
| subobject | | subobject | ||
| Ping settings | | Ping settings | ||
|- | |- | ||
| [[Transport Server Component#transport.Connections.Transports|Transports]] | | [[Transport Server Component#transport.Connections.Transports|Transports]] | ||
Line 182: | Line 185: | ||
| TransportsLocation | | TransportsLocation | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 189: | Line 192: | ||
|} | |} | ||
| Sets/gets the current directory for transport DLLs. Changing this value will immediately change the values in the Transports collection and will cause the current connection (if any) to be closed. | | Sets/gets the current directory for transport DLLs. Changing this value will immediately change the values in the Transports collection and will cause the current connection (if any) to be closed. | ||
|- | |||
| TransportDataDump | |||
| | |||
{| class="FCK__ShowTableBorders" border="0" | |||
|- | |||
| Property, | |||
|- | |||
| bool | |||
|} | |} | ||
| Turns raw data dumps on or off. Default is off. If enabled, all SLAP messages that are sent and received by the transport will be dumped to the STRIDE application log and to a predefined tracepoint. | | Turns raw data dumps on or off. Default is off. If enabled, all SLAP messages that are sent and received by the transport will be dumped to the STRIDE application log and to a predefined tracepoint. | ||
Line 205: | Line 216: | ||
| Enabled | | Enabled | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 216: | Line 227: | ||
| Interval | | Interval | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 227: | Line 238: | ||
| RetryCount | | RetryCount | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 238: | Line 249: | ||
| Timeout | | Timeout | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 260: | Line 271: | ||
| Count | | Count | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 288: | Line 299: | ||
| Active | | Active | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 299: | Line 310: | ||
| File | | File | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 312: | Line 323: | ||
| Name | | Name | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 340: | Line 351: | ||
| Count | | Count | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 368: | Line 379: | ||
| AllowableValues | | AllowableValues | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 381: | Line 392: | ||
| Name | | Name | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, | ||
Line 394: | Line 405: | ||
| Value | | Value | ||
| | | | ||
{| border="0" | {| class="FCK__ShowTableBorders" border="0" | ||
|- | |- | ||
| Property, | | Property, |
Revision as of 19:20, 26 June 2008
The Transport Server
The Transport Server fields client requests to a target. The client communicates to the Transport Server. The Transport Server communicates to the target runtime of a target.
To access the transport server, a client first registers with to it using a process id (PID). This is done transparently for script clients using the script wrapper named STRIDE.transport.
Automation API
transport._TSEvents
This is an outgoing connection point interface that is optionally implemented by clients that wish to be notified of connection related events.
Option | Type | Description |
---|---|---|
OnConnect() | Method/Event | Fired when the transport connection state changes from disconnected to connected. |
OnDisconnect() | Method/Event | Fired when the transport connection state changes from connected to disconnected. |
OnEvent(string message) | Method/Event | Fired when there is a reportable event in the transport communication. |
transport.Connection
This is the root object for all connection-related functionality.
Option | Type | Description | |||||
---|---|---|---|---|---|---|---|
ActiveTransport |
|
Returns the current active transport object or null if none is active. | |||||
|
Method | Attempts to create a runtime connection to a target using the active transport. The timeout value (in milliseconds) is passed to the runtime connection request and it fails if timeout is exceeded. Default timeout is 5 seconds (5000). Returns true if connection succeeded, false if either the transport or runtime connection failed. | |||||
|
Method | Makes an asynchronous connection request. A background thread is started to attempt to establish the connection. If monitor is true, the thread will run continuously and attempt to reconnect whenever the connection is lost. If monitor is false (the default) the background thread will exit once a connection is initially established. | |||||
bool Database |
|
TBD. | |||||
|
Method | Attempts to disconnect the runtime and the transport from the target. Returns true if successfully disconnected. | |||||
|
Method | Initiates the request to disconnect from the target, but does not wait fo an acknowledgement of the disconnect request from runtime. Returns true if disconnect request initiated. | |||||
bool IBlockDataDump() |
|
Turns IBlock dumps on or off. Default is off. If enabled, all IBlocks that are sent and received will be dumped to the STRIDE application log and to a predefined tracepoint. | |||||
IsConnected |
|
Returns the current connection state. | |||||
bool Loopback |
|
TBD. | |||||
bool Statistics |
|
TBD. | |||||
TargetRuntimeVersion |
|
Returns the runtime version string. | |||||
Ping | subobject | Ping settings | |||||
Transports | Collection | Collection of transports | |||||
TransportsLocation |
|
Sets/gets the current directory for transport DLLs. Changing this value will immediately change the values in the Transports collection and will cause the current connection (if any) to be closed. | |||||
TransportDataDump |
|
Turns raw data dumps on or off. Default is off. If enabled, all SLAP messages that are sent and received by the transport will be dumped to the STRIDE application log and to a predefined tracepoint. |
transport.Connection.Ping
This is the interface for ping settings. All ping settings are automatically persisted in the registry and restored when the transport server is instantiated.
Name | Type | Description | ||
---|---|---|---|---|
Enabled |
|
Turns the runtime ping messages on or off. This setting is persisted and restored automatically. | ||
Interval |
|
Sets/gets the time interval between ping messages, in milliseconds. | ||
RetryCount |
|
Sets/gets the number of allowable ping failures. Once this number if exceeded, the connection will be closed automatically. | ||
Timeout |
|
Sets/gets the timeout value for the ping message in milliseconds. If a response is not received within this time, the ping fails. |
transport.Connections.Transports
This is the collection of currently available transports.
Name | Type | Description | |||
---|---|---|---|---|---|
Count |
|
Gives the number of transport items in the collection. | |||
Item(variant index) | Method | Returns the specified transport item. Index can be a zero-based integer value or a string representing the name of the transport. Each transport advertises a unique name via its API and that’s what we use as the string keys. As per our usual policy, out-of-range integer indices will generate exceptions and out-of-range string indices will return null. |
transport.Connections.Transports.Item
This is the interface associated with each transport object.
Name | Type | Description | |||
---|---|---|---|---|---|
Active |
|
Sets/gets the active status of the transport. Only one transport can be active at any given time, so setting this to true for a transport that is not already active will cause the current active transport to be disconnected. Setting this property to true when the item is already active is a no-op. | |||
File |
|
Gets the full file path and name for the corresponding transport DLL. | |||
Name |
|
Gets the name of the transport item. | |||
Properties | Collection | Collection of properties |
transport.Connections.Transports.Properties
This is the collection of properties for a given transport.
Name | Type | Description | |||
---|---|---|---|---|---|
Count |
|
Gives the number of properties in the collection. | |||
Item(variant index) | Method | Returns the specified property item. Index can be a zero-based integer value or a string representing the name of the property. As per our usual policy, out-of-range integer indices will generate exceptions and out-of-range string indices will return null. |
transport.Connections.Transports.Properties.Item
This is the interface for a specific transport property.
Name | Type | Description | |||
---|---|---|---|---|---|
AllowableValues |
|
Gets a pipe-delimited string where each delimited value represents an allowable value for the property. Clients might use this to restrict or validate input. | |||
Name |
|
Gets the name of the property item. | |||
Value |
|
Gets/sets the value of the property. When set, the validation method of the transport will be called. Any failures in validation will be returned as exceptions here. |