Announcement

Collapse
No announcement yet.

How to get the "connection status of channel"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    @Small,
    could you post some code?

    Perhaps someone here can help you.

    Comment


    • #17
      In 3.4.x this works:

      Code:
      var defController = Packages.com.mirth.connect.server.controllers.DefaultExtensionController.create();
      var monitor = defController.getServicePlugins().get(com.mirth.connect.plugins.dashboardstatus.DashboardConnectorStatusServletInterface.PLUGIN_POINT);
      connectorListener = monitor.getConnectorListener()
      var states = connectorListener.getConnectorStateMap();
      // Status siehe: https://svn.mirthcorp.com/connect/branches/3.4.x/client/src/com/mirth/connect/plugins/dashboardstatus/DashboardConnectorStatusPanel.java
      thisState = states.get(channelID+'_0')[1]

      Comment


      • #18
        Very good! Thank you for share the solution using mirth 3.4.x.

        Works fine to me.

        Hugo

        Comment


        • #19
          How to enable to statistics for Javascript Reader channels

          Hi Team,
          I have a mirth channel source connector as 'Javascript Reader'. It's not showing any statistics in Dashboard. how to enable it? Thanks.

          Regards,
          Lakshmi

          Comment


          • #20
            How to get connection Status?

            Is there a way to pull this information from the cli, or from the mirth connect api?

            If not how do you set up the channel to pull this information? Details please total novice. Thanx in advance.

            Comment


            • #21
              Hi

              am getting null in connection status, can anyone help me out?

              thanks in advance.
              Last edited by narupley; 08-13-2018, 06:30 AM. Reason: spam

              Comment

              Working...
              X