All Packages Class Hierarchy This Package Previous Next Index
Class semper.download.DownloadServer
java.lang.Object
|
+----semper.download.DownloadServer
- public class DownloadServer
- extends Object
- implements Runnable, Administrative
The DownloadServer acts as a server for the DcfServerProtocol requests
- Version:
- $Revision: 1.3 $ $Date: 1998/05/28 15:09:50 $
- Author:
- Petros Pantis, Kostas Tzelepis
-
DownloadServer(Download)
- DownloadServer object constructor
-
getAddresses()
- Retieves the next socket addresses of all the running client connections
-
getState()
- Retieve the execution status of the thread
-
Interrupt(Object)
- Cause the associated thread to die
-
Notify()
- Resume the execution of the current module
-
registerReq(Object, Object)
- Registers a new connection
-
run()
- Main methods that serves all the request made by the DcfServerProtocol objects
-
start()
- Starts the associated DownloadServer thread object
-
Wait()
- Suspends the execution of the current module
DownloadServer
public DownloadServer(Download dmodule) throws Exception
- DownloadServer object constructor
- Parameters:
- dmodule - a object reference pointing the download module
- Throws: Exception
- unable to launch the
DownloadListener
thread
start
public void start()
- Starts the associated DownloadServer thread object
Interrupt
public void Interrupt(Object o)
- Cause the associated thread to die
- Parameters:
- o - allways the download module object reference
getState
public int getState()
- Retieve the execution status of the thread
- Returns:
- value the execution status
getAddresses
public Object getAddresses()
- Retieves the next socket addresses of all the running client connections
- Returns:
- value the list of all the running client connection addresses
registerReq
public boolean registerReq(Object o,
Object target)
- Registers a new connection
- Parameters:
- o - the call originator (always a DownloadListener object)
- target - the new connection object
- Returns:
- value true, on success
Wait
public synchronized void Wait()
- Suspends the execution of the current module
Notify
public synchronized void Notify()
- Resume the execution of the current module
run
public void run()
- Main methods that serves all the request made by the DcfServerProtocol objects
All Packages Class Hierarchy This Package Previous Next Index