All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----jnfs.FileServerStarter
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
usertab.obj
.
DSAAuthentication
.
FileBasedPermissionGranter
.
jnfs.FileServer.serviceName
.
public static UserTable getUserTable()
usertab.obj
.
public static Authentication makeDSAAuthentication(UserTable users)
DSAAuthentication
.
public static PermissionGranter makeGranter(UserTable users, String dirListingPathname, String groupPathname, String passwdPathname) throws IOException
FileBasedPermissionGranter
.
public static FileServer startFileServer(String hostname, UserTable users, Authentication auth, PermissionGranter granter)
jnfs.FileServer.serviceName
.
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index