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
-
ClientRequest(Object, String, Long, NewsClientClass, Download)
- Constructor for the ClientRequest object
-
getAddresses()
- Retrives the remote host address
-
getState()
- Retieves the execution state of the current ClientRequest thread
-
Interrupt(Object)
- Cause the ClientRequest thread to stop
-
Notify()
- Used to wake up the suspeded thread object(not used anymore)
-
run()
- Retieves the state of the launched DcfClientRequest thread and serves the
requests made by this thread object
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
Interrupt
public void Interrupt(Object o)
- Cause the ClientRequest thread to stop
- Parameters:
- o - the originator of the callee
getAddresses
public Object getAddresses()
- Retrives the remote host address
- Returns:
- value the remote host address
Notify
public void Notify()
- Used to wake up the suspeded thread object(not used anymore)
getState
public int getState()
- Retieves the execution state of the current ClientRequest thread
- Returns:
- value the state identifier
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