All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jnfs.FileServerStarter

java.lang.Object
   |
   +----jnfs.FileServerStarter

public class FileServerStarter
extends Object
Starts up the file server by creating a registry on the default port and instantiating a FileServerImpl.

Called from the command line of the server side of the file system. The starter loads the default UserTable from its serialzed state (usertab.obj), creates an instance of DSAAuthentication for authentication and FileBasedPermissionGranter for file permissions. Since the permission granter requires three files to do its work, these must be specified on the command line.

Usage:

 java jnfs.FileServerStarter fully.qualified.host.name \
      dirListingPathname groupPathname passwdPathname
 

Version:
$Id: FileServerStarter.java,v 1.25 1997/05/21 20:26:49 mjr Exp $
Author:
Michael John Radwin
See Also:
REGISTRY_PORT, load, DSAAuthentication, FileBasedPermissionGranter

Method Index

 o getUserTable()
Loads the user table usertab.obj.
 o main(String[])
Start up the FileServer and bind it to the local registry.
 o makeDSAAuthentication(UserTable)
Creates an instance of DSAAuthentication.
 o makeGranter(UserTable, String, String, String)
Creates an instance of FileBasedPermissionGranter.
 o startFileServer(String, UserTable, Authentication, PermissionGranter)
Start up a registry and the FileServerImpl and bind it to the registry name jnfs.FileServer.serviceName.

Methods

 o getUserTable
 public static UserTable getUserTable()
Loads the user table usertab.obj.

 o makeDSAAuthentication
 public static Authentication makeDSAAuthentication(UserTable users)
Creates an instance of DSAAuthentication.

 o makeGranter
 public static PermissionGranter makeGranter(UserTable users,
                                             String dirListingPathname,
                                             String groupPathname,
                                             String passwdPathname) throws IOException
Creates an instance of FileBasedPermissionGranter.

 o startFileServer
 public static FileServer startFileServer(String hostname,
                                          UserTable users,
                                          Authentication auth,
                                          PermissionGranter granter)
Start up a registry and the FileServerImpl and bind it to the registry name jnfs.FileServer.serviceName.

Parameters:
hostname - the fully qualified domain name of the server machine.
users - the user table used by the file system
auth - the authentication manager
granter - the permissions granter
See Also:
serviceName
 o main
 public static void main(String args[])
Start up the FileServer and bind it to the local registry.

See Also:
startFileServer

All Packages  Class Hierarchy  This Package  Previous  Next  Index