fabric.dissemination.pastry
Class PastryFetchManager
java.lang.Object
fabric.dissemination.pastry.PastryFetchManager
- All Implemented Interfaces:
- FetchManager
public class PastryFetchManager
- extends java.lang.Object
- implements FetchManager
A PastryFetchManager performs object fetching by consulting a pastry
dissemination network to see if the object is available there. When an
instance of PastryFetchManager is created, it starts a pastry node. That
node will attempt to join a pastry network by contacting a bootstrap node.
This is set in the pastry configuration file (by default etc/pastry.params).
Method Summary |
void |
destroy()
Called to destroy and clean up the fetch manager. |
ObjectGroup |
fetch(RemoteStore c,
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 |
PastryFetchManager
public PastryFetchManager(Worker worker,
java.util.Properties dissemConfig)
fetch
public ObjectGroup fetch(RemoteStore c,
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:
c
- 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