|
soap tutorial | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectadriani.jws.template.util.GeneralThread
adriani.jws.template.util.RotateThread
public class RotateThread
The thread managing the rotation of the POJO logger mechanism, used by the SystemLogger
.
SystemLogger
Field Summary | |
---|---|
protected java.lang.String |
leadingName
Beginning of each logging message produced by this class. |
protected java.lang.String |
loggerRef
Beginning of each logging message produced by this class. |
protected LoggerManager |
manager
A reference to the LoggerManager needing rotation. |
protected long |
sleepTime
The sleep time for this thread (milliseconds). |
Fields inherited from class adriani.jws.template.util.GeneralThread |
---|
active, running, theThread |
Constructor Summary | |
---|---|
RotateThread(LoggerManager manager,
int time)
Standard constructor. |
Method Summary | |
---|---|
long |
getSleepTime()
Accessor method. |
void |
run()
This method contains an endless while cycle, performed as long as the class attribute running is set to true . |
void |
setLoggerRef(java.lang.String ref)
Mutator method. |
Methods inherited from class adriani.jws.template.util.GeneralThread |
---|
delay, isActive, isRunning, setActive, stopCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long sleepTime
protected LoggerManager manager
LoggerManager
needing rotation.
protected java.lang.String loggerRef
protected java.lang.String leadingName
Constructor Detail |
---|
public RotateThread(LoggerManager manager, int time)
manager
- the LoggerManager
class creating and starting this threadtime
- the sleeping time (in minutes) this thread must sleep before performing log rotationMethod Detail |
---|
public void run()
running
is set to true
.SystemLogger
class.
run
in interface java.lang.Runnable
GeneralThread.stopCycle()
,
GeneralThread.isRunning()
public void setLoggerRef(java.lang.String ref)
public long getSleepTime()
|
Build 18/09/2012 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |