All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class Pasiphae.Master

java.lang.Object
    |
    +----java.lang.Thread
            |
            +----Pasiphae.Master

public final class Master
extends Thread

Variable Index

 o depth
 o globalHashtable
 o slave
 o slaveMaxNb
 o tree
 o url

Constructor Index

 o Master(String, int, int, boolean)

Method Index

 o cout(String)
 o getHashtable()
 o getTree()
 o main(String[])
 o run()
Lance le maitre et les esclaves
 o setSeedURL()
Insere la 1e url dans la liste des url a recuperer
 o spawnSlaves()
Lance les esclaves
 o swapURLs()
Remplace la liste des URL a recolter par la liste des liens recuperes dans les pages parcourues
 o waitForSlaves()
Attend la mort des esclaves

Variables

 o depth
protected int depth
 o slaveMaxNb
protected int slaveMaxNb
 o slave
protected Slave[] slave
 o url
protected URL url
 o tree
protected static MyMutableTreeNode tree
 o globalHashtable
protected static Hashtable globalHashtable

Constructors

 o Master
public Master(String url,
              int slaveMaxNb,
              int depth,
              boolean restrictToDomain) throws MalformedURLException

Methods

 o getTree
public static MyMutableTreeNode getTree()
 o getHashtable
public static Hashtable getHashtable()
 o setSeedURL
protected void setSeedURL()
Insere la 1e url dans la liste des url a recuperer

 o spawnSlaves
protected void spawnSlaves()
Lance les esclaves

 o waitForSlaves
protected void waitForSlaves()
Attend la mort des esclaves

 o swapURLs
protected void swapURLs()
Remplace la liste des URL a recolter par la liste des liens recuperes dans les pages parcourues

 o run
public void run()
Lance le maitre et les esclaves

Overrides:
run in class Thread
 o cout
public static void cout(String s)
 o main
public static void main(String[] argv) throws InterruptedException, MalformedURLException

All Packages  Class Hierarchy  This Package  Previous  Next  Index