Dashboard Builder Commons 6.0.0.Beta4

org.jboss.dashboard.log
Class Log4JManager

java.lang.Object
  extended by org.jboss.dashboard.log.Log4JManager
All Implemented Interfaces:
Startable

@ApplicationScoped
public class Log4JManager
extends Object
implements Startable


Field Summary
protected  long _highThroughputCount
           
protected  long _numberOfEvents
           
protected  long _startTime
           
protected  long _throughput
           
protected  long highThroughput
           
protected  boolean highTroughputAllowed
           
protected  long highTroughputMaxTime
           
protected  List<LoggerSet> loggerSets
           
protected  MemoryAppender memoryAppender
           
protected  int memoryAppenderBufferSize
           
protected  String memoryAppenderName
           
protected  String memoryAppenderPattern
           
 
Constructor Summary
Log4JManager()
           
 
Method Summary
 void addLoggerSet(LoggerSet loggerSet)
           
protected  void calculateThroughput()
           
protected  void createMemoryAppender()
           
 long getHighThroughput()
           
 long getHighTroughputMaxTime()
           
 LoggerSet getLoggerSetById(Long id)
           
 List<LoggerSet> getLoggerSets()
           
 MemoryAppender getMemoryAppender()
           
 int getMemoryAppenderBufferSize()
           
 String getMemoryAppenderName()
           
 String getMemoryAppenderPattern()
           
 Priority getPriority()
           
 long getThroughput()
           
protected  void initCoreLoggerSets()
           
protected  void initLoggerSets()
           
 boolean isHighTroughputAllowed()
           
 void removeLoggerSet(LoggerSet loggerSet)
           
 void setHighThroughput(long highThroughput)
           
 void setHighTroughputAllowed(boolean highTroughputAllowed)
           
 void setHighTroughputMaxTime(long highTroughputMaxTime)
           
 void setLoggerSetsLevel(org.apache.log4j.Level level)
           
 void setMemoryAppenderBufferSize(int memoryAppenderBufferSize)
           
 void setMemoryAppenderName(String memoryAppenderName)
           
 void setMemoryAppenderPattern(String memoryAppenderPattern)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loggerSets

protected List<LoggerSet> loggerSets

memoryAppenderName

@Inject
protected String memoryAppenderName

memoryAppenderPattern

@Inject
protected String memoryAppenderPattern

memoryAppenderBufferSize

@Inject
protected int memoryAppenderBufferSize

highThroughput

@Inject
protected long highThroughput

highTroughputAllowed

@Inject
protected boolean highTroughputAllowed

highTroughputMaxTime

@Inject
protected long highTroughputMaxTime

memoryAppender

protected MemoryAppender memoryAppender

_numberOfEvents

protected transient long _numberOfEvents

_startTime

protected transient long _startTime

_highThroughputCount

protected transient long _highThroughputCount

_throughput

protected transient long _throughput
Constructor Detail

Log4JManager

public Log4JManager()
Method Detail

getMemoryAppenderName

public String getMemoryAppenderName()

setMemoryAppenderName

public void setMemoryAppenderName(String memoryAppenderName)

getMemoryAppenderPattern

public String getMemoryAppenderPattern()

setMemoryAppenderPattern

public void setMemoryAppenderPattern(String memoryAppenderPattern)

getMemoryAppenderBufferSize

public int getMemoryAppenderBufferSize()

setMemoryAppenderBufferSize

public void setMemoryAppenderBufferSize(int memoryAppenderBufferSize)

getMemoryAppender

public MemoryAppender getMemoryAppender()

getLoggerSets

public List<LoggerSet> getLoggerSets()

addLoggerSet

public void addLoggerSet(LoggerSet loggerSet)

removeLoggerSet

public void removeLoggerSet(LoggerSet loggerSet)

getLoggerSetById

public LoggerSet getLoggerSetById(Long id)

setLoggerSetsLevel

public void setLoggerSetsLevel(org.apache.log4j.Level level)

getHighThroughput

public long getHighThroughput()

setHighThroughput

public void setHighThroughput(long highThroughput)

isHighTroughputAllowed

public boolean isHighTroughputAllowed()

setHighTroughputAllowed

public void setHighTroughputAllowed(boolean highTroughputAllowed)

getHighTroughputMaxTime

public long getHighTroughputMaxTime()

setHighTroughputMaxTime

public void setHighTroughputMaxTime(long highTroughputMaxTime)

getThroughput

public long getThroughput()

calculateThroughput

protected void calculateThroughput()

getPriority

public Priority getPriority()
Specified by:
getPriority in interface Startable

start

public void start()
           throws Exception
Specified by:
start in interface Startable
Throws:
Exception

createMemoryAppender

protected void createMemoryAppender()

initCoreLoggerSets

protected void initCoreLoggerSets()

initLoggerSets

protected void initLoggerSets()

Dashboard Builder Commons 6.0.0.Beta4

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.