What does the state code mean which returned by Heartbeat:pingEMSServer

What does the state code mean which returned by Heartbeat:pingEMSServer

book

Article ID: KB0075221

calendar_today

Updated On:

Products Versions
TIBCO Hawk 6.x

Description

Method Heartbeat:pingEMSServer will return three fields below:

Name Type Description
isServerAccessible String Is server accessible? True or False
Status Code String Status code
Status Details String Status details
If ems server running in different status, status code may be different. An example of the return:
User-added image
What does the status code mean?

Environment

All

Resolution

That status code is defined by EMS and returned by EMS JAVA API. 
Status Code EMS Server Status Details
3 SERVER_STATE_STANDBY Standby server
4 SERVER_STATE_ACTIVE Active server
51 SERVER_STATE_STANDBY_PAUSED Standby server paused
52 SERVER_STATE_ACTIVE_PAUSED Active server paused

For more status please see  EMS JAVA API DOC and article  000020883
 

Issue/Introduction

What does the state code mean which returned by Heartbeat:pingEMSServer

Additional Information

https://docs.tibco.com/pub/ems/8.5.1/doc/html/api/javadoc/constant-values.html#com.tibco.tibjms.admin.State.SERVER_STATE_ACTIVE
https://supportapps.tibco.com/article/000020883
https://docs.tibco.com/pub/hawk/6.2.0/doc/html/tib_hawk_plugin_reference/wwhelp/wwhimpl/common/html/wwhelp.htm#context=tib_hawk_plugin_reference&file=Heartbeat.8.9.htm