org.apache.geronimo.system.logging
Class OSGILogServiceWrapper

java.lang.Object
  extended by org.apache.geronimo.system.logging.OSGILogServiceWrapper
All Implemented Interfaces:
GBeanLifecycle, SystemLog

public class OSGILogServiceWrapper
extends java.lang.Object
implements SystemLog, GBeanLifecycle

Version:
$Rev: 945526 $ $Date: 2010-05-18 15:45:22 +0800 (Tue, 18 May 2010) $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.geronimo.logging.SystemLog
SystemLog.LogMessage, SystemLog.SearchResults
 
Field Summary
 
Fields inherited from interface org.apache.geronimo.logging.SystemLog
MAX_SEARCH_RESULTS
 
Constructor Summary
OSGILogServiceWrapper(org.osgi.framework.BundleContext bundleContext, java.lang.String filter)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 java.lang.String getConfigFileName()
           
 java.lang.String[] getLogFileNames()
           
 SystemLog.SearchResults getMatchingItems(java.lang.String logFile, java.lang.Integer firstLine, java.lang.Integer lastLine, java.lang.String minLevel, java.lang.String regex, int maxResults, boolean includeStackTraces)
           
 int getRefreshPeriodSeconds()
           
 java.lang.String getRootLoggerLevel()
           
 void setConfigFileName(java.lang.String fileName)
           
 void setRefreshPeriodSeconds(int seconds)
           
 void setRootLoggerLevel(java.lang.String level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGILogServiceWrapper

public OSGILogServiceWrapper(@ParamSpecial(type=bundleContext)
                             org.osgi.framework.BundleContext bundleContext,
                             @ParamAttribute(name="filter")
                             java.lang.String filter)
Method Detail

getConfigFileName

public java.lang.String getConfigFileName()
Specified by:
getConfigFileName in interface SystemLog

getLogFileNames

public java.lang.String[] getLogFileNames()
Specified by:
getLogFileNames in interface SystemLog

getMatchingItems

public SystemLog.SearchResults getMatchingItems(java.lang.String logFile,
                                                java.lang.Integer firstLine,
                                                java.lang.Integer lastLine,
                                                java.lang.String minLevel,
                                                java.lang.String regex,
                                                int maxResults,
                                                boolean includeStackTraces)
Specified by:
getMatchingItems in interface SystemLog

getRefreshPeriodSeconds

public int getRefreshPeriodSeconds()
Specified by:
getRefreshPeriodSeconds in interface SystemLog

getRootLoggerLevel

public java.lang.String getRootLoggerLevel()
Specified by:
getRootLoggerLevel in interface SystemLog

setConfigFileName

public void setConfigFileName(java.lang.String fileName)
Specified by:
setConfigFileName in interface SystemLog

setRefreshPeriodSeconds

public void setRefreshPeriodSeconds(int seconds)
Specified by:
setRefreshPeriodSeconds in interface SystemLog

setRootLoggerLevel

public void setRootLoggerLevel(java.lang.String level)
Specified by:
setRootLoggerLevel in interface SystemLog

doFail

public void doFail()
Specified by:
doFail in interface GBeanLifecycle

doStart

public void doStart()
             throws java.lang.Exception
Specified by:
doStart in interface GBeanLifecycle
Throws:
java.lang.Exception

doStop

public void doStop()
            throws java.lang.Exception
Specified by:
doStop in interface GBeanLifecycle
Throws:
java.lang.Exception


Copyright © 2003-2012 The Apache Geronimo development community. All Rights Reserved.