net.rim.pushsdk.monitoring
Interface MonitoringService

All Known Implementing Classes:
MonitoringServiceImpl

public interface MonitoringService

Interface for monitoring the queues and threads involved with acknowledgements and push statistics.

Author:
mdandrea

Method Summary
 int getNotificationListenerActiveThreadCount()
          Returns the number of threads actively calling notification listeners.
 int getNotificationListenerThreadPoolSize()
          Returns the number of threads currently in the thread pool (active and idle) for the notification listener service.
 int getNotificationListenerWorkQueueSize()
          Returns the size of the work queue of the notification listener service which holds tasks (Runnables) waiting to be picked up and processed using an active thread.
 int getNotificationProcessorActiveThreadCount()
          Returns the number of threads actively processing notifications.
 int getNotificationProcessorQueueSize()
          Returns the size of the result notification queue.
 int getNotificationProcessorThreadPoolSize()
          Returns the number of threads currently in the thread pool (active and idle) for the notification processor service.
 int getNotificationProcessorWorkQueueSize()
          Returns the size of the work queue of the notification processor service which holds tasks (Runnables) waiting to be picked up and processed using an active thread.
 int getPushStatsQueueSize()
          Returns the size of the queue holding push stats waiting to be batched and processed.
 void setNotificationListenerService(NotificationListenerService notificationListenerService)
          Support for dependency injection.
 void setNotificationProcessorService(NotificationProcessorService notificationProcessorService)
          Support for dependency injection.
 void setPushStatsBatchUpdaterService(PushStatsBatchUpdaterService pushStatsBatchUpdaterService)
          Support for dependency injection.
 

Method Detail

getNotificationProcessorQueueSize

int getNotificationProcessorQueueSize()
Returns the size of the result notification queue.

Returns:
the size of the result notification queue

getNotificationProcessorActiveThreadCount

int getNotificationProcessorActiveThreadCount()
Returns the number of threads actively processing notifications.

Returns:
the number of active processing threads

getNotificationProcessorThreadPoolSize

int getNotificationProcessorThreadPoolSize()
Returns the number of threads currently in the thread pool (active and idle) for the notification processor service.

Returns:
the number of threads in the thread pool

getNotificationProcessorWorkQueueSize

int getNotificationProcessorWorkQueueSize()
Returns the size of the work queue of the notification processor service which holds tasks (Runnables) waiting to be picked up and processed using an active thread.

Returns:
the size of the work queue

getNotificationListenerActiveThreadCount

int getNotificationListenerActiveThreadCount()
Returns the number of threads actively calling notification listeners.

Returns:
the number of active processing threads

getNotificationListenerThreadPoolSize

int getNotificationListenerThreadPoolSize()
Returns the number of threads currently in the thread pool (active and idle) for the notification listener service.

Returns:
the number of threads in the thread pool

getNotificationListenerWorkQueueSize

int getNotificationListenerWorkQueueSize()
Returns the size of the work queue of the notification listener service which holds tasks (Runnables) waiting to be picked up and processed using an active thread.

Returns:
the size of the work queue

getPushStatsQueueSize

int getPushStatsQueueSize()
Returns the size of the queue holding push stats waiting to be batched and processed.

Returns:
the size of the push stats queue

setNotificationProcessorService

void setNotificationProcessorService(NotificationProcessorService notificationProcessorService)
Support for dependency injection. Inject an implementation of a NotificationProcessorService collaborating object.

Parameters:
notificationProcessorService - an instance of a NotificationProcessorService implementation (must be thread safe)

setNotificationListenerService

void setNotificationListenerService(NotificationListenerService notificationListenerService)
Support for dependency injection. Inject an implementation of a NotificationListenerService collaborating object.

Parameters:
notificationListenerService - an instance of a NotificationListenerService implementation (must be thread safe)

setPushStatsBatchUpdaterService

void setPushStatsBatchUpdaterService(PushStatsBatchUpdaterService pushStatsBatchUpdaterService)
Support for dependency injection. Sets the PushStatsBatchUpdaterService to use.

Parameters:
pushStatsBatchUpdaterService - the Push Stats Batch Updater Service


Copyright © 2011 Research In Motion. All Rights Reserved.