ServiceEndpointDiscovery class provides the functionality to query endpoints from RDP service discovery. More...
Public Member Functions | |
Constructor | |
ServiceEndpointDiscovery () | |
More... | |
ServiceEndpointDiscovery (const ServiceEndpointDiscoveryConfig &serviceEndpointDiscoveryConfig) | |
More... | |
ServiceEndpointDiscovery (const EmaString &tokenServiceURLV1) | |
More... | |
ServiceEndpointDiscovery (const EmaString &tokenServiceURLV1, const EmaString &serviceDiscoveryURL) | |
More... | |
ServiceEndpointDiscovery (const EmaString &tokenServiceURLV1, const EmaString &tokenServiceURLV2, const EmaString &serviceDiscoveryURL) | |
More... | |
Destructor | |
~ServiceEndpointDiscovery () | |
More... | |
Operations | |
void | registerClient (const ServiceEndpointDiscoveryOption ¶ms, ServiceEndpointDiscoveryClient &client, void *closure=0) |
More... | |
Application interacts with the service discovery through the ServiceEndpointDiscovery interface methods. The results of these interactions are communicated back to application through ServiceEndpointDiscoveryClient.
The following code snippet shows basic usage of ServiceEndpointDiscovery class in a simple consumer type app.
Definition at line 59 of file ServiceEndpointDiscovery.h.
refinitiv::ema::access::ServiceEndpointDiscovery::ServiceEndpointDiscovery | ( | ) |
Create an ServiceEndpointDiscovery with the default settings.
refinitiv::ema::access::ServiceEndpointDiscovery::ServiceEndpointDiscovery | ( | const ServiceEndpointDiscoveryConfig & | serviceEndpointDiscoveryConfig | ) |
Create an ServiceEndpointDiscovery from a ServiceEndpointDiscoveryConfig.
[in] | serviceEndpointDiscoveryConfig | specifies the configuration object containing configurations for service discovery. |
refinitiv::ema::access::ServiceEndpointDiscovery::ServiceEndpointDiscovery | ( | const EmaString & | tokenServiceURLV1 | ) |
Create an ServiceEndpointDiscovery.
[in] | tokenServiceURLV1 | specifies the token service URL V1 to override the default value. |
refinitiv::ema::access::ServiceEndpointDiscovery::ServiceEndpointDiscovery | ( | const EmaString & | tokenServiceURLV1, |
const EmaString & | serviceDiscoveryURL | ||
) |
Create an ServiceEndpointDiscovery.
[in] | tokenServiceURLV1 | specifies the token service URL V1 to override the default value. |
[in] | serviceDiscoveryURL | specifies the service discovery URL to override the default value. |
refinitiv::ema::access::ServiceEndpointDiscovery::ServiceEndpointDiscovery | ( | const EmaString & | tokenServiceURLV1, |
const EmaString & | tokenServiceURLV2, | ||
const EmaString & | serviceDiscoveryURL | ||
) |
Create an ServiceEndpointDiscovery.
[in] | tokenServiceURLV1 | specifies the token service URL for V1 to override the default value. |
[in] | tokenServiceURLV2 | specifies the token service URL for V2 to override the default value. |
[in] | serviceDiscoveryURL | specifies the service discovery URL to override the default value. |
refinitiv::ema::access::ServiceEndpointDiscovery::~ServiceEndpointDiscovery | ( | ) |
Destructor.
void refinitiv::ema::access::ServiceEndpointDiscovery::registerClient | ( | const ServiceEndpointDiscoveryOption & | params, |
ServiceEndpointDiscoveryClient & | client, | ||
void * | closure = 0 |
||
) |
Queries the RDP service discovery synchronously to get endpoints according to the specified parameters
[in] | params | specifies query options to get endpoints |
[in] | client | specifies ServiceEndpointDiscoveryClient instance receiving notifications about this query |
[in] | closure | specifies application defined query identification |
OmmMemoryExhaustionException | if system runs out of memory |
OmmInvalidUsageException | if application passes invalid ServiceEndpointDiscoveryOption |
![]() |
![]() |
|