|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.service.jini.master.AbstractResourceScanner<V>
public abstract class AbstractResourceScanner<V>
Abstract base class for the scanner for a mapped master job. The
Callable should return the #of resources which were accepted for
processing.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
protected |
AbstractResourceScanner(BlockingBuffer<V[]> buffer)
|
| Method Summary | |
|---|---|
void |
accept(V resource)
Accept a resource for processing. |
Long |
call()
Invokes runScanner(), queuing and transferring chunks of
resources to the BlockingBuffer specified to the ctor. |
long |
getAcceptCount()
Return the #of accepted resources. |
protected abstract void |
runScanner()
Run the scanner. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
protected AbstractResourceScanner(BlockingBuffer<V[]> buffer)
buffer - The buffer to which the resources should be added.| Method Detail |
|---|
public final long getAcceptCount()
public final Long call()
throws Exception
runScanner(), queuing and transferring chunks of
resources to the BlockingBuffer specified to the ctor. When
runScanner() completes normally, the remaining resources
are transferred from the internal queue to the BlockingBuffer.
call in interface Callable<Long>Exception
protected abstract void runScanner()
throws Exception
Exception
public void accept(V resource)
throws InterruptedException
resource - The resource.
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||