C# Класс Wombat.MamaTransport

The underpinning object in any MAMA application
The mamaTransport defines the network protocol level parameters over which MAMA distributes data. Transports effectively provide scope for data identifying the underlying protocols and their values for data delivery. It is an isolated communication channel for data traffic. Transports specify the communication channels to use for making subscriptions and publishing data through the API.
Наследование: MamaWrapper
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
MamaTransport ( ) : System

Allocate a transport structure. You need to call destroy() when the class is no more needed The transport is not created until create() is called. Any transport properties should be set prior to calling create()

create ( string name, Wombat.MamaBridge bridgeImpl ) : void

Create a previously allocated transport. Platform specific parameters are read from the properties file mama.properties. The properties file is located in the WOMBAT_PATH directory. The parameters are dependent on the underlying messaging transport. TIBRV transports support the following: mama.tibrv.transport.name.service, mama.tibrv.transport.name.network, and mama.tibrv.transport.name.daemon. These correspond to the parameters for tibrvTransport_Create(). LBM: See the example mama.properties supplied with the release.

destroy ( ) : void

getName ( ) : string

Get the name of the transport.

getNativeTransport ( ) : IntPtr
getOutboundThrottle ( MamaThrottleInstance instance ) : double

Get the outbound throttle rate. This the rate at which the transport sends outbound messages to the feed handlers. It is also the rate at which new subscriptions are created. Its purpose is to avoid flooding the network with requests.

getSymbolMapFunc ( ) : MamaSymbolMapCallback

Return the symbol mapping function for a MamaTransport.

getSymbolMapFuncClosure ( ) : object

Return the symbol mapping function closure for a MamaTransport.

getTransportCallbackQueue ( ) : Wombat.MamaQueue

Set a queue for transport callbacks (transport and topic). If this is not set the default queue will be used.

requestConflation ( ) : void

Request conflation for a MamaTransport. Currently only available for WMW.

requestEndConflation ( ) : void

Request an end to conflation for a MamaTransport. Currently only available for WMW.

setOutboundThrottle ( MamaThrottleInstance instance, double outboundThrottle ) : void

Set the throttle rate.

setSymbolMapFunc ( MamaSymbolMapCallback callback, object closure ) : void

Set the symbol mapping function for a MamaTransport.

setTransportCallback ( MamaTransportCallback callback ) : void

Set the transport callback. It receives advisories when a transport disconnects or reconnects. Passing NULL removes the callback.

setTransportCallbackQueue ( Wombat.MamaQueue queue ) : void

Set a queue for transport callbacks (transport and topic). If this is not set the default queue will be used.

setTransportTopicCallback ( MamaTransportTopicCallback callback ) : void

Set the transport topic callback. It receives advisories when subjects sub or unsub, or when publisher events occur. Passing NULL removes the callback.

Защищенные методы

Метод Описание
DestroyNativePeer ( ) : MamaStatus.mamaStatus

Implements the destruction of the underlying peer object MamaWrapper.DestroyNativePeer

OnDispose ( ) : void

Приватные методы

Метод Описание
MamaTransport ( IntPtr transport ) : System

Описание методов

DestroyNativePeer() защищенный Метод

Implements the destruction of the underlying peer object MamaWrapper.DestroyNativePeer
protected DestroyNativePeer ( ) : MamaStatus.mamaStatus
Результат MamaStatus.mamaStatus

MamaTransport() публичный Метод

Allocate a transport structure. You need to call destroy() when the class is no more needed The transport is not created until create() is called. Any transport properties should be set prior to calling create()
public MamaTransport ( ) : System
Результат System

OnDispose() защищенный Метод

protected OnDispose ( ) : void
Результат void

create() публичный Метод

Create a previously allocated transport. Platform specific parameters are read from the properties file mama.properties. The properties file is located in the WOMBAT_PATH directory. The parameters are dependent on the underlying messaging transport. TIBRV transports support the following: mama.tibrv.transport.name.service, mama.tibrv.transport.name.network, and mama.tibrv.transport.name.daemon. These correspond to the parameters for tibrvTransport_Create(). LBM: See the example mama.properties supplied with the release.
public create ( string name, Wombat.MamaBridge bridgeImpl ) : void
name string
bridgeImpl Wombat.MamaBridge
Результат void

destroy() публичный Метод

public destroy ( ) : void
Результат void

getName() публичный Метод

Get the name of the transport.
public getName ( ) : string
Результат string

getNativeTransport() публичный Метод

public getNativeTransport ( ) : IntPtr
Результат System.IntPtr

getOutboundThrottle() публичный Метод

Get the outbound throttle rate. This the rate at which the transport sends outbound messages to the feed handlers. It is also the rate at which new subscriptions are created. Its purpose is to avoid flooding the network with requests.
public getOutboundThrottle ( MamaThrottleInstance instance ) : double
instance MamaThrottleInstance
Результат double

getSymbolMapFunc() публичный Метод

Return the symbol mapping function for a MamaTransport.
public getSymbolMapFunc ( ) : MamaSymbolMapCallback
Результат MamaSymbolMapCallback

getSymbolMapFuncClosure() публичный Метод

Return the symbol mapping function closure for a MamaTransport.
public getSymbolMapFuncClosure ( ) : object
Результат object

getTransportCallbackQueue() публичный Метод

Set a queue for transport callbacks (transport and topic). If this is not set the default queue will be used.
public getTransportCallbackQueue ( ) : Wombat.MamaQueue
Результат Wombat.MamaQueue

requestConflation() публичный Метод

Request conflation for a MamaTransport. Currently only available for WMW.
public requestConflation ( ) : void
Результат void

requestEndConflation() публичный Метод

Request an end to conflation for a MamaTransport. Currently only available for WMW.
public requestEndConflation ( ) : void
Результат void

setOutboundThrottle() публичный Метод

Set the throttle rate.
public setOutboundThrottle ( MamaThrottleInstance instance, double outboundThrottle ) : void
instance MamaThrottleInstance
outboundThrottle double
Результат void

setSymbolMapFunc() публичный Метод

Set the symbol mapping function for a MamaTransport.
public setSymbolMapFunc ( MamaSymbolMapCallback callback, object closure ) : void
callback MamaSymbolMapCallback
closure object
Результат void

setTransportCallback() публичный Метод

Set the transport callback. It receives advisories when a transport disconnects or reconnects. Passing NULL removes the callback.
public setTransportCallback ( MamaTransportCallback callback ) : void
callback MamaTransportCallback
Результат void

setTransportCallbackQueue() публичный Метод

Set a queue for transport callbacks (transport and topic). If this is not set the default queue will be used.
public setTransportCallbackQueue ( Wombat.MamaQueue queue ) : void
queue Wombat.MamaQueue
Результат void

setTransportTopicCallback() публичный Метод

Set the transport topic callback. It receives advisories when subjects sub or unsub, or when publisher events occur. Passing NULL removes the callback.
public setTransportTopicCallback ( MamaTransportTopicCallback callback ) : void
callback MamaTransportTopicCallback
Результат void