org.xnap.plugin.opennap.net
Class OpenNapNetwork

java.lang.Object
  extended by org.xnap.plugin.opennap.net.OpenNapNetwork
Direct Known Subclasses:
OpenNapDefaultNetwork

public class OpenNapNetwork
extends java.lang.Object


Constructor Summary
OpenNapNetwork(java.lang.String name)
           
 
Method Summary
 void add(OpenNapServer s)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
           
 boolean equals(java.lang.Object obj)
          Returns true if obj has the same hostname and port.
 int getFileCount()
           
 int getFileSize()
           
 java.lang.String getName()
           
 int getServers()
           
 java.lang.String getStatus()
           
static int getTotalConnecting()
          Returns the total number of networks that are currently connecting.
 int getUserCount()
           
 boolean isBusy()
           
 void remove(OpenNapServer s)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void setConnected(OpenNapServer s, boolean isConnected)
           
 void setConnecting(OpenNapServer s, boolean isConnecting)
           
 void setStats(OpenNapServer s, int userCount, int fileCount, int fileSize)
           
 void setStatus(java.lang.String status)
           
 java.lang.String toString()
           
 void updateStatus()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpenNapNetwork

public OpenNapNetwork(java.lang.String name)
Method Detail

getTotalConnecting

public static int getTotalConnecting()
Returns the total number of networks that are currently connecting.


add

public void add(OpenNapServer s)

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)

equals

public boolean equals(java.lang.Object obj)
Returns true if obj has the same hostname and port.

Overrides:
equals in class java.lang.Object

getFileCount

public int getFileCount()

getFileSize

public int getFileSize()

getName

public java.lang.String getName()

getServers

public int getServers()

getStatus

public java.lang.String getStatus()

getUserCount

public int getUserCount()

isBusy

public boolean isBusy()

remove

public void remove(OpenNapServer s)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)

setConnected

public void setConnected(OpenNapServer s,
                         boolean isConnected)

setConnecting

public void setConnecting(OpenNapServer s,
                          boolean isConnecting)

setStats

public void setStats(OpenNapServer s,
                     int userCount,
                     int fileCount,
                     int fileSize)

setStatus

public void setStatus(java.lang.String status)

updateStatus

public void updateStatus()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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