B C D E F G H I L M N O P R S U W

B

buf - Variable in class netapp.Client
 
BUFFER_SIZE - Static variable in class datasource.DataSource
Size of dataBuffer;
bufferSemaphore - Variable in class datasource.DataSource
A semaphore to coordinate access to the dataBuffer.
BUFSIZE - Static variable in class netapp.Client
 
bytesLeftToSend - Variable in class datasource.NullSource
bytesLeftToSend is how many bytes remain to be sent this use of this Null source.
bytesSent - Variable in class netapp.Client
Used to compute timing statistics only.

C

capacity - Variable in class datarecord.DataRecord
The size of the byte[] called data.
Client - Class in netapp
A Client is what we'd think of as the typical program.
Client() - Constructor for class netapp.Client
Constructor: creates long-lived instance variables.
clientSocket - Variable in class datasource.NetSource
 
close() - Method in class datasource.FileSource
Private function to close the file source.
close() - Method in class datasource.NetSource
Closes the socket, and updates the port number to prepare for being reInit()'ed
close() - Method in class util.Logger
 
CLOSED - Static variable in class datasource.DataSource
 
CONNECTED - Static variable in class datasource.DataSource
 

D

data - Variable in class datarecord.DataRecord
The data
dataBuffer - Variable in class datasource.DataSource
The data buffer between the local, reader thread and the client thread.
datarecord - package datarecord
 
DataRecord - Class in datarecord
For simplicity, all DataSource and DataSink classes use a single representation for data records in their buffers.
DataRecord(int) - Constructor for class datarecord.DataRecord
Create the record and initialize to empty.
DataRecordManager - Class in datarecord
Objects of this class allocate DataRecords.
DataRecordManager() - Constructor for class datarecord.DataRecordManager
 
datasource - package datasource
 
DataSource - Class in datasource
DataSource: abstract base class for components that provide data through read() calls by their client.
DataSource() - Constructor for class datasource.DataSource
Creates a new DataSource.
DataSource.ReceiveHelper - Class in datasource
Helper class to implement reading thread.
DataSource.ReceiveHelper() - Constructor for class datasource.DataSource.ReceiveHelper
 

E

elapsedTime - Variable in class netapp.Client
Used to compute timing statistics only.
elapsedTime() - Method in class util.StopWatch
Returns time since last mark() call (or since construction if no mark() calls have been made), in nanoseconds.

F

file - Variable in class datasource.FileSource
The file object to read from.
file - Variable in class util.Logger
 
filename - Variable in class datasource.FileSource
The name of the file to read.
FileSource - Class in datasource
A FileSource is a source that reads a file (sequentially);
FileSource(String) - Constructor for class datasource.FileSource
Open file for reading.
freeMap - Variable in class datarecord.DataRecordManager
To try to minimize Java effects, we cache DataRecords (to avoid creating a lot, which might require garbage collecting a lot).
freeRecord(DataRecord) - Method in class datarecord.DataRecordManager
Called when done using a DataRecord.

G

getNewRecord(int) - Method in class datarecord.DataRecordManager
Class factory -- returns a DataRecord.
go(DataSource, DataSink) - Method in class netapp.Client
Run the Client.

H

haveConnection - Variable in class datasource.NetSource
 

I

inStream - Variable in class datasource.NetSource
 

L

length - Variable in class datarecord.DataRecord
The number of unconsumed bytes of user data remaining in the buffer.
log(String) - Method in class util.Logger
 
Logger - Class in util
Utility class to write a log file.
Logger(String) - Constructor for class util.Logger
 

M

main(String[]) - Static method in class netapp.Client
main() handles the command line arguments, meaning it sets up the src and sink for the Client object.
mapKey - Variable in class datarecord.DataRecord
An instance variable of what would normally be a local variable.
mark() - Method in class util.StopWatch
Set the reference time to now.
mySize - Variable in class datasource.NullSource
mySize is how many bytes this Null source should send in total.

N

netapp - package netapp
 
NetSource - Class in datasource
A NetSource is a source that reads a file (sequentially).
NetSource(int) - Constructor for class datasource.NetSource
 
NullSource - Class in datasource
A NullSource is a source that returns zeroes, as fast as it can.
NullSource(int) - Constructor for class datasource.NullSource
 

O

offset - Variable in class datarecord.DataRecord
An offset into the record.

P

port - Variable in class datasource.NetSource
 
portIncrement - Variable in class datasource.NetSource
 
printStats(int, long, long, long) - Static method in class netapp.Client
Helper function to print some statistics.

R

read(byte[], int) - Method in class datasource.DataSource
Reads up to maxLength bytes and returns them via argument buf, starting at position 0.
reader - Variable in class datasource.DataSource
The reader thread (fetches data from this object's source and puts it in dataBuffer).
readFromSrc(byte[], int) - Method in class datasource.DataSource
The ReceiveHelper implemented here depends on this abstract method being implemented by the instantiated class.
readFromSrc(byte[], int) - Method in class datasource.FileSource
Perform actual read from file.
readFromSrc(byte[], int) - Method in class datasource.NetSource
Called by reader thread in DataSource object.
readFromSrc(byte[], int) - Method in class datasource.NullSource
We're a null source, so we don't actually read anything.
readyToRead() - Method in class datasource.DataSource
Function to initialize (called by derived class constructor).
RECORD_SIZE - Static variable in class datasource.DataSource
Size of each DataRecord in the buffer.
recordManager - Variable in class datasource.DataSource
Object that knows how to create/cache DataRecords.
referenceTime - Variable in class util.StopWatch
 
reInit() - Method in class datarecord.DataRecord
A method to initialize the portions of the DataRecord that may have changed if it has previously been used.
reInit() - Method in class datasource.DataSource
All derived classes must be capable of reinitializing themselves.
reInit() - Method in class datasource.FileSource
(Re)Initialize this object.
reInit() - Method in class datasource.NetSource
(Re)Initialize this object
reInit() - Method in class datasource.NullSource
 
run() - Method in class datasource.DataSource.ReceiveHelper
 

S

serverSocket - Variable in class datasource.NetSource
 
STARTING - Static variable in class datasource.DataSource
We need to keep track of what state the input source is in.
state - Variable in class datasource.DataSource
 
StopWatch - Class in util
Utility class to measure elapsed time.
StopWatch() - Constructor for class util.StopWatch
Constructor

U

util - package util
 

W

watch - Variable in class netapp.Client
Used for statistics keeping.

B C D E F G H I L M N O P R S U W