org.xnap.plugin.pircbot
Class PircBotPeer

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

public class PircBotPeer
extends AbstractPeer

This class represents a PircBot user.


Constructor Summary
PircBotPeer(PircBotServer server, java.lang.String nick)
           
 
Method Summary
 javax.swing.Action[] getActions()
          Returns the actions that can performed by the peer.
 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.
 PircBotServer getServer()
           
 java.lang.String getStatus()
          Returns the status of the peer.
 void setHost(java.lang.String host)
           
 
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

PircBotPeer

public PircBotPeer(PircBotServer server,
                   java.lang.String nick)
Method Detail

getActions

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


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.


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".


getServer

public PircBotServer getServer()

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".


setHost

public void setHost(java.lang.String host)


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