Implementation of Java Calls File System Based on Personal Computer
- Author
- ZhangMeiLing
- Advisor
- ZhangGang
- School
- Taiyuan University of Technology
- Major
- Information and Communication Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 3
- Citations
- 0
Abstract
With the continuous development of the Internet and World Wide Web technology, java language has been developed rapidly as a network programming language. And has been widely used in different devices, computers and networks. Meanwhile, java as an object-oriented programming language, by virtue of their cross-platform and portability, can been used in application development especially. However, java can not achieve all functions, such as some databases and programs compiled in other languages, some characteristics which java language does not support and depend on operating system, some time-sensitive codes interact with the lower level system. This when it is necessary to introduce the JNI technology.Through the overall analysis of system architecture, system architecture is divided into three layers, which is based on the concept of SOA with Three-tier Architecture(demand layer, semantic layer, service layer). The hardware layer matches with the five interface functions in the lower level system. The system layer corresponds to the process of the file system, which is responsible for passing parameters and data associated with drive between the user layer and the hardware layer.When the user level requests for an application, the requirements mapped to file system operation processes. This article is in the WINDOWS operating system platform, based on a c code about FATFS file system, java achieves file system functions based on JNI technology. Firstly, driver functions compiled in c are taken as the atomic component of system, which include six functions:disk_initialize(), disk_status(), disk_read(),disk_write(), disk_ioctl(), get_fattime().These functions can complete the accordance of the file system layer and the hardware layer, so as to realize the function of the basic building blocks of the file system layer. User levels meet the application requirements by calling the applied semantic process.Firstly, the basic component of the file system was analyzed. Subsequently, FATFS file system has been portable to PC, based on SOA architecture. Finally, DLL (WINDOWS platform is in the form of a DLL file, UNIXS platform is in the form of a SO file) is generated based platform is in the form of a SO file) is generated based on native c code, combining of file system semantics of process and JNI technology. Because java is characterized by its cross-platform, the WINDOWS platform can achieve java calls functions of file system function by calling a DLL file (or SO file).The design makes use of eclipse development tools. On the basis of analysis of the eclipse platform architecture, the paper analyses the installation and use of eclipse plug-ins. Finally, java calls some of the functions of the file system has been achieved in PC through java and C environment configuration in eclipse environment and JNI technology. These functions include read file, write file, read file system information, read the file directory, modify file attributes,create folder,rename a file.
Table of contents
Summary 3-5
ABSTRACT 5-10
first chapter 10-20
1.1 subject background 10-11
development 1.1.1 file system 10-11
1.1.2 Java language advantages characteristic 11
1.2 Java and DLL interactive technology 11-12
1.3 Eclipse development kit 12-18
1.3.1 Eclipse basic Profile 12-13
1.3.2 JDK introduced 13-17
1.3.2.1 JDK composition structure 13-14
1.3.2.2 JDK environment configuration 14-15
1.3.2.3 Java environment test 15-17
1.3.3 CDT plug presentations 17-18
1.4 articles structural arrangements 18-20
Chapter II file system 20-36 <br / > 2.1 hard disk structure data structure 20-21
2.2 file system 21-32
2.2.1 MBR master boot sector 22-24
2.2.2 DBR sector 24-27
2.2.3 file Allocation Table 27-28
2.2.4 FDT file directory table 28-32
2.3 file allocation table data storage principle 32-34
2.4 Summary 34-36
Chapter JNI technology 36-46
3.1 JNI technology principle 36-38
3.2 JAVA C tune specific steps 38
3.3 JAVA and C / C with different parameters call 38-43
3.3.1 pass a string 39-40
3.3.2 pass an array 40-41
3.3.3 transmission structure parameters 41-43
3.3.4 test code 43
3.4 Summary under Chapter 43-46
SOA architecture FATFS file system migration 46-58
4.1 SOA three-tier model 46-47
4.2 FATFS file system 47-48
4.3 SOA under the three-tier file system analysis 48 - 52
4.3.1 SOA logic layer of the three-tier SOA three-tier architecture to achieve 48-51
4.3.2 layer 51-52
4.4 FATFS file system Migration 52-57
4.4.1 FATFS file system code structure 52-53
4.4.2 underlying function implementation 53-57
4.5 Summary 57-58
Chapter Java file system calls and realize 58-68
5.1 experimental Procedure 58-59
5.2 features description and results of the test 59-68
Chapter VI summary and Outlook 68-70
6.1 summary inadequate 68
6.2 system and work prospects 68-70
References 70-74
Thanks 74-76
pursue a degree during the academic catalog published 76
Related dissertations
- Research of Construction for the Enforcement Mechanism of Accounting Standards in China
- Shenzhen Telecom Peripheral Equipment Maintenance Service Process Reengineering and Information Technology to Achieve
- Research and Implementation of Intelligent Video Surveillance System Based on Android
- Terminal design of fault diagnosis system of intelligent equipment under a cloud service environment
- Research on Architecture of Command and Control System Based on SOA
- Android-based Remote Control System for Mobile Robot
- Design and Implementation of the Campus Network Application Based on SOA
- Implementation of Windows File System Virtualization Based on Sandbox Technology
- Design and Implementation of Cross-platform Website Anti-tamper System Based on File Filter Driver
- Chengdu Telecom Design and Implementation of CDMA Integrated Network Management System
- The Integration Study of Information System of Discrete Enterprise Based on FEAF
- Research on Multi-attribute-based File Organization Mechanism
- Design and Implementation of Guangxi Investment Group Coordination Office Automation System Based on the SOA
- Document the OA System Approval Process Design
- Research on Database Legacy System Migration to the Integrated Web Service
- The Design and Implementation of Distributed File System Based on Linux
- Design and Implementation of a SOA-based Operation Hour Assignment Management System
- Research and Implementatione of Secondary Development of the Corporate Units at the County Level Directory Database System
- Design and Implementation of Digital Media Resources Collaborative Production Platform Based on SOA
- Research and Implementation of the College Comprehensive Teaching Management Platform Based on Micro Cloud Computing Technology