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

Constructor Index

 o DownloadServer(Download)
DownloadServer object constructor

Method Index

 o getAddresses()
Retieves the next socket addresses of all the running client connections
 o getState()
Retieve the execution status of the thread
 o Interrupt(Object)
Cause the associated thread to die
 o Notify()
Resume the execution of the current module
 o registerReq(Object, Object)
Registers a new connection
 o run()
Main methods that serves all the request made by the DcfServerProtocol objects
 o start()
Starts the associated DownloadServer thread object
 o Wait()
Suspends the execution of the current module

Constructors

 o 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

Methods

 o start
 public void start()
Starts the associated DownloadServer thread object

 o Interrupt
 public void Interrupt(Object o)
Cause the associated thread to die

Parameters:
o - allways the download module object reference
 o getState
 public int getState()
Retieve the execution status of the thread

Returns:
value the execution status
 o 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
 o 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
 o Wait
 public synchronized void Wait()
Suspends the execution of the current module

 o Notify
 public synchronized void Notify()
Resume the execution of the current module

 o 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