All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface edu.cmu.paid.network.IClient

public interface IClient
Interface to CClient object.

Author:
Will Ross

Method Index

 o endXmit()
Transmission complete.
 o getName()
Returns the name of the object.
 o getNumObjects()
Returns total number of objects being sent.
 o getPercent()
Returns percentage of objects received.
 o killDownload()
Tell our Session to stop sending and die.
 o receiveObject(DataObject)
Receive a single object.
 o request(DataObject)
Make a request to the Server.
 o startXmit(int)
Start receiving objects.
 o waitForDone()
Waits until all packets have been received.
 o waitForNum(int)
Waits until a specified number of objects have been transmitted.
 o waitForPct(int)
Waits until a specified percent of the objects have been transmitted.

Methods

 o request
 public abstract Vector request(DataObject req)
Make a request to the Server.

Parameters:
req - DataObject containing request.
Returns:
A Vector that will contain returned DataObjects.
 o startXmit
 public abstract void startXmit(int len)
Start receiving objects.

Parameters:
len - Number of objects to receive.
 o getNumObjects
 public abstract int getNumObjects()
Returns total number of objects being sent.

Returns:
number of objects being sent.
 o getPercent
 public abstract int getPercent()
Returns percentage of objects received.

Returns:
Percent of objects received.
 o killDownload
 public abstract void killDownload()
Tell our Session to stop sending and die.

 o receiveObject
 public abstract void receiveObject(DataObject object)
Receive a single object.

Parameters:
object - The object to receive.
 o endXmit
 public abstract void endXmit()
Transmission complete.

 o waitForPct
 public abstract void waitForPct(int pct)
Waits until a specified percent of the objects have been transmitted.

 o waitForNum
 public abstract void waitForNum(int num)
Waits until a specified number of objects have been transmitted.

 o waitForDone
 public abstract void waitForDone()
Waits until all packets have been received. Wakes up when notify() is called from endXmit.

 o getName
 public abstract String getName()
Returns the name of the object. Used in unbinding.

Returns:
Name this object is (should be) bound to.

All Packages  Class Hierarchy  This Package  Previous  Next  Index

This page is hosted by the Chair for Applied Software Engineering of the Technische Universität München.
Imprint (Impressum)