All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.download.ClientRequest

java.lang.Object
   |
   +----semper.download.ClientRequest

public class ClientRequest
extends Object
implements Runnable, Administrative
This module launch a DcfClientProtocol thread and serves the request made by the launched thread.

Version:
$Revision: 1.3 $ $Date: 1998/05/28 15:09:44 $
Author:
Petros Pantis, Kostas Tzelepis

Constructor Index

 o ClientRequest(Object, String, Long, NewsClientClass, Download)
Constructor for the ClientRequest object

Method Index

 o getAddresses()
Retrives the remote host address
 o getState()
Retieves the execution state of the current ClientRequest thread
 o Interrupt(Object)
Cause the ClientRequest thread to stop
 o Notify()
Used to wake up the suspeded thread object(not used anymore)
 o run()
Retieves the state of the launched DcfClientRequest thread and serves the requests made by this thread object

Constructors

 o ClientRequest
 public ClientRequest(Object host,
                      String id,
                      Long timeObj,
                      NewsClientClass ncc,
                      Download dm)
Constructor for the ClientRequest object

Parameters:
host - the remote host address (could be a String object or a Vector of InetAddress objects)
id - the client identifier
timeObj - used by a client in order to remove news from the News Database
ncc - a handler to the News Database
dm - a reference to the Download Manager

Methods

 o Interrupt
 public void Interrupt(Object o)
Cause the ClientRequest thread to stop

Parameters:
o - the originator of the callee
 o getAddresses
 public Object getAddresses()
Retrives the remote host address

Returns:
value the remote host address
 o Notify
 public void Notify()
Used to wake up the suspeded thread object(not used anymore)

 o getState
 public int getState()
Retieves the execution state of the current ClientRequest thread

Returns:
value the state identifier
 o run
 public void run()
Retieves the state of the launched DcfClientRequest thread and serves the requests made by this thread object


All Packages  Class Hierarchy  This Package  Previous  Next  Index