|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.Daemon
com.tangosol.io.journal.AbstractJournalRM.CollectorDaemon
protected class AbstractJournalRM.CollectorDaemon
The CollectorDaemon evaluates the JournalFile objects to see which ones should be evacuated, it evacuates those that should be, and it deletes those that have been successfully evacuated.
This daemon is not intended to be guarded.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tangosol.util.Daemon |
---|
Daemon.DaemonWorker |
Constructor Summary | |
---|---|
AbstractJournalRM.CollectorDaemon() Construct a CollectorDaemon. |
Method Summary | |
---|---|
protected void |
dedupe() Give the in-memory radix key stores a chance to de-dupe their byte[] values, similar to the concept behind String's intern() method. |
protected void |
evacuate(AbstractJournalRM.JournalFile jrnlfile) Evacuate all the remaining valid data from the specified JournalFile. |
int |
getAvgEvacuationMillis() Determine the average number of milliseconds to evacuate a file. |
protected java.lang.String |
getDescription() Format the Daemon attributes into a String for inclusion in the String returned from the Daemon.toString() method. |
int |
getMaxEvacuationMillis() Determine the maximum number of milliseconds to evacuate a file. |
protected Daemon.DaemonWorker |
instantiateWorker() Instantiate a DaemonWorker that will be used as a daemon. |
void |
run() The daemon's implementation method. |
void |
stop() Request the daemon to stop. |
Methods inherited from class com.tangosol.util.Daemon |
---|
changeState, configureWorker, finishStarting, finishStopping, getConfiguredName, getConfiguredPriority, getContext, getGuardRegisterAction, getMaxWaitMillis, getState, getThread, getThreadContextClassLoader, getWorker, guardIfNeeded, heartbeat, heartbeat, isGuarded, isOnWorkerThread, isRunning, isStopping, recover, setConfiguredName, setConfiguredPriority, setContext, setGuardPolicy, setGuardRegisterAction, setThreadContextClassLoader, shutdown, start, terminate, toStateString, toString |
Constructor Detail |
---|
public AbstractJournalRM.CollectorDaemon()
Method Detail |
---|
protected Daemon.DaemonWorker instantiateWorker()
instantiateWorker
in class Daemon
public void stop()
Daemon.isStopping()
.stop
in class Daemon
public void run()
An example implementation is:
while (!isStopping())
{
// do some processing
// ...
synchronized (this)
{
// wait for notification of more work
wait();
}
}
run
in interface java.lang.Runnable
run
in class Daemon
Thread.run()
protected java.lang.String getDescription()
Daemon.toString()
method.getDescription
in class Daemon
protected void dedupe()
protected void evacuate(AbstractJournalRM.JournalFile jrnlfile)
jrnlfile
- the file to evacuatepublic int getAvgEvacuationMillis()
public int getMaxEvacuationMillis()
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |