edu.nyu.cs.pdsg.util
Class Reservoir.ReservoirKeyFactory

java.lang.Object
  extended byjava.lang.Thread
      extended byedu.nyu.cs.pdsg.util.Reservoir.ReservoirKeyFactory
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Reservoir

private class Reservoir.ReservoirKeyFactory
extends java.lang.Thread

The Key Generation Factory


Field Summary
(package private)  boolean active
           
(package private)  int counter
           
(package private)  Reservoir owner
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected Reservoir.ReservoirKeyFactory(Reservoir owner)
          Standard Initializer
 
Method Summary
 void run()
          Generate Keys
protected  void startGenarating()
          Start generating keye
protected  void stopGenerating()
          Stop generating keys
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

active

boolean active

owner

Reservoir owner

counter

int counter
Constructor Detail

Reservoir.ReservoirKeyFactory

protected Reservoir.ReservoirKeyFactory(Reservoir owner)
Standard Initializer

Parameters:
owner - the reservior to pump keys into
Method Detail

startGenarating

protected void startGenarating()
Start generating keye


stopGenerating

protected void stopGenerating()
Stop generating keys


run

public void run()
Generate Keys



Copyright (c) 2002-2003 New York University RLAB