org.fusesource.insight.log.log4j
Class Log4jLogQuery
java.lang.Object
org.fusesource.insight.log.support.LogQuerySupport
org.fusesource.insight.log.log4j.Log4jLogQuery
- All Implemented Interfaces:
- Log4jLogQueryMBean, LogQuerySupportMBean
public class Log4jLogQuery
- extends LogQuerySupport
- implements Log4jLogQueryMBean
A log4j adapter for LogQueryMBean
| Methods inherited from class org.fusesource.insight.log.support.LogQuerySupport |
addJarEntryToIndex, allLogResults, ensureStartsWithSlash, filterLogEvents, getArtifactFile, getHostName, getJavaDoc, getLogEvents, getMbeanName, getMbeanServer, getSource, isRoot, jarIndex, jarIndex, jarIndex, jsonQueryLogResults, jsonToLogFilter, loadString, logResultsSince, registerMBeanServer, setHostName, setMbeanName, setMbeanServer, toJSON, unregisterMBeanServer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Log4jLogQuery
public Log4jLogQuery()
start
@PostConstruct
public void start()
- Overrides:
start in class LogQuerySupport
stop
@PreDestroy
public void stop()
- Overrides:
stop in class LogQuerySupport
getLogResults
public LogResults getLogResults(int maxCount)
throws java.io.IOException
- Specified by:
getLogResults in interface LogQuerySupportMBean
- Throws:
java.io.IOException
queryLogResults
public LogResults queryLogResults(LogFilter filter)
- Specified by:
queryLogResults in interface LogQuerySupportMBean
filterLogResults
protected LogResults filterLogResults(Predicate<LogEvent> predicate,
int maxCount)
toLogEvent
protected LogEvent toLogEvent(org.apache.log4j.spi.LoggingEvent element)
filterLogEvents
protected java.lang.String filterLogEvents(LogFilter filter)
throws java.io.IOException
- Throws:
java.io.IOException
appendMavenCoordinates
protected void appendMavenCoordinates(org.apache.log4j.spi.LoggingEvent loggingEvent)
loadCoords
protected java.lang.String loadCoords(java.lang.String coords,
java.lang.String filePath,
java.lang.String classifier)
throws java.io.IOException
- Overrides:
loadCoords in class LogQuerySupport
- Throws:
java.io.IOException
getDefaultProperties
protected java.util.Properties getDefaultProperties()
getEvents
public LruList<org.apache.log4j.spi.LoggingEvent> getEvents()
setEvents
public void setEvents(LruList<org.apache.log4j.spi.LoggingEvent> events)
getSize
public int getSize()
setSize
public void setSize(int size)
isAddMavenCoordinates
public boolean isAddMavenCoordinates()
setAddMavenCoordinates
public void setAddMavenCoordinates(boolean addMavenCoordinates)
getProperties
public java.util.Properties getProperties()
setProperties
public void setProperties(java.util.Properties properties)
getConfig
public org.ops4j.pax.url.maven.commons.MavenConfigurationImpl getConfig()
setConfig
public void setConfig(org.ops4j.pax.url.maven.commons.MavenConfigurationImpl config)
getResolver
public org.ops4j.pax.url.mvn.internal.AetherBasedResolver getResolver()
setResolver
public void setResolver(org.ops4j.pax.url.mvn.internal.AetherBasedResolver resolver)
Copyright © 2013 Red Hat. All Rights Reserved.