com.lightstreamer.jmx
Interface DataAdapterMBean


public interface DataAdapterMBean

Multiple DataAdapterMBean instances are allowed in the system. Each DataAdapterMBean instance pertains to one Data Adapter instance. Each Data Adapter instance is bound to one DataAdapterMBean instances. Note that each Adapter Set may contain multiple Data Adapter instances. Each DataAdapterMBean instance is created at startup by Lightstreamer Server and lasts until the shutdown of the Server. Remote JMX clients should not deregister DataAdapterMBean instances.

DataAdapterMBean name pattern:
"com.lightstreamer:type=DataAdapter,AdapterSetName=<AdapterSetName>,DataAdapterName=<DataAdapterName>"

To ensure compatibility with old JMX clients as long as old adapters deployment style is used, Data Adapters whose local name is not configured (or whose local name is "DEFAULT") can also be addressed through the following pattern:
"com.lightstreamer:type=DataAdapter,name=<AdapterSetName>"


Method Summary
 java.lang.Long getCumulInboundEvents()
           
 java.lang.Long getInboundEventFrequency()
           
 java.lang.Long getMaxInboundEventFrequency()
           
 java.util.List getSessionListForItem(java.lang.String itemName)
           
 java.util.List getSubscribedButFailedItemList()
           
 java.lang.Long getSubscribedButFailedItems()
           
 java.util.List getSubscribedItemList()
           
 java.lang.Long getSubscribedItems()
           
 

Method Detail

getSubscribedItems

java.lang.Long getSubscribedItems()
Returns:
The number of currently subscribed Items coming from this Data Adapter.

getSubscribedItemList

java.util.List getSubscribedItemList()
Returns:
The list of currently subscribed Items coming from this Data Adapter. Expressed as an ArrayList of Strings, where each String contains the itemName of the Item.

getSubscribedButFailedItems

java.lang.Long getSubscribedButFailedItems()
Returns:
The number of currently subscribed Items coming from this Data Adapter that can not send events because their subscription attempt got an error from the Adapter.

getSubscribedButFailedItemList

java.util.List getSubscribedButFailedItemList()
Returns:
The list of currently subscribed Items coming from this Data Adapter that can not send events because their subscription attempt got an error from the Adapter. Expressed as an ArrayList of Strings, where each String contains the itemName of the Item.

getSessionListForItem

java.util.List getSessionListForItem(java.lang.String itemName)
Parameters:
itemName - an Item name.
Returns:
The list of current Sessions delivering itemName item. Expressed as an ArrayList of Strings, where each String contains the sessionID of the Session.

getCumulInboundEvents

java.lang.Long getCumulInboundEvents()
Returns:
The total (cumulative) number of inbound events flowing from this Data Adapter into LS Kernel.

getInboundEventFrequency

java.lang.Long getInboundEventFrequency()
Returns:
The frequency of inbound events flowing from this Data Adapter into LS Kernel in the last sampling period. It is expressed as events per second.

getMaxInboundEventFrequency

java.lang.Long getMaxInboundEventFrequency()
Returns:
The maximum frequency of inbound events flowing from this Data Adapter into LS Kernel reached in the life of the Server. It is expressed as events per second.