fabric.worker
Class DirectFetchManager

java.lang.Object
  extended by fabric.worker.DirectFetchManager
All Implemented Interfaces:
FetchManager

public class DirectFetchManager
extends java.lang.Object
implements FetchManager

This simple FetchManger always goes directly to the store.


Constructor Summary
DirectFetchManager(Worker worker, java.util.Properties dissemConfig)
           
 
Method Summary
 void destroy()
          Called to destroy and clean up the fetch manager.
 ObjectGroup fetch(RemoteStore store, long onum)
          Fetches the glob identified by the given onum, located at the given store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectFetchManager

public DirectFetchManager(Worker worker,
                          java.util.Properties dissemConfig)
Method Detail

fetch

public ObjectGroup fetch(RemoteStore store,
                         long onum)
                  throws FetchException
Description copied from interface: FetchManager
Fetches the glob identified by the given onum, located at the given store.

Specified by:
fetch in interface FetchManager
Parameters:
store - the store.
onum - the object identifier.
Returns:
the requested glob if fetch was successful.
Throws:
FetchException

destroy

public void destroy()
Description copied from interface: FetchManager
Called to destroy and clean up the fetch manager.

Specified by:
destroy in interface FetchManager