|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.transfer.AbstractTransferManager
public abstract class AbstractTransferManager
This class manages transfers.
Field Summary | |
---|---|
protected ListSupport |
listeners
|
protected org.apache.log4j.Logger |
logger
|
protected static Preferences |
prefs
|
Constructor Summary | |
---|---|
AbstractTransferManager()
|
Method Summary | |
---|---|
protected void |
add(Transfer t)
Adds a transfer to this manager. |
void |
addListListener(ListListener listener)
|
void |
clearDone()
Removes all done transfers from this manager. |
long |
getCurrentRate()
Computes the currently used bandwidth. |
TransferQueue |
getQueue()
|
Transfer[] |
getTransfers()
|
protected void |
remove(Transfer t)
Removes t from this manager. |
void |
removeListListener(ListListener listener)
|
void |
setAutoClearInterval(long interval)
Sets the interval for the auto clear task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Preferences prefs
protected org.apache.log4j.Logger logger
protected ListSupport listeners
Constructor Detail |
---|
public AbstractTransferManager()
Method Detail |
---|
public void addListListener(ListListener listener)
public void removeListListener(ListListener listener)
public void clearDone()
public long getCurrentRate()
public TransferQueue getQueue()
protected void add(Transfer t)
public Transfer[] getTransfers()
protected void remove(Transfer t)
t
from this manager.
public void setAutoClearInterval(long interval)
interval
- the clear interval in milli seconds; if -1,
auto clearing is disabled
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |