oogp2p.pastry.file
Class PastryFileNode
java.lang.Object
oogp2p.pastry.file.PastryFileNode
- public class PastryFileNode
- extends java.lang.Object
- Author:
- sjg
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myLocation
private PastryLocation myLocation
myNode
private PastryNode myNode
myLocalFiles
private java.io.File myLocalFiles
myFileLocations
private java.util.AbstractMap myFileLocations
PastryFileNode
public PastryFileNode(PastryNode node)
addFilesToNetwork
public void addFilesToNetwork()
insertFile
public void insertFile(PastryFileLocation fLoc)
fixFiles
public void fixFiles()
findFile
public void findFile(java.net.InetAddress originator,
java.lang.String filename,
int[] hash)
- Parameters:
hash - -- the hash of the file name
getMapping
public java.util.Iterator getMapping(int[] id)
- Parameters:
id - -- the key for getting the mappings
- Returns:
- -- vector conatining all the PastryFileLocations for the given id