Interface AdapterSetMBean


  • public interface AdapterSetMBean
    Multiple AdapterSetMBean instances exist in the system, where each one is related to one configured Adapter Set. Every configured Adapter Set is bound to one AdapterSetMBean instance. Each AdapterSetMBean instance is created at startup by Lightstreamer Server and lasts until the shutdown of the Server. Remote JMX clients should not deregister AdapterSetMBean instances.

    AdapterSetMBean name pattern:
    "com.lightstreamer:type=AdapterSet,AdapterSetName=<AdapterSetName>"
    • Method Detail

      • getCurrentSessions

        java.lang.Integer getCurrentSessions()
        Returns:
        The number of current client Sessions bound to this Adapter Set. The count includes "prestarted" sessions.
      • getCurrentSessionList

        java.util.List<java.lang.String> getCurrentSessionList()
        Returns:
        The list of current client Sessions bound to this Adapter Set. Expressed as an ArrayList of Strings, where each String contains the sessionID of the Session. The list includes "prestarted" sessions.
        Note that also the Push Notification service may consume updates produced by this Adapter Set, although an MPN Device is not bound to a single Adapter Set; the list of MPN Devices involved with this Adapter Set is not reported.
      • getDataAdapterList

        java.util.List<java.lang.String> getDataAdapterList()
        Returns:
        The list of Data Adapters configured for this Adapter Set. Expressed as an ArrayList of Strings, where each String contains the configured name of the Data Adapter.
      • getLocalPoolQueue

        java.lang.Integer getLocalPoolQueue()
        Returns:
        The length of the queue of the tasks waiting to be processed by the "SET" pool specifically assigned to this Adapter Set. If assigned, this pool manages all requests by sessions bound to this Adapter Set, but for operations pertaining to more specific authentication, messages or Data Adapter related pool, if, in turn, assigned. If a specific pool is not assigned, these requests are managed by the SERVER pool; in this case, -1 is returned.
      • getAuthenticationPoolQueue

        java.lang.Integer getAuthenticationPoolQueue()
        Returns:
        The length of the queue of the tasks waiting to be processed by the "AUTHENTICATION" pool specifically assigned for authentication operations on this Adapter Set, if assigned. If a specific pool is not assigned, these operations are managed by either the Adapter Set specific pool or the SERVER pool; in this case, -1 is returned.
      • getMessagesPoolQueue

        java.lang.Integer getMessagesPoolQueue()
        Returns:
        The length of the queue of the tasks waiting to be processed by the "MSG" pool specifically assigned for message management on this Adapter Set, if assigned. If a specific pool is not assigned, these operations are managed by either the Adapter Set specific pool or the SERVER pool; in this case, -1 is returned.
      • getMPNPoolQueue

        java.lang.Integer getMPNPoolQueue()
        Returns:
        The length of the queue of the tasks waiting to be processed by the "MPN REQUESTS" pool specifically assigned for the handling of the client requests related with the Push Notification service that are bound to this Adapter Set, if such pool is assigned. If a specific pool is not assigned, these operations are managed by either the Adapter Set specific pool or the SERVER pool; in this case, -1 is returned.
        Unavailability Note:
        MPN is currently not available.
      • getRequestsQueue

        java.lang.Integer getRequestsQueue()
        Returns:
        The length of the queue of the tasks related with requests for this Adapter Set waiting to be processed by one of the Adapter specific thread pools. This includes the SET pool, the AUTHENTICATION pool, the MSG pool, the MPN REQUESTS pool and any Data Adapter specific pool, if assigned. If no specific pool is assigned, -1 is returned.