A C D E G H I K L M N R S T W

A

addWorker(Worker) - Method in class com.debianmirror.server.WorkerCache
Inserts the given Worker (back) into this WorkerCache.

C

com.debianmirror.http - package com.debianmirror.http
 
com.debianmirror.mirror.control - package com.debianmirror.mirror.control
 
com.debianmirror.mirror.data - package com.debianmirror.mirror.data
 
com.debianmirror.mirror.module - package com.debianmirror.mirror.module
 
com.debianmirror.server - package com.debianmirror.server
 
createMirrorFile(String) - Method in class com.debianmirror.mirror.data.MirrorFile
Translates the given fileName into a local store path
If the file is not found there, it creates the remote request URL and requests the file from the RemoteDebianServer
createWorkerImpl() - Method in interface com.debianmirror.server.WorkerImplFactory
Returns a new instance of WorkerImpl.
createWorkerImpl() - Method in class com.debianmirror.server.MirrorHttpWorkerImplFactory
 

D

die() - Method in class com.debianmirror.server.Worker
Kills the Worker gracefully.
die() - Method in class com.debianmirror.server.Listener
Changes the keepRunning variable and notifys the Listener of the change.

E

equals(Object) - Method in class com.debianmirror.mirror.data.MirrorFile
Does override the equals methode of the Object-class.

G

getFileName() - Method in class com.debianmirror.http.HttpRequestHeader
Returns the name of the requested file
getHttpVersion() - Method in class com.debianmirror.http.HttpRequestHeader
Returns the HTTP-version number of the request (as a double)
getInputStream() - Method in class com.debianmirror.mirror.data.MirrorFile
Returns the InputStream of this File
getInstance() - Static method in class com.debianmirror.mirror.control.MirrorControlSingleton
Returns always the same instance of this class.
getListeningPort() - Method in class com.debianmirror.server.ServerConfig
Returns the listing port specified in the config file.
getMirrorFile(String) - Method in class com.debianmirror.mirror.data.MirrorFilePool
Will search the mirrorFiles collection for the file.
If non is found it initiates a new MirrorFile object representing the fileName
getMirrorfile(URI) - Method in class com.debianmirror.mirror.module.MirrorModule
Asks the MirrorFilePool for the MirrorFile representing the URI
getMirrorFile(URI) - Method in class com.debianmirror.mirror.control.MirrorControl
Returns the MirrorFile from the underlying MirroControlSingleton.
getMirrorFile(URL) - Method in class com.debianmirror.mirror.control.MirrorControlSingleton
Returns a MirrorFile associated with the uRL.
getNrOfWorkers() - Method in class com.debianmirror.server.ServerConfig
Returns the number of workers specified in the config file.
getRequestMethod() - Method in class com.debianmirror.http.HttpRequestHeader
Returns the request method of the http request (capitalized)
getSocket() - Method in class com.debianmirror.server.Listener
Returns a socket from the sockets list.
getStatusCode() - Method in class com.debianmirror.http.HttpRequestException
 
getStatusLine() - Method in class com.debianmirror.http.HttpRequestException
 
getWorker() - Method in class com.debianmirror.server.WorkerCache
Returns an idle worker from the workerList.

H

handleClient(Socket) - Method in interface com.debianmirror.server.WorkerImpl
Does all the work associated with the given Socket.
handleClient(Socket) - Method in class com.debianmirror.server.MirrorHttpWorkerImpl
 
hashCode() - Method in class com.debianmirror.mirror.data.MirrorFile
Does override the hashCode methode of the Object-class.
HttpRequestException - exception com.debianmirror.http.HttpRequestException.
Exception thrown in HttpRequestHeader.
HttpRequestException(int) - Constructor for class com.debianmirror.http.HttpRequestException
 
HttpRequestHeader - class com.debianmirror.http.HttpRequestHeader.
Represents the request header associated with the request.
HttpRequestHeader(InputStream) - Constructor for class com.debianmirror.http.HttpRequestHeader
Reads header information from InputStream If the header is not a valid HTTP header an HttpRequestExceprion will be thrown

I

isGETRequest() - Method in class com.debianmirror.http.HttpRequestHeader
 

K

killCache() - Method in class com.debianmirror.server.WorkerCache
Kills the cache gracefully.

L

Listener - class com.debianmirror.server.Listener.
Listener will listen on the assigned listeningPort for incoming client requests.
Listener(int) - Constructor for class com.debianmirror.server.Listener
Creates a Listener instance on the assigned listeningPort.
LISTENINGPORT_KEY - Static variable in class com.debianmirror.server.ServerConfig
The key used in the config file for the listing port

M

MirrorConf - class com.debianmirror.mirror.data.MirrorConf.
Contains all configuration values used to run the mirror.
MirrorConf() - Constructor for class com.debianmirror.mirror.data.MirrorConf
 
