org.xnap.plugin.overnet.peer
Class OvernetPeer

java.lang.Object
  extended by org.xnap.peer.AbstractPeer
      extended by org.xnap.plugin.overnet.peer.OvernetPeer
All Implemented Interfaces:
Peer

public class OvernetPeer
extends AbstractPeer


Constructor Summary
OvernetPeer(java.lang.String name, byte[] hash)
           
 
Method Summary
 javax.swing.Action[] getActions()
          Returns the actions that can performed by the peer.
 byte[] getHash()
           
 java.lang.String getHost()
          Returns the ip address or hostname of this peer.
 int getLocalDownloadCount()
          Returns the number of currently running downloads from this peer.
 int getLocalUploadCount()
          Returns the number of currently running uploads to this peer.
 java.lang.String getStatus()
          Returns the status of the peer.
 
Methods inherited from class org.xnap.peer.AbstractPeer
getClientInfo, getFileCount, getLinkSpeed, getName, setClientInfo, setFileCount, setLinkSpeed, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OvernetPeer

public OvernetPeer(java.lang.String name,
                   byte[] hash)
Method Detail

getHash

public byte[] getHash()

getActions

public javax.swing.Action[] getActions()
Description copied from interface: Peer
Returns the actions that can performed by the peer.


getHost

public java.lang.String getHost()
Description copied from interface: Peer
Returns the ip address or hostname of this peer. The host can include the port separated by a colon like this: "localhost:6699".


getLocalDownloadCount

public int getLocalDownloadCount()
Description copied from interface: Peer
Returns the number of currently running downloads from this peer.


getLocalUploadCount

public int getLocalUploadCount()
Description copied from interface: Peer
Returns the number of currently running uploads to this peer.


getStatus

public java.lang.String getStatus()
Description copied from interface: Peer
Returns the status of the peer. This could be something like "online" or "away".



Copyright © 2001-2005 XNap Team. All Rights Reserved.