netcom.mds
Class HandleBloomUpdates

java.lang.Object
  extended byjava.lang.Thread
      extended bynetcom.mds.HandleBloomUpdates
All Implemented Interfaces:
java.lang.Runnable

public class HandleBloomUpdates
extends java.lang.Thread

Title: Handle Bloom Updates

Description: This class creates a datagram server socket which waits for BloomUpdate packets and then updates the local image of all other MDS nodes' bloom filter.

Copyright: Copyright (c) 2002

Company: NETCOM


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
HandleBloomUpdates(int server_port, java.util.Map bloom_filters)
          Constructor, This takes a server port, and a Collection which holds the bloomFilters which need to be modified.
 
Method Summary
 void run()
          This overrides run() in Thread.
 
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
 

Constructor Detail

HandleBloomUpdates

public HandleBloomUpdates(int server_port,
                          java.util.Map bloom_filters)
Constructor, This takes a server port, and a Collection which holds the bloomFilters which need to be modified. Assumes the Collection synchronized and needs to be thread-safe

Parameters:
server_port - the port to bind server to
bloom_filters - the Map with the bloom_filters needed to be modified
Method Detail

run

public void run()
This overrides run() in Thread. Method where this thread begins execution, this will loop, waiting for incoming UDP packets. When they are recieved it will modify the appropriate bloom filter in the collection of bloom filters give upon instantiation