MirrorControl - class com.debianmirror.mirror.control.MirrorControl.
The MirrorControl is the connection layer between the view and the actual mirror.
MirrorControl() - Constructor for class com.debianmirror.mirror.control.MirrorControl
Create a new instance.
MirrorControlSingleton - class com.debianmirror.mirror.control.MirrorControlSingleton.
The MirrorControlSingleton will make sure that there is only one instance handling all requests from the View layer.
MirrorControlSingleton() - Constructor for class com.debianmirror.mirror.control.MirrorControlSingleton
 
MirrorFile - class com.debianmirror.mirror.data.MirrorFile.
 
MirrorFile.Data - class com.debianmirror.mirror.data.MirrorFile.Data.
 
MirrorFile.Data() - Constructor for class com.debianmirror.mirror.data.MirrorFile.Data
 
MirrorFile.InputStream - class com.debianmirror.mirror.data.MirrorFile.InputStream.
 
MirrorFile.InputStream() - Constructor for class com.debianmirror.mirror.data.MirrorFile.InputStream
 
MirrorFile() - Constructor for class com.debianmirror.mirror.data.MirrorFile
 
MirrorFilePool - class com.debianmirror.mirror.data.MirrorFilePool.
Represents all files known to the mirror module.
It creates new instances of MirrorFile if it didn't found an already existing instance in the mirrorFiles-collection.
MirrorFilePool() - Constructor for class com.debianmirror.mirror.data.MirrorFilePool
 
MirrorHttpWorkerImpl - class com.debianmirror.server.MirrorHttpWorkerImpl.
Is the actual implementation of the handleClient() methode used in Worker
MirrorHttpWorkerImpl() - Constructor for class com.debianmirror.server.MirrorHttpWorkerImpl
Creates a new instance and assignes the MirrorControl to this instance.
MirrorHttpWorkerImplFactory - class com.debianmirror.server.MirrorHttpWorkerImplFactory.
Creates instances of the MirrorHttpWorkerImpl
MirrorHttpWorkerImplFactory() - Constructor for class com.debianmirror.server.MirrorHttpWorkerImplFactory
 
MirrorModule - class com.debianmirror.mirror.module.MirrorModule.
The MirrorModule represents one configured module
The basic idea is to have one module per RemoteDebianServer.
This will get extended, so that all known mirrors of this RemoteDebianServer will be represented by this module.
MirrorModule() - Constructor for class com.debianmirror.mirror.module.MirrorModule
 

N

NR_OF_WORKERS_KEY - Static variable in class com.debianmirror.server.ServerConfig
The key used in the config file for the number of workers

R

run() - Method in class com.debianmirror.server.WorkerCache
Main method of the thread.
run() - Method in class com.debianmirror.server.Worker
Main Worker method.
run() - Method in class com.debianmirror.server.Server
Starts the thread.
run() - Method in class com.debianmirror.server.Listener
Is the method starting the Listener thread.
Basicly just calls the listenLoop()  methode.

S

Server - class com.debianmirror.server.Server.
The main purpose of the Server is to get a socket from the Listener and to hand this socket to the Worker.
The Server gets the Worker by requesting one from the WorkerCache.
Server(ServerConfig) - Constructor for class com.debianmirror.server.Server
Creates a new Server with the given ServerConfig.
ServerConfig - class com.debianmirror.server.ServerConfig.
Contains the information to configure the server.
ServerConfig(String) - Constructor for class com.debianmirror.server.ServerConfig
Initializes the ServerConfig from a properties-file
setMaxIdleWorkers(int) - Method in class com.debianmirror.server.WorkerCache
Sets the maxIdleWorkers.
setMinIdleWorkers(int) - Method in class com.debianmirror.server.WorkerCache
Sets the minIdleWorkers.
setSocket(Socket) - Method in class com.debianmirror.server.Worker
Does assign a socket to this Worker.

T

toString() - Method in class com.debianmirror.server.ServerConfig
Returns the configuration as a String.

W

Worker - class com.debianmirror.server.Worker.
The Worker is responsible for talking to the client.
This includes receiving the request header and sending the file or any given error back to the client.
Worker(WorkerImplFactory, WorkerCache) - Constructor for class com.debianmirror.server.Worker
Creates a new Worker instance with the specified factory and cache.
WorkerCache - class com.debianmirror.server.WorkerCache.
The WorkerCache hold a bunch of already started Worker threads.
WorkerCache(WorkerImplFactory) - Constructor for class com.debianmirror.server.WorkerCache
Creates a new WorkerCache.
WorkerImpl - interface com.debianmirror.server.WorkerImpl.
The WorkerImpl is used by the Worker to handle the actual work on the Socket.
WorkerImplFactory - interface com.debianmirror.server.WorkerImplFactory.
The WorkerImplFactory creates instances of the WorkerImpl.

A C D E G H I K L M N R S T W

Copyright © 2004, Apt-Got Group