com.starla.smb
Class SMBServerList

java.lang.Object
  |
  +--com.starla.smb.SMBServerList

public class SMBServerList
extends java.lang.Object

SMB server list class

The SMBServerList contains a list of SMBServerInfo objects.

An SMBServerList is returned by the SMBAdminSession.getServerList () method.


Constructor Summary
SMBServerList()
          Class constructor
 
Method Summary
 void addServerInfo(SMBServerInfo srvinf)
          Add a server information object to the list.
 void clearList()
          Clear all server information objects from the list
 SMBServerInfo getServerInfo(int idx)
          Get a server information object from the list
 int NumberOfServers()
          Get the number of servers in the list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMBServerList

public SMBServerList()
Class constructor
Method Detail

addServerInfo

public final void addServerInfo(SMBServerInfo srvinf)
Add a server information object to the list.
Parameters:
srvinf - SMBServerInfo to add to the list.

clearList

public final void clearList()
Clear all server information objects from the list

getServerInfo

public final SMBServerInfo getServerInfo(int idx)
                                  throws java.lang.ArrayIndexOutOfBoundsException
Get a server information object from the list
Parameters:
idx - Index of the server information to return
Returns:
SMBServerInfo for the required server.
Throws:
java.lang.ArrayIndexOutOfBoundsException - If the index is invalid

NumberOfServers

public final int NumberOfServers()
Get the number of servers in the list
Returns:
Number of SMBServerInfo objects in the list.