![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
tibems_status tibemsAdmin_GetConsumers(
collection has usage pointer.
The function stores the returned consumer data in the location specified here, as a collection of tibemsConsumerInfo objects. connectionID is reserved for future use and must be set to zero. If specified, only consumers for connections that use the specified user name will be returned. Specify NULL if all consumers should be returned. If specified, only consumers on destinations of the same type and matching this destination name will be returned. destination can be:
•
• TIBEMS_INVALID_ADMIN_ID to return all consumers. When TRUE, this parameter specifies that only durable topic subscribers should be returned.This parameter is applied only to topic subscribers, and when included prevents the function from returning non-durable topic consumers. However, it does not affect which queue consumers are returned. Specifies what information will be returned for each consumer that matches the filter criteria. Possible values for this parameter are:
• GET_STAT—gets a tibemsStatData for each consumer.
• When no flag is specified, the returned information does not include statistics.If statistics are disabled in the server, no statistics will be returned regardless of the flag specified in this parameter.Returns a list of consumers matching the specified filters. The consumers are returned in a tibemsCollection; if no consumers matching the filter criteria exist in the server, then no tibemsCollection will be returned.The returned consumers are not sorted and are placed in the tibemsCollection object in any order. Your application may need to sort the consumers into a specific order if required.For example, this call returns all consumers known to the server, but does not include statistical information for each consumer:tibemsAdmin admin;tibems_status status;status = tibemsAdmin_GetConsumers(admin, &consumerInfoCollection, 0L, NULL, TIBEMS_ADMIN_INVALID_ID, TIBEMS_FALSE, 0);tibemsAdmin admin;tibems_status status;status = tibemsAdmin_GetConsumers(admin, &consumerInfoCollection, 0L, NULL, TIBEMS_ADMIN_INVALID_ID, TIBEMS_TRUE, 0);This call returns all durable topic consumers that subscribe to any topic matching topic news.*. If statistics are enabled in the server, the returned tibemsConsumerInfo objects will include detailed statistics about the consumers.tibemsAdmin admin;tibems_status status;tibemsTopicInfo topicInfo;status = tibemsAdmin_GetConsumers(admin, &consumerInfoCollection, 0L, NULL, topicInfo, TIBEMS_TRUE, TIBEMS_GET_DETAILED_STAT);This call returns all queue consumers created by user OrderProcessor and receiving messages from all queues matching name purchase.order.>. Each tibemsConsumerInfo object will include the full statistics available for the consumer.tibemsAdmin admin;tibems_status status;tibemsQueueInfo queueInfo;status = tibemsAdmin_GetConsumers(admin, &consumerInfoCollection, 0L, "OrderProcessor", queueInfo, TIBEMS_FALSE, TIBEMS_GET_DETAILED_STAT);
The administrative query timed out while waiting for a server response.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |