question

Upvotes
Accepted
321 1 0 9

如何在EMA SDK中指定多个主机hosts?

我们如何给接收/消费数据的客户端指定多个主机呢?假定一个主一个备?

以下是其标题中的函数签名:

OmmConsumerConfig& host( const EmaString& host = "localhost:14002" );

它可以接受“host:port”,但是我们目前的TREP/RFA设置里,我们提供2个主机,为“host1 host2”

请问下在EMA SDK中是否有这样的规定?谢谢!

ema-apirefinitiv-realtime-sdk
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hi @ivy.cao2020 ,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,
AHS

Upvotes
Accepted
321 1 0 9

如果需要指定多个主机,你需要再EMA的配置中通过ChannelSet这个配置项来指定。

1661411006530.png

你可以在EMAConfig.xml 中指定,例如:

1661411057399.png

又或者,你可以通过EMA的程序化配置功能来实现。

可以参考以下文章:

The Mechanics of EMA Connection and Item RecoveryEnterprise Message API (EMA) - Configuration Overview | Refinitiv Developers


1661411006530.png (70.9 KiB)
1661411057399.png (25.8 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
321 1 0 9

OmmConsumerConfig::host() 是用来指定一个主机和端口的。

1661410911869.png它不支持多个主机。


1661410911869.png (83.4 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.