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

B

Bottleneck - class com.dallaway.sloppy.Bottleneck.
Mechanism to work out a delay before sending data between client and server.
Bottleneck(String, double) - Constructor for class com.dallaway.sloppy.Bottleneck
Construct a new bottleneck for a give client
bps - Variable in class com.dallaway.sloppy.SlowProxyThread
 
bps - Variable in class com.dallaway.sloppy.SloppyServer
Bytes per second

C

com.dallaway.sloppy - package com.dallaway.sloppy
 

D

DEBUG - Variable in class com.dallaway.sloppy.Log
 
debug(String) - Method in class com.dallaway.sloppy.Log
Write a debugging message
DEFAULT_LISTEN_PORT - Static variable in class com.dallaway.sloppy.SloppyServer
The port we listen on by default
DEFAULT_SEND_HOST - Static variable in class com.dallaway.sloppy.SloppyServer
The IP address we proxy to by default
DEFAULT_SEND_PORT - Static variable in class com.dallaway.sloppy.SloppyServer
The port we proxy to by default

E

error(Exception) - Method in class com.dallaway.sloppy.Log
Record an error event
error(String) - Method in class com.dallaway.sloppy.Log
Record an error
error(String, Exception) - Method in class com.dallaway.sloppy.Log
Record an error
event(String, String) - Method in class com.dallaway.sloppy.Log
Record an event, such as a client request, which should be logged for the end user

G

getStartTime() - Method in class com.dallaway.sloppy.Usage
 
getTotalBytes() - Method in class com.dallaway.sloppy.Usage
 
go() - Method in class com.dallaway.sloppy.SloppyServer
Start the proxy service

H

host - Variable in class com.dallaway.sloppy.SlowProxyThread
 

I

increment(int) - Method in class com.dallaway.sloppy.Usage
Note that the client has exchanged some data

L

listen_port - Variable in class com.dallaway.sloppy.SloppyServer
 
log - Variable in class com.dallaway.sloppy.SlowProxyThread
 
log - Variable in class com.dallaway.sloppy.SloppyServer
For logging events, errors and so on
Log - class com.dallaway.sloppy.Log.
Utility for logging events, errors and debugging information.
Log() - Constructor for class com.dallaway.sloppy.Log
Construct a new default log

M

main(String[]) - Static method in class com.dallaway.sloppy.SloppyServer
Start a proxy server Usage: Sloppy [+|-gui] [configuration.properties] +gui means start with a graphical user interface (not yet implemented; will be default) -gui means do not start a GUI To override the default settings supply a configuration file.
mark() - Method in class com.dallaway.sloppy.Bottleneck
Mark a data event.
mark() - Method in class com.dallaway.sloppy.Usage
Note that a data exchange event has occured

N

notice(String) - Method in class com.dallaway.sloppy.Log
Record a notice event, such as service startup

P

PassThruThread - class com.dallaway.sloppy.PassThruThread.
A pipe for punting data from a sender to a receiver.
PassThruThread(InputStream, OutputStream, Log, int, int, String) - Constructor for class com.dallaway.sloppy.PassThruThread
Construct a new pipe.
port - Variable in class com.dallaway.sloppy.SlowProxyThread
 

R

RELEASE - Static variable in class com.dallaway.sloppy.SloppyServer
Version of this proxy
request - Variable in class com.dallaway.sloppy.SlowProxyThread
 
REQUEST_BUFFER_SIZE - Static variable in class com.dallaway.sloppy.SlowProxyThread
Size of the buffer used for handling client requests
RESPONSE_BUFFER_SIZE - Static variable in class com.dallaway.sloppy.SlowProxyThread
 
restrict(int) - Method in class com.dallaway.sloppy.Bottleneck
Compute the amount of time to sleep for to keep the client's bandwidth usage inside the BPM measure
run() - Method in class com.dallaway.sloppy.SlowProxyThread
Implement a proxy by starting a request forwarding thread and a server relaying thread.
run() - Method in class com.dallaway.sloppy.PassThruThread
Start passing data from sender to receiver
running - Variable in class com.dallaway.sloppy.SloppyServer
Is this proxy running?

S

send_host - Variable in class com.dallaway.sloppy.SloppyServer
 
send_port - Variable in class com.dallaway.sloppy.SloppyServer
 
setBPS(int) - Method in class com.dallaway.sloppy.SloppyServer
Set the bytes per second to simulate.
setLog(Log) - Method in class com.dallaway.sloppy.SloppyServer
Set the log instance to use for all events and errors
setPort(int) - Method in class com.dallaway.sloppy.SloppyServer
Set the port for listening on
setServerHost(String) - Method in class com.dallaway.sloppy.SloppyServer
Set the host/ip where the real server runs
setServerPort(int) - Method in class com.dallaway.sloppy.SloppyServer
Set the port where the real server runs
SloppyServer - class com.dallaway.sloppy.SloppyServer.
Main wrapper class for starting the proxy.
SloppyServer() - Constructor for class com.dallaway.sloppy.SloppyServer
Create a new proxy server with default settings
SlowProxyThread - class com.dallaway.sloppy.SlowProxyThread.
All requests are handed off to an instance of this class for co-ordinating sender/receiver communication.
SlowProxyThread(Log, int, InetAddress, Socket, int) - Constructor for class com.dallaway.sloppy.SlowProxyThread
Construct a new thread to handle a client request
start_gui - Variable in class com.dallaway.sloppy.SloppyServer
 
startGUI(boolean) - Method in class com.dallaway.sloppy.SloppyServer
Decide if we do or do not start the GUI from main()

U

Usage - class com.dallaway.sloppy.Usage.
Records the bandwidth usage for a given client.
Usage() - Constructor for class com.dallaway.sloppy.Usage
 

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