com.starla.smb
Class SMBServerInfo

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

public final class SMBServerInfo
extends java.lang.Object

SMB server info class

The SMBServerInfo class contains details of the remote server that an SMBAdminSession is connected to. The class is returned by the SMBAdminSession.getServerInfo () method, or a list of the available servers may be returned as an SMBServerList by the SMBAdminSession.getServerList () method.


Field Summary
static int AFPServer
          Apple File Protocol server
static int AlternateXport
          Return list for alternate transport (input flag)
static int BackupBrowser
          Server running as a backup browser
static int DCEServer
          IBM DSS or equivalent
static int DFSRoot
          Root of a DFS tree
static int DialinServer
          Server is running a dial-in service
static int DomainBakCtrl
          Server is a backup domain controller
static int DomainCtrl
          Server is a primary domain controller
static int DomainEnum
          Enumerate domains (input flag)
static int DomainMaster
          Server running the domain master browser
static int DomainMember
          LAN Manager 2.x domain member
static int LocalListOnly
          Return local list only (input flag)
static int MasterBrowser
          Server running as the master browser
static int MFPNServer
           
static int NovellServer
          Novell server
static int NTCluster
          NT cluster
static int NTNonDCServer
          Windows NT none domain controller server
static int NTServer
          Windows NT server, or workstation
static int OSFServer
          OSF server
static int PotentialBrowse
          Server that can run the browser service
static int PrintServer
          Server has shared print queues
static int Server
          Server is a LAN Manager server
static int SQLServer
          Server is running SQL server
static int TerminalServer
          Terminal server (Hydra)
static int TimeSource
          Server is running the time source service
static int UnixServer
          Xenix/Unix server
static int VMSServer
          VMS server
static int WfwServer
          Windows for Workgroups server
static int Win95Plus
          Windows 95 and above type server
static int WorkStation
          Server is a LAN Manager workstation
 
Method Summary
 java.lang.String getComment()
          Return the server comment, or master browser name if the server type indicates that the entry is for a domain.
 java.lang.String getDomainName()
          Return the domain that this server belongs to.
 int getMajorVersion()
          Return the remote server major version number
 int getMinorVersion()
          Return the remote server minor version number
 java.lang.String getServerName()
          Return the server name string
 int getServerType()
          Return the server type bit mask
 boolean isDomain()
          Determine if this server information is a domain record
 java.lang.String toString()
          Output the server information as a string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WorkStation

public static final int WorkStation
Server is a LAN Manager workstation

Server

public static final int Server
Server is a LAN Manager server

SQLServer

public static final int SQLServer
Server is running SQL server

DomainCtrl

public static final int DomainCtrl
Server is a primary domain controller

DomainBakCtrl

public static final int DomainBakCtrl
Server is a backup domain controller

TimeSource

public static final int TimeSource
Server is running the time source service

AFPServer

public static final int AFPServer
Apple File Protocol server

NovellServer

public static final int NovellServer
Novell server

DomainMember

public static final int DomainMember
LAN Manager 2.x domain member

PrintServer

public static final int PrintServer
Server has shared print queues

DialinServer

public static final int DialinServer
Server is running a dial-in service

UnixServer

public static final int UnixServer
Xenix/Unix server

NTServer

public static final int NTServer
Windows NT server, or workstation

WfwServer

public static final int WfwServer
Windows for Workgroups server

MFPNServer

public static final int MFPNServer

NTNonDCServer

public static final int NTNonDCServer
Windows NT none domain controller server

PotentialBrowse

public static final int PotentialBrowse
Server that can run the browser service

BackupBrowser

public static final int BackupBrowser
Server running as a backup browser

MasterBrowser

public static final int MasterBrowser
Server running as the master browser

DomainMaster

public static final int DomainMaster
Server running the domain master browser

OSFServer

public static final int OSFServer
OSF server

VMSServer

public static final int VMSServer
VMS server

Win95Plus

public static final int Win95Plus
Windows 95 and above type server

DFSRoot

public static final int DFSRoot
Root of a DFS tree

NTCluster

public static final int NTCluster
NT cluster

TerminalServer

public static final int TerminalServer
Terminal server (Hydra)

DCEServer

public static final int DCEServer
IBM DSS or equivalent

AlternateXport

public static final int AlternateXport
Return list for alternate transport (input flag)

LocalListOnly

public static final int LocalListOnly
Return local list only (input flag)

DomainEnum

public static final int DomainEnum
Enumerate domains (input flag)
Method Detail

getComment

public final java.lang.String getComment()
Return the server comment, or master browser name if the server type indicates that the entry is for a domain.
Returns:
Comment, or master browser name, string

getDomainName

public final java.lang.String getDomainName()
Return the domain that this server belongs to.
Returns:
Domain name string, or null if not known.

getMajorVersion

public final int getMajorVersion()
Return the remote server major version number
Returns:
Server major version number

getMinorVersion

public final int getMinorVersion()
Return the remote server minor version number
Returns:
Server minor version number

getServerName

public final java.lang.String getServerName()
Return the server name string
Returns:
Server name string

getServerType

public final int getServerType()
Return the server type bit mask
Returns:
Server type bit mask

isDomain

public final boolean isDomain()
Determine if this server information is a domain record

toString

public final java.lang.String toString()
Output the server information as a string
Returns:
Server information string.
Overrides:
toString in class java.lang.Object