net.sf.doolin.gui.bus
Class BusMonitoringModel

java.lang.Object
  extended by net.sf.doolin.bus.bean.Bean
      extended by net.sf.doolin.gui.bus.BusMonitoringModel
All Implemented Interfaces:
Serializable, IBean

public class BusMonitoringModel
extends Bean

Bean model used by the Bus Monitoring API. It contains a list of BusMonitoringSubscription and manages the count of them.

Author:
Damien Coraboeuf
See Also:
Serialized Form

Field Summary
static String ACTIVATE_LOGGING
           
static String AUTO_REFRESH
           
static String COUNT
           
static String MAXIMUM
           
static String REFRESH_INTERVAL
           
 
Constructor Summary
BusMonitoringModel()
          Constructor.
 
Method Summary
 void clearLog()
           
 int getCount()
          Returns the count of subscriptions.
 int getMaximum()
           
 BusMonitoringLog getMonitoringLog()
           
 int getRefreshInterval()
           
 ca.odell.glazedlists.EventList<BusMonitoringStat> getStatList()
           
 ca.odell.glazedlists.EventList<BusMonitoringSubscription> getSubscriptionList()
          Returns the dynamic list of subscriptions
 boolean isActivateLogging()
           
 boolean isAutoRefresh()
           
 void refresh()
          Refreshes the list of subscriptions from the current bus state
 void setActivateLogging(boolean activateLogging)
           
 void setAutoRefresh(boolean autoRefresh)
           
protected  void setCount(int count)
          Sets the count of subscriptions
protected  void setMaximum(int maximum)
          Sets the maximum count
 void setRefreshInterval(int refreshInterval)
           
protected  void updateStat()
           
 
Methods inherited from class net.sf.doolin.bus.bean.Bean
getBeanNotificationSupport, getParentBean, notify, setParentBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTO_REFRESH

public static final String AUTO_REFRESH
See Also:
Constant Field Values

REFRESH_INTERVAL

public static final String REFRESH_INTERVAL
See Also:
Constant Field Values

MAXIMUM

public static final String MAXIMUM
See Also:
Constant Field Values

COUNT

public static final String COUNT
See Also:
Constant Field Values

ACTIVATE_LOGGING

public static final String ACTIVATE_LOGGING
See Also:
Constant Field Values
Constructor Detail

BusMonitoringModel

public BusMonitoringModel()
Constructor. Starts to build the list of subscriptions.

See Also:
refresh()
Method Detail

clearLog

public void clearLog()

getCount

public int getCount()
Returns the count of subscriptions.

Returns:
Count of subscriptions

getMaximum

public int getMaximum()

getMonitoringLog

public BusMonitoringLog getMonitoringLog()

getRefreshInterval

public int getRefreshInterval()

getStatList

public ca.odell.glazedlists.EventList<BusMonitoringStat> getStatList()

getSubscriptionList

public ca.odell.glazedlists.EventList<BusMonitoringSubscription> getSubscriptionList()
Returns the dynamic list of subscriptions

Returns:
List of subscriptions

isActivateLogging

public boolean isActivateLogging()

isAutoRefresh

public boolean isAutoRefresh()

refresh

public void refresh()
Refreshes the list of subscriptions from the current bus state


setActivateLogging

public void setActivateLogging(boolean activateLogging)

setAutoRefresh

public void setAutoRefresh(boolean autoRefresh)

setCount

protected void setCount(int count)
Sets the count of subscriptions

Parameters:
count - Count

setMaximum

protected void setMaximum(int maximum)
Sets the maximum count


setRefreshInterval

public void setRefreshInterval(int refreshInterval)

updateStat

protected void updateStat()


Copyright © 2011. All Rights Reserved.