net.sf.panoptes.model.node.log4j
Class LoggerRepository

java.lang.Object
  |
  +--net.sf.panoptes.model.node.ComponentGroupNode
        |
        +--net.sf.panoptes.model.node.log4j.LoggerRepository
All Implemented Interfaces:
INode

public class LoggerRepository
extends ComponentGroupNode

LoggerRepository.java Controller class for all logger locations. Should probably be instanciated on a per-client-basis in the near future.

Version:
0.1
Author:
Dag Liodden

Field Summary
 
Fields inherited from interface net.sf.panoptes.model.node.INode
ICON_BROKEN_LINK, ICON_CONNECTION, ICON_CONNECTIONS_FOLDER, ICON_DATASOURCE, ICON_DOMAIN, ICON_ERROR, ICON_FOLDER, ICON_INFO, ICON_LOG, ICON_LOG_FOLDER, ICON_MBEAN, ICON_QUERY_FOLDER, ICON_SERVER, ICON_SERVICE, ICON_SESSION, ICON_USER, ICON_WARNING
 
Constructor Summary
LoggerRepository(ComponentRegistry componentRegistry)
          Constructor.
 
Method Summary
 void addEvent(org.apache.log4j.spi.LoggingEvent e, java.net.InetAddress host)
          Add an event to this repository.
 void addListener(RepositoryListener listener)
          Adds a RepositoryListener to this repository
 INode[] getChildren()
           
 NodeDescriptor getConfigDescriptor()
           
 java.lang.String getIconName()
           
 org.apache.log4j.spi.LoggingEvent[] listEvents()
          Lists all event in this repository
 LoggerComponent[] listLocations()
          Lists all LoggerLocations in this repository
 
Methods inherited from class net.sf.panoptes.model.node.ComponentGroupNode
acceptsChildren, addChild, setAcceptsChildren, setConfigDescriptor, setIconName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerRepository

public LoggerRepository(ComponentRegistry componentRegistry)
Constructor.

Method Detail

addEvent

public void addEvent(org.apache.log4j.spi.LoggingEvent e,
                     java.net.InetAddress host)
Add an event to this repository. Listeners are notified on the next batch update

Parameters:
e - the event to add
host - the source host (not used quite yet)

listLocations

public LoggerComponent[] listLocations()
Lists all LoggerLocations in this repository

Returns:
LoggerComponent[] the locations

listEvents

public org.apache.log4j.spi.LoggingEvent[] listEvents()
Lists all event in this repository

Returns:
LoggingEvent[] the events

addListener

public void addListener(RepositoryListener listener)
Adds a RepositoryListener to this repository

Parameters:
listener - the listener to add
See Also:
RepositoryListener

getConfigDescriptor

public NodeDescriptor getConfigDescriptor()
Specified by:
getConfigDescriptor in interface INode
Overrides:
getConfigDescriptor in class ComponentGroupNode
See Also:
com.glt.troodon.console.INode#getConfigDescriptor()

getChildren

public INode[] getChildren()
Specified by:
getChildren in interface INode
Overrides:
getChildren in class ComponentGroupNode
See Also:
com.glt.troodon.console.INode#getChildren()

getIconName

public java.lang.String getIconName()
Specified by:
getIconName in interface INode
Overrides:
getIconName in class ComponentGroupNode
See Also:
com.glt.troodon.console.INode#getIconName()


Copyright © 2003 . All Rights Reserved.