|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.peer.AbstractPeer org.xnap.plugin.opennap.user.OpenNapUser
public class OpenNapUser
Field Summary | |
---|---|
static int |
WHOIS_REQUERY_INTERVALL
|
static int |
WHOIS_RESENT_INTERVALL
|
Constructor Summary | |
---|---|
OpenNapUser(java.lang.String name,
OpenNapServer server)
|
Method Summary | |
---|---|
boolean |
canDirectBrowse()
Returns true, if this user's client support direct browse. |
boolean |
equals(java.lang.Object o)
Returns true, if the name of o equals the name of the user. |
javax.swing.Action[] |
getActions()
Returns the actions that can performed by the peer. |
int |
getConnectDuration()
|
int |
getDownloadCount()
Returns the download count as received by a whois response. |
java.lang.String |
getHost()
Returns the ip address or hostname of this peer. |
long |
getLastSeen()
|
java.lang.String |
getLevel()
|
int |
getLocalDownloadCount()
Returns the number of currently running downloads from this peer. |
int |
getLocalUploadCount()
Returns the number of currently running uploads to this peer. |
OpenNapGlobalUser |
getParent()
|
int |
getPort()
|
OpenNapServer |
getServer()
|
java.lang.String |
getStatus()
Returns the status of the peer. |
int |
getUploadCount()
|
boolean |
isDownloadDenied()
|
boolean |
isDownloadLimitReached()
|
boolean |
isUploadDenied()
Checks if peer shares enough to be allowed to download from us. |
boolean |
isUploadLimitReached()
|
boolean |
isUpToDate()
|
void |
notifyWhoisReceived()
Called by message class when whois query was received. |
void |
setConnectDuration(int newValue)
|
void |
setDownloadCount(int newValue)
|
void |
setHost(java.lang.String newValue)
|
void |
setLastSeen(long newValue)
|
void |
setLevel(java.lang.String newValue)
|
void |
setLinkSpeed(int newValue)
Maps OpenNap types to real values. |
void |
setPort(int newValue)
|
void |
setStatus(java.lang.String newValue)
|
void |
setUploadCount(int newValue)
|
boolean |
shouldRequery()
|
java.lang.String |
toString()
Returns the value of getName() . |
boolean |
update()
|
boolean |
update(boolean force)
Sends a whois query to the server if not up to date. |
Methods inherited from class org.xnap.peer.AbstractPeer |
---|
getClientInfo, getFileCount, getLinkSpeed, getName, setClientInfo, setFileCount, setName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int WHOIS_REQUERY_INTERVALL
public static final int WHOIS_RESENT_INTERVALL
Constructor Detail |
---|
public OpenNapUser(java.lang.String name, OpenNapServer server)
Method Detail |
---|
public boolean canDirectBrowse()
public boolean equals(java.lang.Object o)
o
equals the name of the user.
equals
in class java.lang.Object
public javax.swing.Action[] getActions()
Peer
public int getConnectDuration()
public int getDownloadCount()
public java.lang.String getHost()
Peer
public long getLastSeen()
public java.lang.String getLevel()
public int getLocalDownloadCount()
Peer
public int getLocalUploadCount()
Peer
public OpenNapGlobalUser getParent()
public int getPort()
public OpenNapServer getServer()
public java.lang.String getStatus()
Peer
public int getUploadCount()
public boolean isDownloadDenied()
public boolean isDownloadLimitReached()
public boolean isUploadDenied()
update()
if needed.
public boolean isUploadLimitReached()
public boolean isUpToDate()
public void notifyWhoisReceived()
public void setConnectDuration(int newValue)
public void setDownloadCount(int newValue)
public void setHost(java.lang.String newValue)
public void setLastSeen(long newValue)
public void setLevel(java.lang.String newValue)
public void setPort(int newValue)
public void setLinkSpeed(int newValue)
setLinkSpeed
in class AbstractPeer
public void setStatus(java.lang.String newValue)
public void setUploadCount(int newValue)
public boolean shouldRequery()
public java.lang.String toString()
AbstractPeer
getName()
.
toString
in class AbstractPeer
public boolean update(boolean force)
public boolean update()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |