We use both TopicInfo and QueueInfo classes included in the tibco libraries:
https://docs.tibco.com/pub/enterprise_message_service/8.1.0/doc/html/tib_ems_api_reference/api/javadoc/com/tibco/tibjms/admin/TopicInfo.html
https://docs.tibco.com/pub/enterprise_message_service/8.1.0/doc/html/tib_ems_api_reference/api/javadoc/com/tibco/tibjms/admin/QueueInfo.html
Both call functions defined in DestinationInfo:
https://docs.tibco.com/pub/enterprise_message_service/8.1.0/doc/html/tib_ems_api_reference/api/javadoc/com/tibco/tibjms/admin/DestinationInfo.html
This functions are getInboundStatistics and getOutboundStatistics. These will return a value of type StatData:
https://docs.tibco.com/pub/enterprise_message_service/8.1.0/doc/html/tib_ems_api_reference/api/javadoc/com/tibco/tibjms/admin/StatData.html
We're interested in getMessageRate and getByteRate:
bytesIncoming - getInboundStatistics().getByteRate() msgsIncoming - getInboundStatistics().getMessageRate() bytesOutgoing - getOutboundStatistics().getByteRate() msgsOutgoing - getOutboundStatistics().getMessageRate()
|
Comments
0 comments
Please sign in to leave a comment.