Class FishClientQueryHandler

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--FishClientQueryHandler
All Implemented Interfaces:
java.lang.Runnable

public class FishClientQueryHandler
extends java.lang.Thread

Handler for the queries recived on the specified multicast address. If the search is from localhost, the search is aborted. If the request is valid the local share will be searched and if there are any matching results, they will be returned after a random delay between 0 and 8 seconds to prevent that the network will be flooded.

Version:
1.0
Author:
Björn Bertilsson

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FishClientQueryHandler(byte[] buf)
          Stores the request in a string for handling
 
Method Summary
 void run()
          Starts the search for files and returns them .
 
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

FishClientQueryHandler

public FishClientQueryHandler(byte[] buf)
Stores the request in a string for handling

Method Detail

run

public void run()
Starts the search for files and returns them .

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread