|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xnap.peer.AbstractPeer
public abstract class AbstractPeer
This class provides the default implementation for a peer.
| Constructor Summary | |
|---|---|
AbstractPeer(java.lang.String name)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getClientInfo()
Returns the client info. |
int |
getFileCount()
Returns the number of shared files by this peer. |
int |
getLinkSpeed()
Returns the link speed of the peer. |
java.lang.String |
getName()
Returns the name of the peer. |
void |
setClientInfo(java.lang.String newValue)
|
void |
setFileCount(int newValue)
|
void |
setLinkSpeed(int newValue)
|
void |
setName(java.lang.String name)
|
java.lang.String |
toString()
Returns the value of getName(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xnap.peer.Peer |
|---|
getActions, getHost, getLocalDownloadCount, getLocalUploadCount, getStatus |
| Constructor Detail |
|---|
public AbstractPeer(java.lang.String name)
| Method Detail |
|---|
public java.lang.String getClientInfo()
Peer
getClientInfo in interface Peerpublic int getFileCount()
Peer
getFileCount in interface Peerpublic int getLinkSpeed()
Peer
getLinkSpeed in interface Peerpublic java.lang.String getName()
Peer
getName in interface Peerpublic void setClientInfo(java.lang.String newValue)
public void setFileCount(int newValue)
public void setLinkSpeed(int newValue)
public void setName(java.lang.String name)
public java.lang.String toString()
getName().
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||