tapestry.repairmonitor
Class GnutellaOrder

java.lang.Object
  |
  +--tapestry.repairmonitor.GnutellaOrder

public class GnutellaOrder
extends Object

This class reads in a gnutella trace, and generates a priority queue of events, denoting when nodes enter and leave the trace.


Nested Class Summary
 class GnutellaOrder.GnutellaNode
          An inner class representing some event (start or end) in a Gnutella trace.
 
Constructor Summary
GnutellaOrder(String traceFilename)
           
GnutellaOrder(String traceFilename, long startTime)
           
GnutellaOrder(String traceFilename, long startTime, int numNodes)
           
 
Method Summary
 long atLeastAliveTime()
          First time when at least the desired number of nodes are alive.
 long exactAliveTime()
          First time when exactly the desired number of nodes are alive.
 PriorityQueue getQueue()
          Return the queue of ordered events
static void main(String[] args)
           
 int maxAlive()
          Maximum number of nodes alive at any one time in the trace
 long maxAliveStart()
          First time when maximum number of nodes alive at any one time in the trace
 int minAlive()
          Minimum number of nodes alive at any one time in the trace
 long minAliveStart()
          First time when minimum number of nodes alive at any one time in the trace
 void printPDFHelper(Vector times)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GnutellaOrder

public GnutellaOrder(String traceFilename,
                     long startTime,
                     int numNodes)

GnutellaOrder

public GnutellaOrder(String traceFilename,
                     long startTime)

GnutellaOrder

public GnutellaOrder(String traceFilename)
Method Detail

maxAlive

public int maxAlive()
Maximum number of nodes alive at any one time in the trace


minAlive

public int minAlive()
Minimum number of nodes alive at any one time in the trace


maxAliveStart

public long maxAliveStart()
First time when maximum number of nodes alive at any one time in the trace


minAliveStart

public long minAliveStart()
First time when minimum number of nodes alive at any one time in the trace


atLeastAliveTime

public long atLeastAliveTime()
First time when at least the desired number of nodes are alive.


exactAliveTime

public long exactAliveTime()
First time when exactly the desired number of nodes are alive.


getQueue

public PriorityQueue getQueue()
Return the queue of ordered events


printPDFHelper

public void printPDFHelper(Vector times)

main

public static void main(String[] args)