comirva.web.crawling.agmis
Class DownloadControlDataVector
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<DownloadControlData>
comirva.web.crawling.agmis.DownloadControlDataVector
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<DownloadControlData>, Collection<DownloadControlData>, List<DownloadControlData>, RandomAccess
class DownloadControlDataVector
- extends Vector<DownloadControlData>
Extension to Vector to cope with special
requirements of the DownloadControlData.
Method Summary |
int |
getNumberOfBlockingHosts()
Calculates and returns the number of hosts that are not ready to
be queried due to timing reasons (too few time passed since last access). |
long |
getTimeElapsed(String host)
Returns the time elapsed since the given host was queried the last time. |
void |
update(DownloadControlData dcd)
Updates the timestamp of a host. |
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
DownloadControlDataVector
public DownloadControlDataVector()
update
public void update(DownloadControlData dcd)
- Updates the timestamp of a host. Or inserts the host in
the vector if it is not already contained.
- Parameters:
dcd
-
getTimeElapsed
public long getTimeElapsed(String host)
- Returns the time elapsed since the given host was queried the last time.
- Parameters:
host
- the host of interest
- Returns:
getNumberOfBlockingHosts
public int getNumberOfBlockingHosts()
- Calculates and returns the number of hosts that are not ready to
be queried due to timing reasons (too few time passed since last access).
- Returns:
- the number of hosts