Server processes

本文详细解析了服务器进程如何代表用户的每个应用程序执行任务,包括解析和运行通过应用程序发出的SQL语句,从磁盘上的数据文件读取必要的数据块到SGA的共享数据库缓冲区中,以及返回结果以便应用程序能够处理这些信息。
Server processes (or the server portion of combined user/server processes) created
on behalf of each user’s application can perform. one or more of the following:
Parse and run SQL statements issued through the application
Read necessary data blocks from datafiles on disk into the shared database
buffers of the SGA, if the blocks are not already present in the SGA
Return results in such a way that the application can process the information

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15116811/viewspace-594826/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/15116811/viewspace-594826/

HW11 - Challenge Description Instructions Testing Submit Description For this Homework, you will be implementing a search engine using Network IO and JOptionPanes. You will use two classes: SearchClient.java and SearchServer.java. We encourage you to practice searching for text during your testing. At several points in this assignment, we will share important reminders of how to organize your solution. Organization is a critical aspect of designing applications with these tools. If Google tried to load the entirety of the Internet on your client instance of Google Chrome every time you performed a search, do you think it would be a popular application? Alternatively, if a bank stored everyone's passwords in the files of a mobile app, do you think it would be secure for very long? These decisions are vital to ensuring that you develop safe, reliable, and secure applications in the real world. Note: 5 points of your Challenge grade is based on Coding Style. You will need to follow the standards described on Brightspace. Use the "Run" button to check your Coding Style without using a submission. Instructions All input and output should be done through JOptionPane dialogs. Any input and output conducted via the terminal will not receive points. Note: GUI applications will not run on Vocareum. Test them locally! The user will be able to enter the host name and port number through a JOptionPane. Once connected, the user can search for text and will be given the results in another JOptionPane. From there, the user can elect to open one of the results to review the full description. The specific details of the message prompt are up to you. The searching process involves sequential steps. The server, when started, will load a database file called "searchDatabase.txt" that contains the searchable data (file format details included below). Next, the user will be prompted to enter a text string as their search. The input string will be sent to the server. The server will return the titles of every page where the title or description contains the searched value. On the client side, the titles sent by the server will be displayed in a dropdown menu. The user will select one of the options and the index of that selection will be sent back to the server. The server will return the description of the requested page. The client class will handle displaying the GUI, accepting user input, and displaying the results. The server will handle all processing. Your implementation must follow this organization to receive credit. searchDatabase.txt format The file will be formatted with rows as follows: PageID;Page Title;Page Description. For example: 1;Local birds;There are many birds of note in the Lafayette area. Each has unique characteristics such as a particular song or flight pattern. 2;Programming languages;There are many different types of programming languages. Java is a high-level, object-oriented language. You can assume that the only semi-colons present in the file will be separating the entries in each row. An example file is included in the starter code. Implementation Requirements Your program must perform the following in order: Welcome the user Prompt the user to enter a host name and port number (you may do this separately or together). If the connection is not established successfully, show an error message and end the program. Show a connection established message. Ask the user to enter their search text. Display a dropdown menu with the results of the search. If the search did not return any results, display an error and continue to step 7. If the search returned at least one result, display the dropdown and allow the user to select one. Proceed to step 6. Display the page description of the title selected in the previous step. Ask the user if they'd like to search again. If no, continue to step 8. If yes, return to step 4. Display a farewell message. Exit The specifics of the look and feel, the text messages you use (except when specified), and the types of dialogs are all up to you. Keep in mind that all your decisions should be logical and design oriented. Hint: Remember, the server needs to be running before you run the client. Notes Your program should handle a situation where the user selects cancel on any option where it is available, or exits the panel. The client accepts user input and displays the GUI. The server processes the input and returns the results. Solutions that do not organize the implementation appropriately will not receive credit. The server should accept one connection from a user at a time. The server should run in an infinite loop until stopped. The Intellij GUI Designer (or any other shortcut tool) is not allowed for any CS 18000 assignment. If there are .form files in your submission, it will not be graded. This assignment must use JOptionPane GUIs. A solution that does not do so will not receive credit. You can choose which port number to use in the Server. Include the number in the client and server class comments. Use "localhost" for the host name. Your solution must handle all exceptions and errors. You will not be able to run your solution on Vocareum. This is expected. As long as you submit, you will be graded. Testing Run through the program with sample inputs and verify everything is performing as expected. Submit After testing your solution and verifying that it meets the requirements described in this document, you can submit on Vocareum. Your work will be graded as soon as possible after the late submission deadline.
07-30
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值