com.metamatrix.console.models
Class ServerLogManager

java.lang.Object
  extended by com.metamatrix.console.models.Manager
      extended by com.metamatrix.console.models.TimedManager
          extended by com.metamatrix.console.models.ServerLogManager
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class ServerLogManager
extends TimedManager

Extension of Manager to manage the Log tab.


Field Summary
 
Fields inherited from class com.metamatrix.console.models.TimedManager
DEFAULT_DELAY
 
Fields inherited from class com.metamatrix.console.models.Manager
MODEL_CHANGED, MODEL_STALE
 
Constructor Summary
ServerLogManager(ConnectionInfo connection)
          Construct a ServerLogManager
 
Method Summary
 java.util.Set getAllContexts()
          Get all available contexts, in sorted order.
 java.util.Collection getContextsForConfigurationIndex(int index)
           
 java.util.List getLogEntries(java.util.Date startTime, java.util.Date endTime, java.util.List levels, java.util.List contexts, int maxRows)
          Get the log entries that match the specified criteria.
 int getLoggingLevelForConfigurationIndex(int index)
           
 java.lang.String[] getMessageLevelDisplayNames()
           
 void init()
          Calls super.init() and also initializes timing behavior.
 void setContextsForConfigurationIndex(int index, java.util.Collection contexts)
           
 void setLoggingLevelForConfigurationIndex(int index, int level)
           
 
Methods inherited from class com.metamatrix.console.models.TimedManager
actionPerformed, getIsAutoRefreshEnabled, getRefreshRate, getTimer, isBusy, refresh, refresh, setBusy, setIsAutoRefreshEnabled, setRefreshRate, startTimer
 
Methods inherited from class com.metamatrix.console.models.Manager
addManagerListener, fireModelChangedEvent, fireModelChangedEvent, getConnection, getConnection, getEncryptor, getEventListeners, getIsStale, removeManagerListener, setIsStale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerLogManager

public ServerLogManager(ConnectionInfo connection)
Construct a ServerLogManager

Method Detail

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)

getAllContexts

public java.util.Set getAllContexts()
Get all available contexts, in sorted order.

Returns:
Since:
4.3

getContextsForConfigurationIndex

public java.util.Collection getContextsForConfigurationIndex(int index)
                                                      throws AuthorizationException,
                                                             ExternalException
Throws:
AuthorizationException
ExternalException

setContextsForConfigurationIndex

public void setContextsForConfigurationIndex(int index,
                                             java.util.Collection contexts)
                                      throws AuthorizationException,
                                             ExternalException
Throws:
AuthorizationException
ExternalException

getLoggingLevelForConfigurationIndex

public int getLoggingLevelForConfigurationIndex(int index)
                                         throws AuthorizationException,
                                                ExternalException
Throws:
AuthorizationException
ExternalException

setLoggingLevelForConfigurationIndex

public void setLoggingLevelForConfigurationIndex(int index,
                                                 int level)
                                          throws AuthorizationException,
                                                 ExternalException
Throws:
AuthorizationException
ExternalException

getMessageLevelDisplayNames

public java.lang.String[] getMessageLevelDisplayNames()

getLogEntries

public java.util.List getLogEntries(java.util.Date startTime,
                                    java.util.Date endTime,
                                    java.util.List levels,
                                    java.util.List contexts,
                                    int maxRows)
                             throws AuthorizationException,
                                    ExternalException
Get the log entries that match the specified criteria.

Parameters:
startTime -
endTime - If null, will ignore this criterion.
levels - List of Integers
levels - List of Strings. If null, will ignore this criterion and return entries with any context.
maxRows -
Returns:
List of LogEntry objects
Throws:
AuthorizationException
ExternalException
Since:
4.3


Copyright © 2009. All Rights Reserved.