com.metamatrix.console.models
Class QueryManager
java.lang.Object
com.metamatrix.console.models.Manager
com.metamatrix.console.models.TimedManager
com.metamatrix.console.models.QueryManager
- All Implemented Interfaces:
- ManagerListener, java.awt.event.ActionListener, java.util.EventListener
public class QueryManager
- extends TimedManager
- implements ManagerListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryManager
public QueryManager(ConnectionInfo connection)
init
public void init()
- Description copied from class:
TimedManager
- Calls super.init() and also initializes timing behavior.
- Overrides:
init
in class TimedManager
- See Also:
TimedManager.setRefreshRate(int)
modelChanged
public void modelChanged(ModelChangedEvent e)
- The QueryManager listens for changes to the SessionManager. If, for
example, a session is terminated, the QueryManager needs to know so
it can force itself to refresh.
- Specified by:
modelChanged
in interface ManagerListener
cancelQueryRequests
public void cancelQueryRequests(java.util.Collection<Request> selected)
throws ExternalException
- Throws:
ExternalException
getAllRequests
public java.util.Collection<Request> getAllRequests()
throws ExternalException
- Throws:
ExternalException
setAutoRefresher
public void setAutoRefresher(AutoRefresher autoRefresher)
refresh
public void refresh()
- Description copied from class:
Manager
- Refresh tells a manager that it's data is stale and it should retrieve
real data (rather than cached data) the next time data is requested.
Currently this method simply calls setIsStale(false)
- Overrides:
refresh
in class TimedManager
- See Also:
Manager.setIsStale(boolean)
setRefreshAction
public void setRefreshAction(javax.swing.Action refAction)
Copyright © 2009. All Rights Reserved.