-
Notifications
You must be signed in to change notification settings - Fork 0
mohitreddy1996/Distributed-File-System
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
MAKEFILE TARGETS To compile all Java files, execute make To run all test cases, run make tests To package class files into a single, monolithic distribution of the filesystem, run make jar This produces a file called dfs.jar, which can be used to start naming and storage servers, and to run utilities. To package source files into an archive, run make archive To generate documentation, execute make docs The documentation can then be viewed at javadoc/index.html. The suggested reading order for the packages is rmi, then common, naming, storage, client, apps. Alternatively, complete documentation of all classes and members can be generated using make docs-all and then viewed at javadoc-all/index.html. To clean the build directories, execute make clean TESTS Various tests can be run by executing: java conformance.ConformanceTests java -cp ./:./unit unit.UnitTests java test.SelfTest Conformance tests check the public interfaces of the classes in the various packages for conformance to the written specifications. The tests are thorough but not exhaustive. Conformance tests are grouped by the packages they test. For example, conformance tests for the RMI library, which is in the package rmi, are grouped in the package conformance.rmi. Conformance tests are used for grading. You have been provided with a large number of conformance tests to help you find problems with your code. However, there may be additional tests used by the staff during grading. Testing thoroughly is your responsibility. Unit tests can be written to check package-private classes. Unit tests are in the same package as the class they are testing: a unit test for a class in the package rmi would also be in the package rmi (whereas a conformance test would be in the different package conformance.rmi). Unit tests, are, however, kept in a different directory in the source tree. The Java classpath is altered when running unit tests to put the unit tests logically in the same package as the code they are testing. The class test.SelfTest runs some basic self-tests on the testing library. APPLICATIONS The naming and storage servers can be started as follows: java -jar dfs.jar naming java -jar dfs.jar storage (local-address) (naming-server) (local-path) The naming server is fairly self-explanatory. The arguments for starting the storage server are: local-address: the externally-visible hostname or IP address of the machine on which the server is running. This is necessary because the externally-visible name of the local machine cannot always be easily determined due to routers, firewalls, etc. naming-server: the hostname or IP address of the naming server with which the storage server is to register. local-path: the local directory in which the storage server is to locate the files it is to serve. Be careful with this directory - the storage server may choose to delete some of the files in it.
About
Distributed File System consisting of a multi threaded name server and storage servers capable of replicating data on storage servers efficiently.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published