oogp2p.pastry.file
Class PastryFileNode

java.lang.Object
  extended byoogp2p.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

Field Summary
private  java.util.AbstractMap myFileLocations
           
private  java.io.File myLocalFiles
           
private  PastryLocation myLocation
           
private  PastryNode myNode
           
 
Constructor Summary
PastryFileNode(PastryNode node)
           
 
Method Summary
 void addFilesToNetwork()
           
 void findFile(java.net.InetAddress originator, java.lang.String filename, int[] hash)
           
 void fixFiles()
           
 java.util.Iterator getMapping(int[] id)
           
 void insertFile(PastryFileLocation fLoc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myLocation

private PastryLocation myLocation

myNode

private PastryNode myNode

myLocalFiles

private java.io.File myLocalFiles

myFileLocations

private java.util.AbstractMap myFileLocations
Constructor Detail

PastryFileNode

public PastryFileNode(PastryNode node)
Method Detail

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