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
파일 보기 프로젝트 열기: OpenMAMA/OpenMAMA 1 사용 예제들

공개 메소드들

메소드 설명
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