com.debianmirror.mirror.data
Class MirrorFilePool

java.lang.Object
  |
  +--com.debianmirror.mirror.data.MirrorFilePool

public class MirrorFilePool
extends java.lang.Object

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. Maybe this collection should be a WeakHashMap?

Author:
E01 - Tobias Hertkorn, Jonas Jagerhok, Jamie Fitz-Gerald

Constructor Summary
MirrorFilePool()
           
 
Method Summary
 MirrorFile getMirrorFile(java.lang.String fileName)
          Will search the mirrorFiles collection for the file.
If non is found it initiates a new MirrorFile object representing the fileName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MirrorFilePool

public MirrorFilePool()
Method Detail

getMirrorFile

public MirrorFile getMirrorFile(java.lang.String fileName)

Will search the mirrorFiles collection for the file.
If non is found it initiates a new MirrorFile object representing the fileName

If no file can be found or if the fileName is malformed this methode returns null.

Parameters:
fileName - what file to search for
Returns:
the MirrorFile representing the fileName.


Copyright © 2004, Apt-Got Group