|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.howl.log.Configuration
Provides configuration information for a
Logger
instance.
Constructor Summary | |
Configuration()
Construct a Configuration object with default values. |
|
Configuration(java.io.File propertyFile)
Construct a Configuration object using a Properties file specified by the caller. |
|
Configuration(java.util.Properties prop)
Construct a Configuration object using a Properties object supplied by the caller. |
Method Summary | |
java.lang.String |
getBufferClassName()
|
int |
getBufferSize()
Returns the size of buffers specified as a number of 1K blocks. |
int |
getFlushSleepTime()
|
java.lang.String |
getLogFileDir()
|
java.lang.String |
getLogFileExt()
|
java.lang.String |
getLogFileMode()
|
java.lang.String |
getLogFileName()
|
int |
getMaxBlocksPerFile()
|
int |
getMaxBuffers()
|
int |
getMaxLogFiles()
|
int |
getMinBuffers()
|
int |
getThreadsWaitingForceThreshold()
|
boolean |
isChecksumEnabled()
|
void |
setBufferClassName(java.lang.String bufferClassName)
|
void |
setBufferSize(int bufferSize)
|
void |
setChecksumEnabled(boolean checksumOption)
|
void |
setFlushSleepTime(int flushSleepTime)
|
void |
setLogFileDir(java.lang.String logFileDir)
|
void |
setLogFileExt(java.lang.String logFileExt)
|
void |
setLogFileMode(java.lang.String logFileMode)
|
void |
setLogFileName(java.lang.String logFileName)
|
void |
setMaxBlocksPerFile(int maxBlocksPerFile)
|
void |
setMaxBuffers(int maxBuffers)
|
void |
setMaxLogFiles(int maxLogFiles)
|
void |
setMinBuffers(int minBuffers)
|
void |
setThreadsWaitingForceThreshold(int threadsWaitingForceThreshold)
|
void |
store(java.io.OutputStream out)
Stores configuration properties to OutputStream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Configuration()
Caller will use setter methods to change the defaults.
public Configuration(java.util.Properties prop) throws LogConfigurationException
prop
- Properties object containing default settingspublic Configuration(java.io.File propertyFile) throws LogConfigurationException
propertyFile
- File object describing a properties file
LogConfigurationException
- if property file cannot be processed.Method Detail |
public java.lang.String getLogFileDir()
getLogFileDir
in interface ConfigurationMBean
public void setLogFileDir(java.lang.String logFileDir)
logFileDir
- The logFileDir to set.public java.lang.String getLogFileExt()
getLogFileExt
in interface ConfigurationMBean
public void setLogFileExt(java.lang.String logFileExt)
logFileExt
- The logFileExt to set.public java.lang.String getLogFileName()
getLogFileName
in interface ConfigurationMBean
public void setLogFileName(java.lang.String logFileName)
logFileName
- The logFileName to set.public boolean isChecksumEnabled()
isChecksumEnabled
in interface ConfigurationMBean
public void setChecksumEnabled(boolean checksumOption)
checksumOption
- The checksumOption to set.public int getBufferSize()
As an example, if buffers are 4096 bytes large, getBufferSize() returns 4.
getBufferSize
in interface ConfigurationMBean
public void setBufferSize(int bufferSize) throws LogConfigurationException
bufferSize
- The size of a log buffer
specified as a number of 1024 byte blocks.
The value specified by bufferSize is multiplied by 1024 to establish the actual buffer size used by the logger.
LogConfigurationException
public java.lang.String getBufferClassName()
getBufferClassName
in interface ConfigurationMBean
public void setBufferClassName(java.lang.String bufferClassName)
bufferClassName
- The bufferClassName to set.public int getMaxBuffers()
getMaxBuffers
in interface ConfigurationMBean
public void setMaxBuffers(int maxBuffers) throws LogConfigurationException
maxBuffers
- The maxBuffers to set.
LogConfigurationException
public int getMinBuffers()
getMinBuffers
in interface ConfigurationMBean
public void setMinBuffers(int minBuffers) throws LogConfigurationException
minBuffers
- The minBuffers to set.
LogConfigurationException
public int getFlushSleepTime()
getFlushSleepTime
in interface ConfigurationMBean
public void setFlushSleepTime(int flushSleepTime)
flushSleepTime
- The amount of time
(specified in milli-seconds) the FlushManager
should sleep.public int getThreadsWaitingForceThreshold()
getThreadsWaitingForceThreshold
in interface ConfigurationMBean
public void setThreadsWaitingForceThreshold(int threadsWaitingForceThreshold)
threadsWaitingForceThreshold
- The threadsWaitingForceThreshold to set.public int getMaxBlocksPerFile()
getMaxBlocksPerFile
in interface ConfigurationMBean
public void setMaxBlocksPerFile(int maxBlocksPerFile)
maxBlocksPerFile
- The maxBlocksPerFile to set.public int getMaxLogFiles()
getMaxLogFiles
in interface ConfigurationMBean
public void setMaxLogFiles(int maxLogFiles)
maxLogFiles
- The maxLogFiles to set.public java.lang.String getLogFileMode()
getLogFileMode
in interface ConfigurationMBean
public void setLogFileMode(java.lang.String logFileMode) throws LogConfigurationException
logFileMode
- The logFileMode to set.
LogConfigurationException
public void store(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
Properties.store(java.io.OutputStream, java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |