|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectncsa.tools.trebuchet.core.monitors.BlockingMonitor
Serves as the interface between cache reading and submission agents.
Responsible for providing entries to submission agents and for
updating entries when state is called back from the submission agent.
Provides the standard blocking pull implementation of IOperationMonitor
used in Operations.
| Constructor Summary | |
BlockingMonitor()
|
|
BlockingMonitor(java.util.List queue)
|
|
| Method Summary | |
void |
cacheUpdated(java.lang.String operationId,
long lastEntryId)
|
void |
done(long id)
|
void |
halt()
User-defined method for allowing the run() method (or some other continuous looping process) to exit peacefully. |
ReverseLookupEntry |
next()
Blocks unless all these conditions are met: 1. |
void |
operationFinished(java.lang.String operationId)
|
void |
operationStarted(java.lang.String operationId)
|
void |
requeue(long id)
|
void |
scanningDirectory(java.lang.String operationId,
long id)
|
void |
setAgent(ICacheAgent agent)
|
void |
update(ReverseLookupEntry entry)
Pass-through to the cache agent. |
void |
waitUntilNoMoreActive()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BlockingMonitor()
public BlockingMonitor(java.util.List queue)
| Method Detail |
public void setAgent(ICacheAgent agent)
public ReverseLookupEntry next()
throws FatalErrorDuringOperationException
null when operation has exhausted
all entries.
FatalErrorDuringOperationExceptionpublic void requeue(long id)
requeue in interface IOperationMonitorpublic void done(long id)
done in interface IOperationMonitorpublic void halt()
Stoppable
halt in interface Stoppable
public void update(ReverseLookupEntry entry)
throws FatalErrorDuringOperationException
update in interface IOperationMonitorFatalErrorDuringOperationExceptionpublic void waitUntilNoMoreActive()
public void cacheUpdated(java.lang.String operationId,
long lastEntryId)
cacheUpdated in interface IOperationListenerpublic void operationFinished(java.lang.String operationId)
operationFinished in interface IOperationListenerpublic void operationStarted(java.lang.String operationId)
operationStarted in interface IOperationListener
public void scanningDirectory(java.lang.String operationId,
long id)
scanningDirectory in interface IOperationListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||