WO2015184787A1 - Online class fault handling method, device and system - Google Patents

Online class fault handling method, device and system Download PDF

Info

Publication number
WO2015184787A1
WO2015184787A1 PCT/CN2014/096013 CN2014096013W WO2015184787A1 WO 2015184787 A1 WO2015184787 A1 WO 2015184787A1 CN 2014096013 W CN2014096013 W CN 2014096013W WO 2015184787 A1 WO2015184787 A1 WO 2015184787A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
teaching
classroom
client
network
Prior art date
Application number
PCT/CN2014/096013
Other languages
French (fr)
Chinese (zh)
Inventor
李丹
Original Assignee
广州华多网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州华多网络科技有限公司 filed Critical 广州华多网络科技有限公司
Publication of WO2015184787A1 publication Critical patent/WO2015184787A1/en

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B5/00Electrically-operated educational appliances
    • G09B5/08Electrically-operated educational appliances providing for individual presentation of information to a plurality of student stations

Definitions

  • the embodiments of the present invention relate to the field of computer technologies, and in particular, to a network classroom fault processing method, apparatus, and system.
  • Network teaching is a teaching method that uses computer network as the main teaching method. It is an important form of distance learning. It is also a teaching mode that uses computer equipment and Internet technology to implement information education for students.
  • the teacher can establish a web-based classroom on the network by initiating the client (the client used by the teacher) to conduct online teaching, and the student can attend the online classroom by receiving the client (the client used by the student).
  • Network teaching is to use the already popular computer and broadband network hardware environment, relying on the network teaching platform to achieve a new teaching mode of remote, simultaneous, real-time, interactive teaching and learning.
  • Teachers can open their own online classrooms in the network, while students You can listen to the class online by logging in to a good online class.
  • the teacher can send various types of teaching requests to the server through the initiating client, so that the server can perform corresponding operations, such as creating a teaching class or displaying teaching materials.
  • the related network classroom creation method includes: the initiating client sends a creation request for creating a network classroom to the server, and the creation request may carry the teaching information required for creating the network classroom, and the server creates the creation request according to the received request.
  • the network classroom; the receiving client sends a login request for logging in to the network classroom, and the server verifies the authorized lecture information in the login request. After the verification is passed, the receiving client logs in to the online classroom and listens to the teaching content normally. .
  • the embodiment of the present application provides a network classroom fault processing method. Devices and systems. The technical solution is as follows:
  • a method for processing a network classroom fault includes:
  • the detection result is that there is no teaching information corresponding to the network classroom, determining that the network classroom is faulty, and sending the acquisition request of the teaching information to the initiating client, so that the initiating client according to the Obtaining a request to automatically feed back the teaching information;
  • the obtaining the teaching request sent by the initiating client of the created web-based classroom when teaching in the online classroom comprises:
  • Receiving a server restart signal where the server restart signal is sent when the local server detects that the local server is not working normally; restarting the local server according to the server restart signal; performing the local server After restarting, receiving a teaching request sent by the initiating client when teaching in the online classroom, or
  • the obtaining the teaching request sent by the initiating client of the created web-based classroom when teaching in the online classroom comprises:
  • the local server is a standby server, and the local server is connected to the originating client through the transit server, the initiating client forwarded by the transit server is used to teach in the created online classroom.
  • the teaching request is sent, and the teaching request is forwarded by the relay server after being redirected to the local server after the original server of the network classroom fails.
  • the method further includes:
  • the obtaining and receiving the request for the lecture sent by the client for the network classroom comprises:
  • the listening request is that the relay server forwards the listening request of the network classroom to the local server after the failure of the original server of the network classroom.
  • the method further includes:
  • the detection result is that the originating client has the right to create the network classroom, performing the step of re-creating the network classroom according to the teaching information fed back by the initiating client.
  • the re-creating the network classroom according to the teaching information fed back by the initiating client includes:
  • the download address is cached, so that the receiving client downloads the teaching material according to the download address;
  • the display progress is cached, so that the receiving client displays the teaching material according to the display progress.
  • a method for processing a network classroom fault for an initiating client for teaching in an created web classroom, the method comprising:
  • the third aspect provides a network classroom fault processing method, which is used for receiving a client in a network classroom that has been created, and the method includes:
  • a network classroom fault processing apparatus comprising:
  • a first obtaining module configured to acquire a teaching request sent by an originating client of the created web classroom when teaching in the online classroom
  • a first detecting module configured to detect whether there is teaching information corresponding to the network classroom
  • a first sending module configured to: if the detection result is that the teaching information corresponding to the network classroom does not exist, determine that the network classroom is faulty, and send the acquisition request of the teaching information to the initiating client, And causing the initiating client to automatically feed back the teaching information according to the obtaining request;
  • a classroom reconstruction module configured to recreate the network classroom according to the teaching information that is initiated by the client.
  • the first acquiring module includes:
  • a signal receiving unit configured to receive a server restart signal, where the server restart signal is sent when the daemon detects that the local server is not working normally;
  • a server restarting unit configured to restart the local server according to the server restart signal
  • a request receiving unit configured to receive, after restarting the local server, a teaching request sent by the initiating client when teaching in the network classroom;
  • a signal receiving unit configured to receive a process restart signal corresponding to the network classroom, where the process is heavy
  • the signal is sent when the daemon detects that the process of the network classroom is not working normally
  • a server restarting unit configured to restart the process of the network classroom according to the process restart signal
  • the request receiving unit is configured to receive a teaching request sent by the initiating client when teaching in the network classroom after restarting the process of the network class.
  • the first obtaining module is further configured to receive the originating client forwarded by the transit server when the local server is a standby server, and the local server is connected to the initiating client through a transit server.
  • a teaching request sent during teaching in the created network classroom, the teaching request being forwarded by the relay server after being redirected to the local server after the original server of the network classroom fails.
  • the device further includes:
  • a second obtaining module configured to acquire a listening request sent by the receiving client for the created network classroom
  • a second detecting module configured to determine whether an account corresponding to the receiving client is in the network classroom
  • a second sending module configured to: if the account corresponding to the receiving client is not in the network classroom, send a request for re-logging to the network classroom to the receiving client, so that the receiving client receives the Sending a login request carrying authorized login information to the server after re-registering the request for the network classroom;
  • the login authorization module is configured to authorize the receiving client to log in to the network classroom according to the authorized login information.
  • the second obtaining module is further configured to: when the local server is a standby server, and the local server and the receiving client are connected by the transit server, receive the receiving client forwarded by the transit server.
  • the listening request sent by the network classroom is that the relay server redirects the listening request of the network classroom to the local server after the primary server of the network classroom fails. of.
  • the device further includes:
  • a permission detecting module configured to detect, according to the teaching information, whether the originating client has the right to create the network classroom
  • the classroom reconstruction module is further configured to: if the detection result is that the initiating client has the right to create the network classroom, perform the re-creating the network classroom according to the teaching information fed back by the initiating client step.
  • the classroom reconstruction module comprises:
  • a classroom creation unit configured to create the network classroom according to the identifier of the network classroom in the teaching information
  • An address buffering unit configured to cache the download address if the teaching information includes a download address of the teaching material, so that the receiving client downloads the teaching material according to the download address;
  • a progress buffer unit configured to cache the display progress if the teaching information includes an exhibition progress of the teaching material, so that the receiving client displays the teaching material according to the display progress.
  • the fifth aspect provides a network classroom fault processing apparatus, which is used in an initiating client for teaching in an created web classroom, the apparatus comprising:
  • a third sending module configured to send a teaching request for the network classroom to the server, so that the server detects whether there is teaching information corresponding to the network classroom; if the detection result is that there is no corresponding to the network classroom Determining, by the teaching information, that the network classroom is faulty, and sending the acquisition request of the teaching information to the initiating client;
  • a first receiving module configured to receive an acquisition request of the teaching information sent by the server
  • a fourth sending module configured to automatically send the teaching information to the server according to the obtaining request, so that the server re-creates the network classroom according to the teaching information fed back by the initiating client.
  • a network classroom fault processing apparatus for receiving a client in a web classroom that has been created, the apparatus comprising:
  • a fifth sending module configured to send a listening request for the created network classroom to the server, so that the server determines whether the account corresponding to the receiving client is in the network classroom, if the receiving client If the corresponding account is not in the network classroom, sending a request to re-login to the network classroom to the receiving client, and the network classroom that needs to be logged in again is after the server fails in the created network classroom, according to the Re-created the teaching information obtained from the originating client;
  • a second receiving module configured to receive the request for re-login to the network classroom
  • a sixth sending module configured to automatically send a login request carrying the authorized login information to the server according to the request for re-logging in the network classroom, so that the server logs in according to the authorization The information authorizes the receiving client to log in to the network classroom.
  • a network classroom fault processing system includes at least one originating client of the network classroom, at least one receiving client and server of the network classroom;
  • the server includes the network classroom fault processing apparatus of any of the above fourth aspect and each of the possible implementation manners of the fourth aspect;
  • the originating client includes the network classroom fault processing device described in the fifth aspect above;
  • the receiving client includes the network classroom fault processing apparatus described in the sixth aspect above.
  • FIG. 1A is a schematic structural diagram of an implementation environment involved in a network classroom fault processing method according to an embodiment of the present application
  • FIG. 1B is a schematic structural diagram of another implementation environment involved in a network classroom fault processing method according to an embodiment of the present application
  • FIG. 2 is a flowchart of a method for processing a network classroom fault according to an embodiment of the present application
  • FIG. 3 is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application.
  • FIG. 4 is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application.
  • 5A is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application.
  • FIG. 5B is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application.
  • FIG. 6 is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application.
  • FIG. 7 is a structural block diagram of a network classroom fault processing apparatus according to an embodiment of the present application.
  • FIG. 8 is a structural block diagram of a network classroom fault processing apparatus according to another embodiment of the present application.
  • FIG. 9 is a structural block diagram of a network classroom fault processing apparatus according to another embodiment of the present application.
  • FIG. 10 is a structural block diagram of a network classroom fault processing system according to an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a server according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an originating client according to an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of a receiving client according to an embodiment of the present application.
  • FIG. 1A is a schematic structural diagram of an implementation environment involved in a network classroom fault processing method provided by an embodiment of the present application.
  • the implementation environment includes a server 120, at least one network classroom initiation client 140, and at least one network classroom reception client 160;
  • the server 120 is connected to the originating client 140 via a network, and the server 120 is connected to the receiving client 160 via the network.
  • the originating client 140 and the receiving client 160 may be electronic devices such as tablets, desktop computers, notebook computers, and smart home appliances.
  • the originating client 140 can create a web class on the server 120, and the receiving client 160 can listen to the web class created on the server 120.
  • FIG. 1B is a schematic structural diagram of another implementation environment involved in the network classroom fault processing method provided by the embodiment of the present application.
  • the implementation environment includes at least two servers 120, at least one network classroom initiation client 140, at least one network classroom reception client 160, and at least one relay server 180;
  • Server 120 can be a server cluster consisting of several servers or a cloud computing service center.
  • the relay server 180 can be a server, or a server cluster consisting of several servers, or a cloud computing service center.
  • the relay server 180 is used for the request and information between the relay server 120 and the originating client 140, the server 120 and the receiving client 160.
  • the server 120 is connected to the relay server 180 through a network, and the relay server 180 is connected to the originating client 140 and the receiving client 160 through the network.
  • the originating client 140 and the receiving client 160 may be electronic devices such as tablets, desktop computers, notebook computers, and smart home appliances.
  • the originating client 140 can create a web class on the server 120, and the receiving client 160 can listen to the web class created on the server 120.
  • FIG. 2 is a flowchart of a method for processing a network classroom fault according to an embodiment of the present application. This embodiment is mainly illustrated by applying the network classroom fault processing method to the server shown in FIG. 1A or 1B.
  • the network classroom troubleshooting method includes:
  • Step 202 Acquire a teaching request sent by the initiating client when teaching in the created online classroom, that is, obtaining a teaching request sent by the initiating client of the created online classroom when teaching in the online classroom;
  • Step 204 Detect whether there is teaching information corresponding to the network classroom.
  • Step 206 If the detection result is that there is no teaching information corresponding to the network classroom, determining that the network classroom is faulty, and sending the acquisition request of the teaching information to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request.
  • Step 208 Re-create the network classroom according to the teaching information that is initiated by the client.
  • the network classroom fault processing method obtains a teaching request sent by the initiating client when teaching in the created network classroom; and detects whether there is teaching information corresponding to the network classroom; if the detection result If there is no teaching information corresponding to the network classroom, it is determined that the network classroom is faulty, and the acquisition request of the teaching information is sent to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request; according to the teaching information initiated by the client.
  • FIG. 3 is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application. This embodiment is mainly illustrated by applying the network classroom fault processing method to the originating client of the network classroom shown in FIG. 1A or 1B.
  • the network classroom troubleshooting method includes:
  • Step 302 Send a teaching request for the created network classroom to the server, so that the server detects whether there is teaching information corresponding to the network classroom; if the detection result is non-existent and the network classroom pair The teaching information should determine the failure of the network classroom and send the request for obtaining the teaching information to the initiating client.
  • Step 304 Receive an acquisition request of the teaching information sent by the server.
  • Step 306 Automatically send the teaching information to the server according to the obtaining request, so that the server recreates the network classroom according to the teaching information that is initiated by the client.
  • the network classroom fault processing method sends a teaching request for the network classroom to the server; receives the acquisition request of the teaching information sent by the server; and automatically sends the teaching information to the server according to the obtaining request, so as to enable the server Re-create the network classroom according to the teaching information of the client-sponsored feedback; solve the problem that if the server fails during the teaching activity, the teaching information about the network classroom on the server will be lost all the time, which leads to the suspension of the teaching activity; Even if the server fails, the effect of the online classroom can be reconstructed in time without causing the suspension of teaching activities.
  • FIG. 4 is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application. This embodiment is mainly illustrated by applying the network classroom fault processing method to the receiving client of the network classroom shown in FIG. 1A or 1B.
  • the network classroom troubleshooting method includes:
  • Step 402 Send a listening request for the created network classroom to the server, so that the server determines whether the account corresponding to the receiving client is in the network classroom, and if the account corresponding to the receiving client is not in the network classroom, then Receiving the request of the client to re-login to the network classroom, the network classroom that needs to be re-logged in is that the server is re-created according to the teaching information acquired from the initiating client after the created network classroom fails;
  • Step 404 Receive a request to re-login to the network classroom.
  • Step 406 Automatically send a login request carrying the authorized login information to the server according to the request for re-login to the network classroom, so that the server authorizes the receiving client to log in to the network classroom according to the authorized login information.
  • the network classroom fault processing method sends a request for re-entering the network classroom to the server by receiving a request for re-entering the network classroom; and automatically sending the login information to the server according to the request to re-log into the network classroom,
  • the server is authorized to receive the client login network classroom according to the login information; and solves the problem that if the server fails during the teaching activity, the teaching information about the network classroom on the server is lost all at once, thereby causing the suspension of the teaching activity; Even if the server fails, it can rebuild the effect of the online classroom in time, and will not cause teaching. The learning activity was suspended.
  • FIG. 5A is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application. This embodiment is mainly illustrated by applying the network classroom fault processing method to the implementation environment shown in FIG. 1A.
  • the network classroom troubleshooting method includes:
  • This embodiment is exemplified by only one server in the implementation environment, which has a daemon process.
  • the daemon sends a restart signal to the server to restart the server.
  • the following steps are specifically performed:
  • step 501 the server receives a server restart signal.
  • the server has a daemon process.
  • the daemon can detect whether the local server works normally in real time or at regular intervals. When the daemon detects that the local server is not working properly, it sends a server restart signal to the server. Assuming that the server crashes during the running process, the daemon in the server sends a server restart signal to the server, and the server receives the server restart signal.
  • Step 502 The server restarts the local server according to the server restart signal.
  • the server fails, it needs to be restarted immediately to provide services for the originating client of the network classroom (referred to as: the originating client) and the receiving client of the web classroom (referred to as the receiving client).
  • Step 503 The initiating client sends a teaching request to the server for the created network classroom.
  • the originating client is the client that creates the web class on the server.
  • the server fails to work normally, the originating client does not know that the server is not working properly, so the originating client still sends a teaching request for the network classroom to the server according to the normal working process.
  • the teaching request in this embodiment may be any request related to the online classroom, such as lecture information, teaching statistics, and the like.
  • Step 504 The server acquires a teaching request sent by the initiating client when teaching in the created online classroom, that is, obtaining a teaching request sent by the initiating client of the created online classroom when teaching in the online classroom.
  • the teacher can send various types of teaching requests to the server through the initiating client, so that the server performs corresponding operations.
  • the teaching request may be a request for creating a network classroom (also referred to as a creation request), which may be a teaching process.
  • a request for asking a question to a student also referred to as a question request
  • a request for displaying teaching materials also referred to as a display request
  • the server may obtain a teaching request sent by the originating client of the created online classroom when teaching in the online classroom.
  • the server can obtain the teaching request when the teaching request or its retry request is sent.
  • Step 505 The server detects whether there is teaching information corresponding to the network classroom.
  • the request sent by the initiating client for creating the network classroom may carry the teaching information, and the teaching information mainly includes the identifier of the network classroom (ie, the class number), the identity information of the teacher (ie, the account of the originating client), The process and teaching materials of the online classroom.
  • the server can mainly determine whether there is teaching information corresponding to the network classroom by detecting whether the local classroom number of the online classroom currently exists.
  • the teacher (initiating the client) sends a message about the next page of the teaching-related PPT.
  • the server can detect whether the client that sent the message is a teacher (initiating the client), is there a class that is starting classes.
  • the server can also detect other information, such as what class is being spoken, PPT playback to the first few pages, and so on.
  • Step 506 If the detection result is that there is no teaching information corresponding to the network classroom, the server determines that the network classroom is faulty, and sends an acquisition request of the teaching information to the initiating client.
  • the server When the server detects that there is no teaching information corresponding to the network classroom, but the server receives the teaching request sent by the initiating client, it can determine that the network classroom corresponding to the teaching request is faulty, so the server needs to send the teaching information to the client. Get the request to have the server recreate the web class.
  • Step 507 The initiating client receives an acquisition request of the teaching information sent by the server.
  • Step 508 The initiating client automatically sends the teaching information to the server according to the obtaining request.
  • the teaching information includes the class number of the online class, the progress of the online class, and the downloading information of the teaching materials. For example: Class number 123456, PPT download address and page 8.
  • Step 509 The server receives the teaching information, and detects, according to the teaching information, whether the originating client has the right to create a network classroom.
  • the server detects whether the originating client has the right to create a network classroom according to the teaching information, and mainly detects whether the identity information of the teacher included in the teaching information has the authority to create a class in the database in the background.
  • Step 510 If the detection result is that the originating client has the right to create a network classroom, the server recreates the network classroom according to the teaching information that is initiated by the client.
  • the network class that was originally created does not exist on the server after the restart, when the server receives the teaching information, the network class needs to be re-created to provide services for the initiating client and the receiving client.
  • the step includes the following sub-steps:
  • the server creates an online classroom based on the identification of the online classroom in the teaching information.
  • the logo of the online classroom means that when the network classroom is first created on the server, the corresponding one is assigned a unique identifier for identifying the network classroom.
  • the server can create classes based on the identity of the online classroom.
  • the server caches the download address, so that the receiving client downloads the teaching material according to the download address.
  • the teaching material may be a text document, a PPT, and/or a teaching video, etc.
  • the server caches the download address of the text document, the PPT, and/or the teaching video, so that the receiving client downloads the teaching material according to the download address.
  • the server caches the progress of the presentation, so that the receiving client displays the teaching materials according to the progress of the exhibition.
  • the progress of the exhibition refers to the progress of the teaching materials, for example, the time points displayed on the first page and displayed.
  • the receiving client can display the teaching materials according to the progress of the presentation, that is, it can continue to be displayed from the place where the network classroom is interrupted when the server fails.
  • the server After the server re-creates the online classroom, the receiving client of the online classroom can listen to the class.
  • the specific steps are as follows:
  • Step 511 The receiving client sends a class request to the server for the created network class.
  • the request may be a request for the student to log in to the online classroom (also referred to as a login request), may be a request for asking a question to the teacher (also referred to as a request for a question), and may be a request to answer the question (also called a request) Answer request), or a request to prompt the server to receive the client online (also called a heartbeat request) and so on.
  • the request may be a request for the student to log in to the online classroom (also referred to as a login request), may be a request for asking a question to the teacher (also referred to as a request for a question), and may be a request to answer the question (also called a request) Answer request), or a request to prompt the server to receive the client online (also called a heartbeat request) and so on.
  • the online classroom is a network classroom that the server recreates based on the teaching information obtained from the originating client.
  • the network classroom is a server obtaining a teaching request sent by the initiating client for a network classroom; the server detects whether there is teaching information corresponding to the network classroom; if the detection result is that there is no teaching information corresponding to the network classroom, the server Initiate the client to send the teaching information, please Soliciting the client to feed back the teaching information; the server recreates the teaching information based on the feedback from the originating client.
  • step 512 the server acquires a listening request sent by the receiving client for the network classroom.
  • the server fails to work normally, the receiving client does not know that the server is not working properly, so the receiving client still sends a request for the network class to the server according to the normal working process.
  • the server receives the teaching request sent by the initiating client when teaching in the online classroom. Because the server has less time to restart and re-create the web-based classroom, the server can quickly receive requests from the client for the online classroom.
  • the online classroom that needs to be logged in again is that the server is re-created based on the teaching information obtained from the originating client after the failed network classroom has been created.
  • step 513 the server determines whether the account corresponding to the receiving client is in the network classroom.
  • the server mainly detects whether there is an account corresponding to the receiving client in the network classroom, that is, detects whether the receiving client is offline. In addition, the server may also detect whether the account corresponding to the receiving client has the qualification to listen to the network classroom, for example, whether the receiving client is authorized, or whether there is a login name corresponding to the receiving client in the network classroom.
  • Step 514 If the account corresponding to the receiving client is not in the network classroom, send a request for re-logging to the network classroom to the receiving client.
  • the server detects that the receiving client does not log in to the network classroom, and the server needs to send a request for re-logging to the network classroom to the receiving client. In other words, the receiving client sends the login information to log in to the network classroom.
  • Step 515 The receiving client receives a request to re-login to the network classroom.
  • Step 516 The receiving client automatically sends a login request carrying the authorized login information to the server according to the request for re-logging into the network classroom.
  • the authorized login information may include an account name and a login password of the account corresponding to the receiving client.
  • the login password can be sent to the student by the teacher (initiating the client) through other means, such as sending the course and sending it to the student via email. Since the student has logged in to the online classroom using the account name and login password before the server fails, the student caches the account name and login password. Therefore, when the server works normally, the student can directly use the cached account name and Log in to the online classroom instead of the student.
  • Step 517 The server authorizes the receiving client to log in to the network classroom according to the authorized login information.
  • the server After the server verifies the receiving client's account and the login password, the server authorizes the receiving client to log into the network classroom, and the receiving client can normally attend the class.
  • the server may send the download address of the teaching material and the progress of the teaching material to the receiving client.
  • the receiving client After receiving the download address and the progress of the display, the receiving client may download the teaching material according to the download address, display the teaching material according to the progress of the display, and receive the client. The end can continue to attend classes from where the online classroom is interrupted.
  • steps 501 and 502 can be processed in the manner of steps 501' and 502', and the process is as follows:
  • Step 501' the server receives a process restart signal corresponding to the network classroom.
  • the server has a daemon process.
  • the daemon can detect whether the process of the network classroom in the local server works normally in real time or at regular intervals. When the daemon detects that the process of the network classroom is not working properly, the process sends a restart to the server. signal. Assuming that the process of the network classroom has failed during the running process, the daemon in the server will send a process restart signal to the server, and the server will receive the server restart signal.
  • Step 502' the server restarts the process of the network classroom according to the process restart signal.
  • the process of the network classroom fails, it needs to be restarted immediately to provide services for the originating client of the network classroom (referred to as the originating client) and the receiving client of the web classroom (referred to as the receiving client).
  • the network classroom fault processing method obtains a teaching request sent by the initiating client when teaching in the created network classroom; and detects whether there is teaching information corresponding to the network classroom; if the detection result If there is no teaching information corresponding to the network classroom, it is determined that the network classroom is faulty, and the acquisition request of the teaching information is sent to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request; according to the teaching information initiated by the client.
  • FIG. 6 is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application.
  • This embodiment mainly applies the network classroom fault processing method to the method shown in FIG. 1B.
  • the network classroom troubleshooting method includes:
  • This embodiment is exemplified by the existence of multiple servers in the implementation environment.
  • at least one relay server is added in the implementation environment, and the transit server is used to forward information between the server, the originating client, and the receiving client.
  • the originating client has opened the network classroom in the original server, when the original server fails in the process of initiating the client to perform the network teaching, the following steps are specifically performed:
  • Step 601 The initiating client sends a teaching request to the server for the created network classroom
  • the originating client is the client that creates the web class on the server.
  • the server fails to work normally, the originating client does not know that the server is not working properly, so the originating client still sends a teaching request for the created web classroom to the server according to the normal working process.
  • the teaching request in this embodiment may be any request related to the online classroom, such as lecture information, teaching statistics, and the like.
  • Step 602 The relay server forwards, to the server, an instruction request for the network classroom sent by the originating client to the server;
  • the primary function of the transit server is to forward requests to the relevant servers according to specific services and requirements.
  • the function of the relay server is to forward the request, regardless of which relay server is connected. For the same network classroom, the teaching request and the lecture request of the network education are always sent to the server running the network classroom, that is, the embodiment is created. Network classroom server. That is, if the network class is running on a server, the relay server always forwards various requests for the network class to the server.
  • the relay server when the original server fails, the relay server also needs to redirect all subsequent teaching requests and lecture requests related to the network classroom to another server. For example, as shown in FIG. 1B, if the server 120a fails, the relay server will redirect the teaching request for the network classroom originally running on the server 120a to the server 120b. This embodiment is exemplified by the server 120b shown in FIG. 1B as a server redirected by the relay server.
  • the relay server can send the teaching request and the lecture request for the same network classroom to the same server by means of consistent hashing.
  • Consistent hashing is an algorithm for assigning requests. The main purpose is to realize that information about the same class number can be allocated all the time.
  • all requests for class number 1 including the teacher's teaching request and the student's class request
  • all requests for class number 2 including the teacher's teaching request and the student's class request
  • server B When the transit server detects that the original server has failed, it needs to re-consist the hash and reassign the received request to another server.
  • Step 603 The server receives a teaching request sent by the initiating client forwarded by the relay server when teaching in the created online classroom.
  • the teaching request is forwarded by the relay server after being redirected to the local server after the original server of the network classroom fails.
  • the server described in this embodiment is different from the original server that has failed, that is, a server other than the original server.
  • step 604 the server detects whether there is teaching information corresponding to the network classroom.
  • Step 605 If the detection result is that there is no teaching information corresponding to the network classroom, the server determines that the network classroom is faulty, and sends an acquisition request of the teaching information to the initiating client.
  • the information transmitted between the server and the originating client or the receiving client is forwarded through the transit server. This is different from the case where there is only one server in the embodiment shown in Fig. 5A.
  • Step 606 The initiating client receives an acquisition request of the teaching information sent by the server.
  • Step 607 The initiating client automatically sends the teaching information to the server according to the obtaining request.
  • Step 608 The server receives the teaching information, and detects, according to the teaching information, whether the originating client has the right to create a network classroom.
  • Step 609 If the detection result is that the originating client has the right to create a network classroom, the server recreates the network classroom according to the teaching information that is initiated by the client.
  • this step includes the following substeps:
  • the server creates an online classroom based on the logo of the online classroom in the teaching information.
  • the server caches the download address, so that the receiving client downloads the teaching material according to the download address.
  • the server caches the progress of the presentation, so that the receiving client displays the teaching materials according to the progress of the exhibition.
  • the server After the server re-creates the online classroom, the receiving client of the online classroom can listen to the class.
  • the specific steps are as follows:
  • Step 610 The receiving client sends a course request to the server for the created network class.
  • the online classroom is a network classroom that the server recreates based on the teaching information obtained from the originating client.
  • Step 611 The relay server forwards the receiving request sent by the receiving client to the server for the network classroom to the server.
  • This step is similar to step 602 and will not be described here.
  • Step 612 The server receives the lecture request sent by the receiving client forwarded by the relay server for the network classroom.
  • the attendance request is that the relay server forwards the request to the network classroom after the failure of the original server in the network classroom, and then forwards it to the local server.
  • Step 613 The server determines whether the account corresponding to the receiving client is in the network classroom.
  • Step 614 If the account corresponding to the receiving client is not in the network classroom, send a request for re-logging to the network classroom to the receiving client.
  • the online classroom that needs to be logged in again is that the server is re-created based on the teaching information obtained from the originating client after the failed network classroom has been created.
  • Step 615 The receiving client receives a request to re-login to the network classroom.
  • Step 616 The receiving client automatically sends the login information to the server according to the request to re-log into the network classroom.
  • the login information includes receiving the client's account number, login password, and the like.
  • Step 617 The server authorizes the receiving client to log in to the network classroom according to the authorized login information.
  • the server After the server verifies the receiving client's account and the login password, the server authorizes the receiving client to log into the network classroom, and the receiving client can normally attend the class.
  • the server may send the download address of the teaching material and the progress of the teaching material to the receiving client.
  • the receiving client After receiving the download address and the progress of the display, the receiving client may download the teaching material according to the download address, display the teaching material according to the progress of the display, and receive the client. The end can continue to attend classes from where the online classroom is interrupted.
  • steps 604 to 617 are similar to the steps 503 to 517 in the embodiment shown in FIG. 5A, and are not described herein again. For details, refer to the content in the embodiment shown in FIG. 5A.
  • the network classroom fault processing method obtains a teaching request sent by the initiating client when teaching in the created network classroom; and detects whether there is teaching information corresponding to the network classroom; if the detection result In order not to have the teaching information corresponding to the network classroom, it is determined that the network classroom is faulty, and the acquisition request of the teaching information is sent to the initiating client, so that the originating client is reversed.
  • FIG. 7 is a schematic structural diagram of a network classroom fault processing apparatus according to an embodiment of the present application.
  • the network classroom fault processing device can be implemented as all or part of the server by software, hardware or a combination of both.
  • the network classroom fault processing apparatus includes: a first obtaining module 720, a first detecting module 740, a first sending module 760, and a classroom reconstruction module 780;
  • the first obtaining module 720 is configured to acquire a teaching request sent by the initiating client when teaching in the created online classroom;
  • the first detecting module 740 is configured to detect whether there is teaching information corresponding to the network classroom;
  • the first sending module 760 is configured to: if the detection result detected by the first detecting module 740 is that there is no teaching information corresponding to the network classroom, determine that the network classroom is faulty, and send an acquisition request of the teaching information to the initiating client, so that The initiating client automatically feeds back the teaching information according to the obtaining request;
  • the classroom reconstruction module 780 is configured to recreate the network classroom according to the teaching information that initiates the feedback from the client.
  • the network classroom fault processing apparatus obtains a teaching request sent by the initiating client when teaching in the created online classroom; and detects whether there is teaching information corresponding to the network classroom; if the detection result If there is no teaching information corresponding to the network classroom, it is determined that the network classroom is faulty, and the acquisition request of the teaching information is sent to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request; according to the teaching information initiated by the client.
  • FIG. 8 is a schematic structural diagram of a network classroom fault processing apparatus according to another embodiment of the present application.
  • the network classroom fault processing device can be implemented as all or part of the originating client of the network classroom by software, hardware or a combination of both.
  • the network classroom fault processing apparatus includes: a third sending module 820, a first receiving module 840, and a fourth sending module 860;
  • the third sending module 820 is configured to send a teaching request for the created network classroom to the server, so that the server detects whether there is teaching information corresponding to the network classroom; if the detection result is that there is no teaching information corresponding to the network classroom, Determining that the network classroom has failed, and sending the acquisition request of the teaching information to the initiating client;
  • the first receiving module 840 is configured to receive an acquisition request of the teaching information sent by the server;
  • the fourth sending module 860 is configured to automatically send the teaching information to the server according to the obtaining request, so that the server recreates the network classroom according to the teaching information that is initiated by the client.
  • the network classroom fault processing apparatus sends a teaching request for the network classroom to the server; receives the acquisition request of the teaching information sent by the server; and automatically sends the teaching information to the server according to the obtaining request, so as to enable the server Re-create the network classroom according to the teaching information of the client-sponsored feedback; solve the problem that if the server fails during the teaching activity, the teaching information about the network classroom on the server will be lost all the time, which leads to the suspension of the teaching activity; Even if the server fails, the effect of the online classroom can be reconstructed in time without causing the suspension of teaching activities.
  • FIG. 9 is a schematic structural diagram of a network classroom fault processing apparatus according to another embodiment of the present application.
  • the network classroom fault processing device can be implemented as all or part of the receiving client of the network classroom through software, hardware or a combination of both.
  • the network classroom fault processing apparatus includes: a fifth sending module 920, a second receiving module 940, and a sixth sending module 960;
  • the fifth sending module 920 is configured to send a listening request for the created network classroom to the server, so that the server detects whether there is authorized listening information corresponding to the listening request; if the detection result is that there is no authorized listening information corresponding to the listening request Sending a request to re-login to the network classroom to the receiving client, and the network classroom that needs to be re-logged in is the server re-created according to the teaching information acquired from the initiating client after the network classroom fails to be created;
  • a second receiving module 940 configured to receive a request to re-login to the network classroom
  • the sixth sending module 960 is configured to automatically send the login information to the server according to the request for re-login to the network classroom, so that the server authorizes the receiving client to log in to the network classroom according to the login information.
  • the network classroom fault processing apparatus sends a request for recourse to the network classroom to the server; receives a request to re-log into the network classroom; and automatically sends the login information to the server according to the request to re-log into the network classroom,
  • the server is authorized to receive the client login network classroom according to the login information; and solves the problem that if the server fails during the teaching activity, the teaching information about the network classroom on the server is lost all at once, thereby causing the suspension of the teaching activity; Even if the server fails, the effect of the online classroom can be reconstructed in time without causing the suspension of teaching activities.
  • FIG. 10 is a schematic structural diagram of a network classroom fault processing system provided by an embodiment of the present application.
  • the network classroom fault processing system includes a server 700, an initiating client 800, and a receiving client 900.
  • the server 700, the initiating client 800, and the receiving client 900 are interconnected through a network, as follows:
  • the server 700 includes: a first obtaining module 720, a first detecting module 740, a first sending module 760, and a classroom rebuilding module 780;
  • the first obtaining module 720 is configured to acquire a teaching request sent by the initiating client when teaching in the created online classroom;
  • the first detecting module 740 is configured to detect whether there is teaching information corresponding to the network classroom;
  • the first sending module 760 is configured to: if the detection result is that there is no teaching information corresponding to the network classroom, determine that the network classroom is faulty, and send a request for acquiring the teaching information to the initiating client, so that the initiating client automatically feeds back according to the obtaining request. Teaching information;
  • the classroom reconstruction module 780 is configured to recreate the network classroom according to the teaching information that initiates the feedback from the client.
  • the first obtaining module 720 includes:
  • the signal receiving unit 721 is configured to receive a server restart signal, where the server restart signal is sent when the daemon detects that the local server is not working normally;
  • the server restarting unit 722 is configured to restart the local server according to the server restart signal
  • the request receiving unit 723 is configured to: after the restarting the local server, receive a teaching request sent by the initiating client when teaching in the network classroom; or
  • the signal receiving unit 721 is configured to receive a process restart signal corresponding to the network classroom, where the process restart signal is sent when the daemon detects that the process of the network classroom is not working normally;
  • the server restarting unit 722 is configured to restart the process of the network classroom according to the process restart signal
  • the request receiving unit 723 is configured to, after restarting the process of the network classroom, receive a teaching request sent by the initiating client when teaching in the network classroom.
  • the first obtaining module 720 is further configured to: when the local server is a standby server, and the local server and the initiating client are connected through the transit server, the initiating client forwarded by the receiving server is taught in the created online classroom.
  • the teaching request is sent, the teaching request is forwarded by the relay server after being redirected to the local server after the original server of the network classroom fails.
  • the server 700 further includes:
  • the second obtaining module 790 is configured to acquire a listening request sent by the receiving client for the network classroom;
  • the second detecting module 791 is configured to detect whether there is authorized listening information corresponding to the listening request;
  • the second sending module 792 is configured to: if the detection result is that the authorized lecture information corresponding to the lecture request does not exist, send a request for re-logging to the network classroom to the receiving client, so that the receiving client receives the request to re-log into the network classroom Send login information to the server;
  • the login authorization module 793 is configured to authorize the receiving client to log in to the network classroom according to the login information.
  • the second obtaining module 790 is further configured to: when the local server is a standby server, and the local server and the originating client are connected by the transit server, receive the listening request sent by the receiving client for the network classroom, and listen to the class.
  • the request is that the relay server forwards the lecture request of the network classroom to the local server after the failure of the original server in the network classroom.
  • the server 700 further includes:
  • the permission detecting module 770 is configured to detect, according to the teaching information, whether the originating client has the right to create a network classroom;
  • the classroom reconstruction module 780 is further configured to perform the step of re-creating the network classroom according to the teaching information initiated by the client when the detection result is that the originating client has the right to create the network classroom.
  • the classroom reconstruction module 780 includes:
  • the classroom creation unit 781 is configured to create a network classroom according to the identifier of the network classroom in the teaching information
  • the address buffer unit 782 is configured to: if the teaching information includes a download address of the teaching material, the cache Download the address so that the receiving client downloads the teaching materials according to the download address;
  • the progress buffer unit 783 is configured to cache the display progress if the teaching information includes the progress of the presentation of the teaching materials, so that the receiving client displays the teaching materials according to the progress of the display.
  • the initiating client 800 includes: a third sending module 820, a first receiving module 840, and a fourth sending module 860;
  • the third sending module 820 is configured to send a teaching request for the created network classroom to the server, so that the server detects whether there is teaching information corresponding to the network classroom; if the detection result is that there is no teaching information corresponding to the network classroom, Determining that the network classroom has failed, and sending the acquisition request of the teaching information to the initiating client;
  • the first receiving module 840 is configured to receive an acquisition request of the teaching information sent by the server;
  • the fourth sending module 860 is configured to automatically send the teaching information to the server according to the obtaining request, so that the server recreates the network classroom according to the teaching information that is initiated by the client.
  • the receiving client 900 includes: a fifth sending module 920, a second receiving module 940, and a sixth sending module 960;
  • the fifth sending module 920 is configured to send a listening request for the created network classroom to the server, so that the server detects whether there is authorized listening information corresponding to the listening request; if the detection result is that there is no authorized listening information corresponding to the listening request Sending a request to re-login to the network classroom to the receiving client, and the network classroom that needs to be re-logged in is the server re-created according to the teaching information acquired from the initiating client after the network classroom fails to be created;
  • a second receiving module 940 configured to receive a request to re-login to the network classroom
  • the sixth sending module 960 is configured to automatically send the login information to the server according to the request for re-login to the network classroom, so that the server authorizes the receiving client to log in to the network classroom according to the login information.
  • the network classroom fault processing system obtains a teaching request sent by the initiating client when teaching in the created network classroom; and detects whether there is teaching information corresponding to the network classroom; if the detection result If there is no teaching information corresponding to the network classroom, it is determined that the network classroom is faulty, and the acquisition request of the teaching information is sent to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request; according to the teaching information initiated by the client.
  • FIG. 11 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • the server includes a processor 1010, a transceiver 1020, and a memory 1030, and the transceiver 1020 and the memory 1030 are respectively coupled to the processor 1010, wherein:
  • the transceiver 1020 is configured to acquire a teaching request sent by the initiating client of the created network classroom when teaching in the network classroom;
  • the processor 1010 is configured to detect whether there is teaching information corresponding to the network classroom in the memory 1030. If the detection result is that there is no teaching information corresponding to the network classroom, determining that the network classroom is faulty, triggering the transceiver 1020 to send to the initiating client. A request for obtaining teaching information, so that the initiating client automatically feeds back the teaching information according to the obtaining request;
  • the processor 1010 is further configured to recreate the network classroom according to the teaching information that initiates the feedback of the client.
  • the network classroom fault processing system obtains a teaching request sent by the originating client of the created web classroom in the online classroom; and detects whether there is teaching information corresponding to the network classroom; If the detection result is that there is no teaching information corresponding to the network classroom, it is determined that the network classroom is faulty, and the acquisition request of the teaching information is sent to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request; according to the initiating client feedback
  • the teaching information re-creates the network classroom; solves the problem that if the server fails during the teaching activity, the teaching information about the network classroom on the server will be lost all the time, which leads to the suspension of the teaching activity; even if the server fails It can also rebuild the effect of the online classroom in time, and will not cause the suspension of teaching activities.
  • the transceiver 1020 is configured to receive a server restart signal, where the server restart signal is sent when the daemon detects that the local server is not working normally;
  • the processor 1010 is configured to restart the local server according to the server restart signal. After restarting the local server, the trigger transceiver 1020 receives the teaching request sent by the initiating client when teaching in the network classroom; or
  • the transceiver 1020 is configured to receive a process restart signal corresponding to the network classroom, where the process restart signal is sent when the daemon detects that the process of the network classroom is not working normally;
  • the processor 1010 is configured to restart the process of the network classroom according to the process restart signal. After restarting the process of the network classroom, the trigger transceiver 1020 receives the originating client in the network classroom. A teaching request sent while teaching.
  • the transceiver 1020 is configured to receive the initiating client forwarded by the transit server in the created network classroom.
  • the teaching request sent during teaching, the teaching request is forwarded by the relay server after the original server of the network classroom fails, and redirected to the local server.
  • the transceiver 1020 is further configured to acquire a listening request sent by the receiving client for the network classroom;
  • the processor 1010 is configured to determine whether the account corresponding to the receiving client is in the network classroom; if the account corresponding to the receiving client is not in the network classroom, the triggering transceiver 1020 sends a request for re-logging to the network classroom to the receiving client, so that After receiving the request for re-logging into the network classroom, the receiving client sends a login request carrying the authorized login information to the server;
  • the processor 1010 is further configured to authorize the receiving client to log in to the network classroom according to the authorized login information.
  • the transceiver 1020 is configured to receive the receiving request sent by the receiving client forwarded by the transit server for the network classroom.
  • the attendance request is that the relay server forwards the lecture request of the network classroom to the local server after the failure of the original server in the network classroom.
  • the processor 1010 is further configured to: according to the teaching information, whether the originating client has the right to create a network classroom; if the detection result is that the initiating client has the right to create a network classroom, performing the teaching information according to the initiated client feedback. Steps to recreate the web class.
  • the processor 1010 is configured to create a network classroom according to the identifier of the network classroom in the teaching information; if the teaching information includes a download address of the teaching material, the memory 1030 caches the download address, so that the receiving client downloads the teaching according to the download address. Material; if the teaching information includes the progress of the presentation of the teaching materials, the memory 1030 caches the progress of the presentation so that the receiving client displays the teaching materials according to the progress of the presentation.
  • FIG. 12 is a schematic structural diagram of an originating client provided by an embodiment of the present application.
  • the originating client includes a transceiver 1110, a memory 1120, and a processor 1130.
  • the transceiver 1110 and the memory 1120 are respectively connected to the processor 1130, where:
  • the transceiver 1110 is configured to send a teaching request for the created network classroom to the server, so that the server detects whether there is teaching information corresponding to the network classroom, and if the detection result is that there is no teaching information corresponding to the network classroom, determining the network classroom failure, sending teaching information to the originating client Acquisition request;
  • the transceiver 1110 is further configured to receive an acquisition request of the teaching information sent by the server;
  • the processor 1130 is configured to automatically trigger the transceiver 1110 to send the teaching information stored in the memory 1120 to the server according to the acquisition request, so that the server recreates the network classroom according to the teaching information that initiates the client feedback.
  • FIG. 13 is a schematic structural diagram of a receiving client provided by an embodiment of the present application.
  • the receiving client includes a transceiver 1210, a memory 1220, and a processor 1230, and the transceiver 1210 is coupled to the memory 1220, wherein:
  • the transceiver 1210 is configured to send a listening request for the created network classroom to the server, so that the server determines whether the account corresponding to the receiving client is in the network classroom, and if the account corresponding to the receiving client is not in the network classroom, receiving the request
  • the client sends a request to re-login to the network classroom, and the network classroom that needs to be re-logged in is that the server re-creates according to the teaching information acquired from the initiating client after the created network classroom fails;
  • the transceiver 1210 is further configured to receive a request to re-login to the network classroom;
  • the processor 1230 is configured to automatically trigger the transceiver 1210 to send a login request carrying the authorized login information in the memory 1220 to the server according to the request for re-login to the network classroom, so that the server authorizes the receiving client to log in to the network classroom according to the authorized login information.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Electrically Operated Instructional Devices (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to the technical field of computers. Disclosed are an online class fault handling method, device and system, the method comprising: acquiring a teaching request transmitted by an initiating client of a created online class during the teaching in the online class; detecting whether the teaching information corresponding to the online class exists; if not, then determining that the online class has a fault, and transmitting an acquisition request for the teaching information to the initiating client, such that the initiating client automatically feeds back the teaching information according to the acquisition request; and re-creating the online class according to the teaching information fed back by the initiating client. The present invention solves the problems that if the server fails in the teaching activity, the teaching information related to the online class on a server will be instantly and completely lost, and the teaching activity will be interrupted. The present invention ensures that the online class can be re-created in time without interrupting the teaching activity even if the server has a fault.

Description

网络课堂故障处理方法、装置及系统Network classroom fault processing method, device and system
本申请要求于2014年6月4日提交中国专利局、申请号为201410244864.8、发明名称为“网络课堂故障处理方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201410244864.8, entitled "Network Classroom Troubleshooting Method, Apparatus and System", filed on June 4, 2014, the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本申请实施例涉及计算机技术领域,特别涉及一种网络课堂故障处理方法、装置及系统。The embodiments of the present invention relate to the field of computer technologies, and in particular, to a network classroom fault processing method, apparatus, and system.
背景技术Background technique
随着计算机技术的迅速发展,传统教学模式已经无法满足信息爆炸和信息广泛传播的需要,因此网络教学应运而生。网络教学是将计算机网络作为主要教学手段的教学方式,是远程教学的一种重要形式,也是利用计算机设备和互联网技术对学生实行信息化教育的教学模式。老师可以通过发起客户端(老师使用的客户端)在网络中建立网络课堂来进行网络教学,学生则可以通过接收客户端(学生使用的客户端)加入网络课堂来听课。With the rapid development of computer technology, the traditional teaching mode can not meet the needs of information explosion and information dissemination, so network teaching came into being. Network teaching is a teaching method that uses computer network as the main teaching method. It is an important form of distance learning. It is also a teaching mode that uses computer equipment and Internet technology to implement information education for students. The teacher can establish a web-based classroom on the network by initiating the client (the client used by the teacher) to conduct online teaching, and the student can attend the online classroom by receiving the client (the client used by the student).
网络教学是利用已经普及的电脑和宽带网络等硬件环境,依托网络教学平台,实现异地、同时、实时、互动教学和学习的新的教学模式,老师可以在网络中开设自己的网络课堂,学生则可以通过登录开设好的网络课堂就可以在线听课。老师可以通过发起客户端向服务器发送各种类型的教学请求,以使服务器执行相应的操作,如创建教学课堂或者显示教学资料。通常来讲,相关的网络课堂创建方法包括:发起客户端向服务器发送用于创建网络课堂的创建请求,创建请求中可以携带有创建网络课堂所需的教学信息,服务器根据接收到的创建请求创建网络课堂;接收客户端向服务器发送用于登录该网络课堂的登录请求,服务器则会对登录请求中的授权听课信息进行验证,验证通过后,接收客户端登录该网络课堂,正常收听该教学内容。Network teaching is to use the already popular computer and broadband network hardware environment, relying on the network teaching platform to achieve a new teaching mode of remote, simultaneous, real-time, interactive teaching and learning. Teachers can open their own online classrooms in the network, while students You can listen to the class online by logging in to a good online class. The teacher can send various types of teaching requests to the server through the initiating client, so that the server can perform corresponding operations, such as creating a teaching class or displaying teaching materials. Generally speaking, the related network classroom creation method includes: the initiating client sends a creation request for creating a network classroom to the server, and the creation request may carry the teaching information required for creating the network classroom, and the server creates the creation request according to the received request. The network classroom; the receiving client sends a login request for logging in to the network classroom, and the server verifies the authorized lecture information in the login request. After the verification is passed, the receiving client logs in to the online classroom and listens to the teaching content normally. .
发明人在实现本申请实施例的过程中,发现背景技术中至少存在以下缺陷:In the process of implementing the embodiments of the present application, the inventors found that at least the following defects exist in the background art:
在教学活动过程中,若服务器发生故障,经常会导致服务器上有关该网络 课堂的教学信息会瞬间全部丢失,从而导致教学活动中止。In the course of teaching activities, if the server fails, it often leads to the network on the server. The teaching information in the classroom will be lost in an instant, which will lead to the suspension of teaching activities.
发明内容Summary of the invention
为了解决在教学活动过程中,若服务器发生故障,会导致服务器上有关该网络课堂的教学信息瞬间全部丢失,从而导致教学活动中止的问题,本申请实施例提供了一种网络课堂故障处理方法、装置及系统。所述技术方案如下:In the process of the teaching activity, if the server is faulty, the teaching information about the network classroom on the server is lost all the time, which leads to the suspension of the teaching activity. The embodiment of the present application provides a network classroom fault processing method. Devices and systems. The technical solution is as follows:
第一方面,提供了一种网络课堂故障处理方法,所述方法包括:In a first aspect, a method for processing a network classroom fault is provided, and the method includes:
获取已创建的网络课堂的发起客户端在所述网络课堂中进行教学时发送的教学请求;Obtaining a teaching request sent by an originating client of the created web classroom when teaching in the online classroom;
检测是否存在与所述网络课堂对应的教学信息;Detecting whether there is teaching information corresponding to the network classroom;
若检测结果为不存在与所述网络课堂对应的教学信息,则确定所述网络课堂发生故障,向所述发起客户端发送所述教学信息的获取请求,以使所述发起客户端根据所述获取请求自动反馈所述教学信息;If the detection result is that there is no teaching information corresponding to the network classroom, determining that the network classroom is faulty, and sending the acquisition request of the teaching information to the initiating client, so that the initiating client according to the Obtaining a request to automatically feed back the teaching information;
根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂。Re-creating the network classroom according to the teaching information that is initiated by the client.
优选地,所述获取已创建的网络课堂的发起客户端在所述网络课堂中进行教学时发送的教学请求,包括:Preferably, the obtaining the teaching request sent by the initiating client of the created web-based classroom when teaching in the online classroom comprises:
接收服务器重启信号,所述服务器重启信号是守护进程检测到所述本端服务器未正常工作时发送的;根据所述服务器重启信号对所述本端服务器进行重启;在对所述本端服务器进行重启之后,接收所述发起客户端在所述网络课堂中进行教学时发送的教学请求,或者,Receiving a server restart signal, where the server restart signal is sent when the local server detects that the local server is not working normally; restarting the local server according to the server restart signal; performing the local server After restarting, receiving a teaching request sent by the initiating client when teaching in the online classroom, or
接收对应所述网络课堂的进程重启信号,所述进程重启信号是守护进程检测到所述网络课堂的进程未正常工作时发送的,根据所述进程重启信号对所述网络课堂的进程进行重启,在对所述网络课堂的进程进行重启之后,接收所述发起客户端在所述网络课堂中进行教学时发送的教学请求。Receiving a process restart signal corresponding to the network classroom, where the process restart signal is sent when the daemon detects that the process of the network classroom is not working normally, and restarts the process of the network classroom according to the process restart signal. After restarting the process of the network classroom, receiving a teaching request sent by the initiating client when teaching in the network classroom.
优选地,所述获取已创建的网络课堂的发起客户端在所述网络课堂中进行教学时发送的教学请求,包括:Preferably, the obtaining the teaching request sent by the initiating client of the created web-based classroom when teaching in the online classroom comprises:
在本端服务器为备用服务器,且所述本端服务器与所述发起客户端之间通过中转服务器相连时,接收所述中转服务器转发的所述发起客户端在已创建的网络课堂中进行教学时发送的教学请求,所述教学请求是所述中转服务器在所述网络课堂的原属服务器发生故障后,重定向至所述本端服务器而转发的。When the local server is a standby server, and the local server is connected to the originating client through the transit server, the initiating client forwarded by the transit server is used to teach in the created online classroom. The teaching request is sent, and the teaching request is forwarded by the relay server after being redirected to the local server after the original server of the network classroom fails.
优选地,所述方法,还包括: Preferably, the method further includes:
获取接收客户端针对所述网络课堂发送的听课请求;Obtaining a course request sent by the receiving client for the network class;
确定所述接收客户端对应的账户是否在所述网络课堂中;Determining whether the account corresponding to the receiving client is in the network classroom;
若所述接收客户端对应的账户不在所述网络课堂中,则向所述接收客户端发送重新登录所述网络课堂的请求,以使所述接收客户端接收到所述重新登录所述网络课堂的请求之后向所述服务器发送携带有授权登录信息的登录请求;Sending, to the receiving client, a request to re-login to the network classroom, if the account corresponding to the receiving client is not in the network classroom, so that the receiving client receives the re-login to the online classroom Sending a login request carrying authorized login information to the server after the request;
根据所述授权登录信息授权所述接收客户端登录所述网络课堂。Authorizing the receiving client to log in to the network classroom according to the authorized login information.
优选地,所述获取接收客户端针对所述网络课堂发送的听课请求,包括:Preferably, the obtaining and receiving the request for the lecture sent by the client for the network classroom comprises:
在本端服务器为备用服务器,且所述本端服务器与所述接收客户端之间通过中转服务器相连时,接收所述中转服务器转发的所述接收客户端针对所述网络课堂发送的听课请求,所述听课请求是所述中转服务器在所述网络课堂的原属服务器发生故障后,将所述网络课堂的听课请求重定向至所述本端服务器后转发的。When the local server is the standby server, and the local server is connected to the receiving client through the transit server, receiving the listening request sent by the receiving client for the network classroom, The listening request is that the relay server forwards the listening request of the network classroom to the local server after the failure of the original server of the network classroom.
优选地,所述根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂之前,还包括:Preferably, before the re-creating the network class according to the teaching information that is initiated by the initiating client, the method further includes:
根据所述教学信息检测所述发起客户端是否具有创建所述网络课堂的权限;Detecting, according to the teaching information, whether the originating client has the right to create the network classroom;
若检测结果为所述发起客户端具有创建所述网络课堂的权限,则执行所述根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂的步骤。If the detection result is that the originating client has the right to create the network classroom, performing the step of re-creating the network classroom according to the teaching information fed back by the initiating client.
优选地,所述根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂,包括:Preferably, the re-creating the network classroom according to the teaching information fed back by the initiating client includes:
根据所述教学信息中所述网络课堂的标识创建所述网络课堂;Creating the network classroom according to the identifier of the network classroom in the teaching information;
若所述教学信息中包括教学教材的下载地址,则缓存所述下载地址,以使所述接收客户端根据所述下载地址下载所述教学材料;If the teaching information includes a download address of the teaching material, the download address is cached, so that the receiving client downloads the teaching material according to the download address;
若所述教学信息中包括有教学材料的展示进度,则缓存所述展示进度,以使所述接收客户端根据所述展示进度展示所述教学材料。If the teaching information includes an exhibition progress of the teaching material, the display progress is cached, so that the receiving client displays the teaching material according to the display progress.
第二方面,提供了一种网络课堂故障处理方法,用于在已创建的网络课堂进行教学的发起客户端中,所述方法包括:In a second aspect, a method for processing a network classroom fault is provided for an initiating client for teaching in an created web classroom, the method comprising:
向服务器发送针对所述已创建的网络课堂的教学请求,以使所述服务器检测是否存在与所述网络课堂对应的教学信息,若检测结果为不存在与所述网络课堂对应的所述教学信息,则确定所述网络课堂发生故障,向所述发起客户端发送所述教学信息的获取请求; Sending a teaching request for the created network classroom to the server, so that the server detects whether there is teaching information corresponding to the network class, and if the detection result is that the teaching information corresponding to the network class does not exist Determining that the network classroom has failed, and sending the acquisition request of the teaching information to the originating client;
接收所述服务器发送的所述教学信息的获取请求;Receiving an acquisition request of the teaching information sent by the server;
根据所述获取请求自动向所述服务器发送所述教学信息,以使所述服务器根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂。And automatically sending the teaching information to the server according to the obtaining request, so that the server re-creates the network classroom according to the teaching information fed back by the initiating client.
第三方面,提供了一种网络课堂故障处理方法,用于在已创建的网络课堂进行听课的接收客户端中,所述方法包括:The third aspect provides a network classroom fault processing method, which is used for receiving a client in a network classroom that has been created, and the method includes:
向服务器发送针对所述已创建的网络课堂的听课请求,以使所述服务器确定所述接收客户端对应的账户是否在所述网络课堂中,若所述接收客户端对应的账户不在所述网络课堂中,则向所述接收客户端发送重新登录所述网络课堂的请求,需要重新登录的网络课堂是所述服务器在所述已创建的网络课堂发生故障后,根据从发起客户端获取的教学信息重新创建的;Sending a course request for the created network class to the server, so that the server determines whether the account corresponding to the receiving client is in the network class, if the account corresponding to the receiving client is not in the network In the classroom, the request to re-login to the network classroom is sent to the receiving client, and the network classroom that needs to be re-logged in is the teaching obtained by the server after the fault occurs in the created network classroom. Information recreated;
接收所述重新登录网络课堂的请求;Receiving the request to re-login to the network classroom;
根据所述重新登录网络课堂的请求自动向所述服务器发送携带有授权登录信息的登录请求,以使所述服务器根据所述授权登录信息授权所述接收客户端登录所述网络课堂。And automatically sending, to the server, a login request carrying authorized login information according to the request for re-login to the network classroom, so that the server authorizes the receiving client to log in to the network classroom according to the authorized login information.
第四方面,提供了一种网络课堂故障处理装置,所述装置包括:In a fourth aspect, a network classroom fault processing apparatus is provided, the apparatus comprising:
第一获取模块,用于获取已创建的网络课堂的发起客户端在所述网络课堂中进行教学时发送的教学请求;a first obtaining module, configured to acquire a teaching request sent by an originating client of the created web classroom when teaching in the online classroom;
第一检测模块,用于检测是否存在与所述网络课堂对应的教学信息;a first detecting module, configured to detect whether there is teaching information corresponding to the network classroom;
第一发送模块,用于若检测结果为不存在与所述网络课堂对应的所述教学信息,则确定所述网络课堂发生故障,向所述发起客户端发送所述教学信息的获取请求,以使所述发起客户端根据所述获取请求自动反馈所述教学信息;a first sending module, configured to: if the detection result is that the teaching information corresponding to the network classroom does not exist, determine that the network classroom is faulty, and send the acquisition request of the teaching information to the initiating client, And causing the initiating client to automatically feed back the teaching information according to the obtaining request;
课堂重建模块,用于根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂。a classroom reconstruction module, configured to recreate the network classroom according to the teaching information that is initiated by the client.
优选地,所述第一获取模块,包括:Preferably, the first acquiring module includes:
信号接收单元,用于接收服务器重启信号,所述服务器重启信号是守护进程检测到所述本端服务器未正常工作时发送的;a signal receiving unit, configured to receive a server restart signal, where the server restart signal is sent when the daemon detects that the local server is not working normally;
服务器重启单元,用于根据所述服务器重启信号对所述本端服务器进行重启;a server restarting unit, configured to restart the local server according to the server restart signal;
请求接收单元,用于在对所述本端服务器进行重启之后,接收所述发起客户端在所述网络课堂中进行教学时发送的教学请求;或者,a request receiving unit, configured to receive, after restarting the local server, a teaching request sent by the initiating client when teaching in the network classroom; or
信号接收单元,用于接收对应所述网络课堂的进程重启信号,所述进程重 启信号是守护进程检测到所述网络课堂的进程未正常工作时发送的;a signal receiving unit, configured to receive a process restart signal corresponding to the network classroom, where the process is heavy The signal is sent when the daemon detects that the process of the network classroom is not working normally;
服务器重启单元,用于根据所述进程重启信号对所述网络课堂的进程进行重启;a server restarting unit, configured to restart the process of the network classroom according to the process restart signal;
请求接收单元,用于在对所述网络课堂的进程进行重启之后,接收所述发起客户端在所述网络课堂中进行教学时发送的教学请求。The request receiving unit is configured to receive a teaching request sent by the initiating client when teaching in the network classroom after restarting the process of the network class.
优选地,Preferably,
所述第一获取模块,还用于在本端服务器为备用服务器,且所述本端服务器与所述发起客户端之间通过中转服务器相连时,接收所述中转服务器转发的所述发起客户端在已创建的网络课堂中进行教学时发送的教学请求,所述教学请求是所述中转服务器在所述网络课堂的原属服务器发生故障后,重定向至所述本端服务器而转发的。The first obtaining module is further configured to receive the originating client forwarded by the transit server when the local server is a standby server, and the local server is connected to the initiating client through a transit server. A teaching request sent during teaching in the created network classroom, the teaching request being forwarded by the relay server after being redirected to the local server after the original server of the network classroom fails.
优选地,所述装置,还包括:Preferably, the device further includes:
第二获取模块,用于获取接收客户端针对所述已创建的网络课堂发送的听课请求;a second obtaining module, configured to acquire a listening request sent by the receiving client for the created network classroom;
第二检测模块,用于确定所述接收客户端对应的账户是否在所述网络课堂中;a second detecting module, configured to determine whether an account corresponding to the receiving client is in the network classroom;
第二发送模块,用于若所述接收客户端对应的账户不在所述网络课堂中,则向所述接收客户端发送重新登录所述网络课堂的请求,以使所述接收客户端接收到所述重新登录所述网络课堂的请求之后向所述服务器发送携带有授权登录信息的登录请求;a second sending module, configured to: if the account corresponding to the receiving client is not in the network classroom, send a request for re-logging to the network classroom to the receiving client, so that the receiving client receives the Sending a login request carrying authorized login information to the server after re-registering the request for the network classroom;
登录授权模块,用于根据所述授权登录信息授权所述接收客户端登录所述网络课堂。The login authorization module is configured to authorize the receiving client to log in to the network classroom according to the authorized login information.
优选地,Preferably,
所述第二获取模块,还用于在本端服务器为备用服务器,且所述本端服务器与所述接收客户端之间通过中转服务器相连时,接收所述中转服务器转发的所述接收客户端针对所述网络课堂发送的听课请求,所述听课请求是所述中转服务器在所述网络课堂的原属服务器发生故障后,将所述网络课堂的听课请求重定向至所述本端服务器后转发的。The second obtaining module is further configured to: when the local server is a standby server, and the local server and the receiving client are connected by the transit server, receive the receiving client forwarded by the transit server The listening request sent by the network classroom is that the relay server redirects the listening request of the network classroom to the local server after the primary server of the network classroom fails. of.
优选地,所述装置,还包括:Preferably, the device further includes:
权限检测模块,用于根据所述教学信息检测所述发起客户端是否具有创建所述网络课堂的权限; a permission detecting module, configured to detect, according to the teaching information, whether the originating client has the right to create the network classroom;
所述课堂重建模块,还用于若检测结果为所述发起客户端具有创建所述网络课堂的权限,则执行所述根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂的步骤。The classroom reconstruction module is further configured to: if the detection result is that the initiating client has the right to create the network classroom, perform the re-creating the network classroom according to the teaching information fed back by the initiating client step.
优选地,所述课堂重建模块,包括:Preferably, the classroom reconstruction module comprises:
课堂创建单元,用于根据所述教学信息中所述网络课堂的标识创建所述网络课堂;a classroom creation unit, configured to create the network classroom according to the identifier of the network classroom in the teaching information;
地址缓存单元,用于若所述教学信息中包括教学教材的下载地址,则缓存所述下载地址,以使所述接收客户端根据所述下载地址下载所述教学材料;An address buffering unit, configured to cache the download address if the teaching information includes a download address of the teaching material, so that the receiving client downloads the teaching material according to the download address;
进度缓存单元,用于若所述教学信息中包括有教学材料的展示进度,则缓存所述展示进度,以使所述接收客户端根据所述展示进度展示所述教学材料。a progress buffer unit, configured to cache the display progress if the teaching information includes an exhibition progress of the teaching material, so that the receiving client displays the teaching material according to the display progress.
第五方面,提供了一种网络课堂故障处理装置,用于在已创建的网络课堂进行教学的发起客户端中,所述装置包括:The fifth aspect provides a network classroom fault processing apparatus, which is used in an initiating client for teaching in an created web classroom, the apparatus comprising:
第三发送模块,用于向服务器发送针对所述网络课堂的教学请求,以使所述服务器检测是否存在与所述网络课堂对应的教学信息;若检测结果为不存在与所述网络课堂对应的所述教学信息,则确定所述网络课堂发生故障,向所述发起客户端发送所述教学信息的获取请求;a third sending module, configured to send a teaching request for the network classroom to the server, so that the server detects whether there is teaching information corresponding to the network classroom; if the detection result is that there is no corresponding to the network classroom Determining, by the teaching information, that the network classroom is faulty, and sending the acquisition request of the teaching information to the initiating client;
第一接收模块,用于接收所述服务器发送的所述教学信息的获取请求;a first receiving module, configured to receive an acquisition request of the teaching information sent by the server;
第四发送模块,用于根据所述获取请求自动向所述服务器发送所述教学信息,以使所述服务器根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂。And a fourth sending module, configured to automatically send the teaching information to the server according to the obtaining request, so that the server re-creates the network classroom according to the teaching information fed back by the initiating client.
第六方面,提供了一种网络课堂故障处理装置,用于在已创建的网络课堂进行教学的接收客户端中,所述装置包括:In a sixth aspect, a network classroom fault processing apparatus is provided for receiving a client in a web classroom that has been created, the apparatus comprising:
第五发送模块,用于向服务器发送针对所述已创建的网络课堂的听课请求,以使所述服务器确定所述接收客户端对应的账户是否在所述网络课堂中,若所述接收客户端对应的账户不在所述网络课堂中,则向所述接收客户端发送重新登录所述网络课堂的请求,需要重新登录的网络课堂是所述服务器在所述已创建的网络课堂发生故障后,根据从发起客户端获取的教学信息重新创建的;a fifth sending module, configured to send a listening request for the created network classroom to the server, so that the server determines whether the account corresponding to the receiving client is in the network classroom, if the receiving client If the corresponding account is not in the network classroom, sending a request to re-login to the network classroom to the receiving client, and the network classroom that needs to be logged in again is after the server fails in the created network classroom, according to the Re-created the teaching information obtained from the originating client;
第二接收模块,用于接收所述重新登录网络课堂的请求;a second receiving module, configured to receive the request for re-login to the network classroom;
第六发送模块,用于根据所述重新登录所述网络课堂的请求自动向所述服务器发送携带有授权登录信息的登录请求,以使所述服务器根据所述授权登录 信息授权所述接收客户端登录所述网络课堂。a sixth sending module, configured to automatically send a login request carrying the authorized login information to the server according to the request for re-logging in the network classroom, so that the server logs in according to the authorization The information authorizes the receiving client to log in to the network classroom.
第七方面,提供了一种网络课堂故障处理系统,所述系统包括至少一个网络课堂的发起客户端、至少一个网络课堂的接收客户端和服务器;According to a seventh aspect, a network classroom fault processing system is provided, where the system includes at least one originating client of the network classroom, at least one receiving client and server of the network classroom;
所述服务器包括上述第四方面以及第四方面各个可能的实施方式中任一所述的网络课堂故障处理装置;The server includes the network classroom fault processing apparatus of any of the above fourth aspect and each of the possible implementation manners of the fourth aspect;
所述发起客户端包括上述第五方面所述的网络课堂故障处理装置;The originating client includes the network classroom fault processing device described in the fifth aspect above;
所述接收客户端包括上述第六方面所述的网络课堂故障处理装置。The receiving client includes the network classroom fault processing apparatus described in the sixth aspect above.
本申请实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided by the embodiments of the present application are:
通过获取已创建的网络课堂的发起客户端在所述网络课堂中进行教学时发送的教学请求;检测是否存在与网络课堂对应的教学信息;若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求,以使发起客户端根据获取请求自动反馈教学信息;根据发起客户端反馈的教学信息重新创建网络课堂;解决了在教学活动过程中,若服务器发生故障,会导致服务器上有关该网络课堂的教学信息瞬间全部丢失,从而导致教学活动中止的问题;达到了即使服务器发生故障,也能及时重建网络课堂的效果,不会造成教学活动中止。Obtaining a teaching request sent by the initiating client of the created web-based classroom when teaching in the online classroom; detecting whether there is teaching information corresponding to the network classroom; if the detection result is that there is no teaching information corresponding to the network classroom, Then, determining that the network classroom is faulty, sending the acquisition request of the teaching information to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request; re-creating the network classroom according to the teaching information initiated by the client, and solving the teaching activity process If the server fails, the teaching information about the online classroom on the server will be lost in an instant, which will lead to the suspension of teaching activities; even if the server fails, the effect of the online classroom can be reconstructed in time, and the teaching will not be caused. The activity is aborted.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1A是本申请实施例提供的网络课堂故障处理方法所涉及的一种实施环境的结构示意图;1A is a schematic structural diagram of an implementation environment involved in a network classroom fault processing method according to an embodiment of the present application;
图1B是本申请实施例提供的网络课堂故障处理方法所涉及的另一种实施环境的结构示意图;1B is a schematic structural diagram of another implementation environment involved in a network classroom fault processing method according to an embodiment of the present application;
图2是本申请一个实施例提供的网络课堂故障处理方法的方法流程图;2 is a flowchart of a method for processing a network classroom fault according to an embodiment of the present application;
图3是本申请另一个实施例提供的网络课堂故障处理方法的方法流程图;3 is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application;
图4是本申请另一个实施例提供的网络课堂故障处理方法的方法流程图;4 is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application;
图5A是本申请另一个实施例提供的网络课堂故障处理方法的方法流程图; 5A is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application;
图5B是本申请另一个实施例提供的网络课堂故障处理方法的方法流程图;FIG. 5B is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application; FIG.
图6是本申请另一个实施例提供的网络课堂故障处理方法的方法流程图;6 is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application;
图7是本申请一个实施例提供的网络课堂故障处理装置的结构方框图;7 is a structural block diagram of a network classroom fault processing apparatus according to an embodiment of the present application;
图8是本申请另一个实施例提供的网络课堂故障处理装置的结构方框图;FIG. 8 is a structural block diagram of a network classroom fault processing apparatus according to another embodiment of the present application; FIG.
图9是本申请另一个实施例提供的网络课堂故障处理装置的结构方框图;9 is a structural block diagram of a network classroom fault processing apparatus according to another embodiment of the present application;
图10是本申请一个实施例提供的网络课堂故障处理系统的结构方框图;10 is a structural block diagram of a network classroom fault processing system according to an embodiment of the present application;
图11是本申请一个实施例提供的服务器的结构示意图;FIG. 11 is a schematic structural diagram of a server according to an embodiment of the present application;
图12是本申请一个实施例提供的发起客户端的结构示意图;FIG. 12 is a schematic structural diagram of an originating client according to an embodiment of the present application;
图13是本申请一个实施例提供的接收客户端的结构示意图。FIG. 13 is a schematic structural diagram of a receiving client according to an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objects, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
请参考图1A,其示出了本申请实施例提供的网络课堂故障处理方法所涉及的一种实施环境的结构示意图。该实施环境包括一台服务器120、至少一个网络课堂的发起客户端140和至少一个网络课堂的接收客户端160;Please refer to FIG. 1A , which is a schematic structural diagram of an implementation environment involved in a network classroom fault processing method provided by an embodiment of the present application. The implementation environment includes a server 120, at least one network classroom initiation client 140, and at least one network classroom reception client 160;
服务器120通过网络与发起客户端140相连,服务器120通过网络与接收客户端160相连。The server 120 is connected to the originating client 140 via a network, and the server 120 is connected to the receiving client 160 via the network.
发起客户端140和接收客户端160可以是平板电脑、台式电脑、笔记本电脑以及智能家电之类的电子设备。发起客户端140可以在服务器120上创建网络课堂,接收客户端160可以收听服务器120上创建的网络课堂。The originating client 140 and the receiving client 160 may be electronic devices such as tablets, desktop computers, notebook computers, and smart home appliances. The originating client 140 can create a web class on the server 120, and the receiving client 160 can listen to the web class created on the server 120.
请参考图1B,其示出了本申请实施例提供的网络课堂故障处理方法所涉及的另一种实施环境的结构示意图。该实施环境包括至少两台服务器120、至少一个网络课堂的发起客户端140、至少一个网络课堂的接收客户端160和至少一台中转服务器180;Please refer to FIG. 1B , which is a schematic structural diagram of another implementation environment involved in the network classroom fault processing method provided by the embodiment of the present application. The implementation environment includes at least two servers 120, at least one network classroom initiation client 140, at least one network classroom reception client 160, and at least one relay server 180;
服务器120可以是由若干台服务器组成的服务器集群,或者是一个云计算服务中心。中转服务器180可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心。中转服务器180用于中转服务器120与发起客户端140,服务器120与接收客户端160之间的请求以及信息。 Server 120 can be a server cluster consisting of several servers or a cloud computing service center. The relay server 180 can be a server, or a server cluster consisting of several servers, or a cloud computing service center. The relay server 180 is used for the request and information between the relay server 120 and the originating client 140, the server 120 and the receiving client 160.
服务器120通过网络与中转服务器180相连,中转服务器180通过网络与发起客户端140和接收客户端160相连。The server 120 is connected to the relay server 180 through a network, and the relay server 180 is connected to the originating client 140 and the receiving client 160 through the network.
发起客户端140和接收客户端160可以是平板电脑、台式电脑、笔记本电脑以及智能家电之类的电子设备。发起客户端140可以在服务器120上创建网络课堂,接收客户端160可以收听服务器120上创建的网络课堂。The originating client 140 and the receiving client 160 may be electronic devices such as tablets, desktop computers, notebook computers, and smart home appliances. The originating client 140 can create a web class on the server 120, and the receiving client 160 can listen to the web class created on the server 120.
请参考图2,其示出了本申请一个实施例提供的网络课堂故障处理方法的方法流程图。本实施例主要以该网络课堂故障处理方法应用于图1A或1B所示的服务器中来举例说明。该网络课堂故障处理方法,包括:Please refer to FIG. 2, which is a flowchart of a method for processing a network classroom fault according to an embodiment of the present application. This embodiment is mainly illustrated by applying the network classroom fault processing method to the server shown in FIG. 1A or 1B. The network classroom troubleshooting method includes:
步骤202,获取发起客户端在已创建的网络课堂中进行教学时发送的教学请求,即获取已创建的网络课堂的发起客户端在网络课堂中进行教学时发送的教学请求;Step 202: Acquire a teaching request sent by the initiating client when teaching in the created online classroom, that is, obtaining a teaching request sent by the initiating client of the created online classroom when teaching in the online classroom;
步骤204,检测是否存在与网络课堂对应的教学信息。Step 204: Detect whether there is teaching information corresponding to the network classroom.
步骤206,若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求,以使发起客户端根据获取请求自动反馈教学信息。Step 206: If the detection result is that there is no teaching information corresponding to the network classroom, determining that the network classroom is faulty, and sending the acquisition request of the teaching information to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request.
步骤208,根据发起客户端反馈的教学信息重新创建网络课堂。Step 208: Re-create the network classroom according to the teaching information that is initiated by the client.
综上所述,本实施例提供的网络课堂故障处理方法,通过获取发起客户端在已创建的网络课堂中进行教学时发送的教学请求;检测是否存在与网络课堂对应的教学信息;若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求,以使发起客户端根据获取请求自动反馈教学信息;根据发起客户端反馈的教学信息重新创建网络课堂;解决了在教学活动过程中,若服务器发生故障,会导致服务器上有关该网络课堂的教学信息瞬间全部丢失,从而导致教学活动中止的问题;达到了即使服务器发生故障,也能及时重建网络课堂的效果,不会造成教学活动中止。In summary, the network classroom fault processing method provided in this embodiment obtains a teaching request sent by the initiating client when teaching in the created network classroom; and detects whether there is teaching information corresponding to the network classroom; if the detection result If there is no teaching information corresponding to the network classroom, it is determined that the network classroom is faulty, and the acquisition request of the teaching information is sent to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request; according to the teaching information initiated by the client. Re-creating the network classroom; solving the problem of the server activity, if the server fails, the teaching information about the network classroom on the server will be lost all the time, which will lead to the suspension of teaching activities; even if the server fails, it can Rebuilding the effectiveness of the online classroom in a timely manner will not result in the suspension of teaching activities.
请参考图3,其示出了本申请另一个实施例提供的网络课堂故障处理方法的方法流程图。本实施例主要以该网络课堂故障处理方法应用于图1A或1B所示的网络课堂的发起客户端中来举例说明。该网络课堂故障处理方法,包括:Please refer to FIG. 3, which is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application. This embodiment is mainly illustrated by applying the network classroom fault processing method to the originating client of the network classroom shown in FIG. 1A or 1B. The network classroom troubleshooting method includes:
步骤302,向服务器发送针对已创建的网络课堂的教学请求,以使服务器检测是否存在与网络课堂对应的教学信息;若检测结果为不存在与网络课堂对 应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求。Step 302: Send a teaching request for the created network classroom to the server, so that the server detects whether there is teaching information corresponding to the network classroom; if the detection result is non-existent and the network classroom pair The teaching information should determine the failure of the network classroom and send the request for obtaining the teaching information to the initiating client.
步骤304,接收服务器发送的教学信息的获取请求。Step 304: Receive an acquisition request of the teaching information sent by the server.
步骤306,根据获取请求自动向服务器发送教学信息,以使服务器根据发起客户端反馈的教学信息重新创建网络课堂。Step 306: Automatically send the teaching information to the server according to the obtaining request, so that the server recreates the network classroom according to the teaching information that is initiated by the client.
综上所述,本实施例提供的网络课堂故障处理方法,通过向服务器发送针对网络课堂的教学请求;接收服务器发送的教学信息的获取请求;根据获取请求自动向服务器发送教学信息,以使服务器根据发起客户端反馈的教学信息重新创建网络课堂;解决了在教学活动过程中,若服务器发生故障,会导致服务器上有关该网络课堂的教学信息瞬间全部丢失,从而导致教学活动中止的问题;达到了即使服务器发生故障,也能及时重建网络课堂的效果,不会造成教学活动中止。In summary, the network classroom fault processing method provided by the embodiment sends a teaching request for the network classroom to the server; receives the acquisition request of the teaching information sent by the server; and automatically sends the teaching information to the server according to the obtaining request, so as to enable the server Re-create the network classroom according to the teaching information of the client-sponsored feedback; solve the problem that if the server fails during the teaching activity, the teaching information about the network classroom on the server will be lost all the time, which leads to the suspension of the teaching activity; Even if the server fails, the effect of the online classroom can be reconstructed in time without causing the suspension of teaching activities.
请参考图4,其示出了本申请另一个实施例提供的网络课堂故障处理方法的方法流程图。本实施例主要以该网络课堂故障处理方法应用于图1A或1B所示的网络课堂的接收客户端中来举例说明。该网络课堂故障处理方法,包括:Please refer to FIG. 4, which is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application. This embodiment is mainly illustrated by applying the network classroom fault processing method to the receiving client of the network classroom shown in FIG. 1A or 1B. The network classroom troubleshooting method includes:
步骤402,向服务器发送针对所述已创建的网络课堂的听课请求,以使所述服务器确定接收客户端对应的账户是否在网络课堂中,若接收客户端对应的账户不在网络课堂中,则向接收客户端发送重新登录网络课堂的请求,需要重新登录的网络课堂是所述服务器在所述已创建的网络课堂发生故障后,根据从发起客户端获取的教学信息重新创建的;Step 402: Send a listening request for the created network classroom to the server, so that the server determines whether the account corresponding to the receiving client is in the network classroom, and if the account corresponding to the receiving client is not in the network classroom, then Receiving the request of the client to re-login to the network classroom, the network classroom that needs to be re-logged in is that the server is re-created according to the teaching information acquired from the initiating client after the created network classroom fails;
步骤404,接收重新登录网络课堂的请求。Step 404: Receive a request to re-login to the network classroom.
步骤406,根据所述重新登录网络课堂的请求自动向所述服务器发送携带有授权登录信息的登录请求,以使所述服务器根据所述授权登录信息授权所述接收客户端登录所述网络课堂。Step 406: Automatically send a login request carrying the authorized login information to the server according to the request for re-login to the network classroom, so that the server authorizes the receiving client to log in to the network classroom according to the authorized login information.
综上所述,本实施例提供的网络课堂故障处理方法,通过向服务器发送针对网络课堂的听课请求;接收重新登录网络课堂的请求;根据重新登录网络课堂的请求自动向服务器发送登录信息,以使服务器根据登录信息授权接收客户端登录网络课堂;解决了在教学活动过程中,若服务器发生故障,会导致服务器上有关该网络课堂的教学信息瞬间全部丢失,从而导致教学活动中止的问题;达到了即使服务器发生故障,也能及时重建网络课堂的效果,不会造成教 学活动中止。In summary, the network classroom fault processing method provided in this embodiment sends a request for re-entering the network classroom to the server by receiving a request for re-entering the network classroom; and automatically sending the login information to the server according to the request to re-log into the network classroom, The server is authorized to receive the client login network classroom according to the login information; and solves the problem that if the server fails during the teaching activity, the teaching information about the network classroom on the server is lost all at once, thereby causing the suspension of the teaching activity; Even if the server fails, it can rebuild the effect of the online classroom in time, and will not cause teaching. The learning activity was suspended.
请参考图5A,其示出了本申请另一个实施例提供的网络课堂故障处理方法的方法流程图。本实施例主要以该网络课堂故障处理方法应用于图1A所示的实施环境中来举例说明。该网络课堂故障处理方法,包括:Please refer to FIG. 5A, which is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application. This embodiment is mainly illustrated by applying the network classroom fault processing method to the implementation environment shown in FIG. 1A. The network classroom troubleshooting method includes:
本实施例以实施环境中只有一个服务器来举例说明,该服务器自带有守护进程。当服务器发生故障时,守护进程向服务器发送重启信号,以使该服务器重启。在网络课堂的发起客户端已在该服务器开设了网络课堂的情况下,当该服务器在网络教学的过程中发生故障时,具体有如下步骤:This embodiment is exemplified by only one server in the implementation environment, which has a daemon process. When the server fails, the daemon sends a restart signal to the server to restart the server. In the case that the initiating client of the network classroom has opened the network classroom in the server, when the server fails in the process of network teaching, the following steps are specifically performed:
步骤501,服务器接收服务器重启信号。In step 501, the server receives a server restart signal.
服务器自带有守护进程,守护进程可以实时地或每隔预定时间间隔检测本端服务器是否正常工作,当守护进程检测到本端服务器未正常工作时,向服务器发送服务器重启信号。假设服务器在运行过程中发生了死机的情况,则服务器中的守护进程会向服务器发送服务器重启信号,服务器则会接收到该服务器重启信号。The server has a daemon process. The daemon can detect whether the local server works normally in real time or at regular intervals. When the daemon detects that the local server is not working properly, it sends a server restart signal to the server. Assuming that the server crashes during the running process, the daemon in the server sends a server restart signal to the server, and the server receives the server restart signal.
步骤502,服务器根据服务器重启信号对本端服务器进行重启。Step 502: The server restarts the local server according to the server restart signal.
当服务器发生故障时,需要立即重启来为网络课堂的发起客户端(简称:发起客户端)和网络课堂的接收客户端(简称:接收客户端)提供服务。When the server fails, it needs to be restarted immediately to provide services for the originating client of the network classroom (referred to as: the originating client) and the receiving client of the web classroom (referred to as the receiving client).
步骤503,发起客户端向服务器发送针对已创建的网络课堂的教学请求。Step 503: The initiating client sends a teaching request to the server for the created network classroom.
发起客户端是指在服务器上创建网络课堂的客户端。在服务器发生故障未正常工作时,发起客户端并不知道该服务器无法正常工作,因此发起客户端仍旧按照正常的工作进程向服务器发送针对网络课堂的教学请求。The originating client is the client that creates the web class on the server. When the server fails to work normally, the originating client does not know that the server is not working properly, so the originating client still sends a teaching request for the network classroom to the server according to the normal working process.
本实施例中的教学请求可能是与该网络课堂相关的任何请求,比如:讲课信息,教学统计信息等等。The teaching request in this embodiment may be any request related to the online classroom, such as lecture information, teaching statistics, and the like.
步骤504,服务器获取发起客户端在已创建的网络课堂中进行教学时发送的教学请求,即获取已创建的网络课堂的发起客户端在网络课堂中进行教学时发送的教学请求。Step 504: The server acquires a teaching request sent by the initiating client when teaching in the created online classroom, that is, obtaining a teaching request sent by the initiating client of the created online classroom when teaching in the online classroom.
老师可以通过发起客户端向服务器发送各种类型的教学请求,以使服务器执行相应的操作,例如,教学请求可以是用于创建网络课堂的请求(也可称作创建请求),可以是教学过程中用于向学生提问的请求(也可称作提问请求),或者是用于显示教学资料的请求(也可称作显示请求)等等。 The teacher can send various types of teaching requests to the server through the initiating client, so that the server performs corresponding operations. For example, the teaching request may be a request for creating a network classroom (also referred to as a creation request), which may be a teaching process. A request for asking a question to a student (also referred to as a question request), or a request for displaying teaching materials (also referred to as a display request), and the like.
当出现预设的异常情况后,服务器可以获取已创建的网络课堂的发起客户端在网络课堂中进行教学时发送的教学请求。After a preset abnormal situation occurs, the server may obtain a teaching request sent by the originating client of the created online classroom when teaching in the online classroom.
由于服务器重启需要的时间非常少,因此当教学请求或其重试请求发送过来时,服务器能够获取该教学请求。Since the server restarts very little time, the server can obtain the teaching request when the teaching request or its retry request is sent.
步骤505,服务器检测是否存在与网络课堂对应的教学信息。Step 505: The server detects whether there is teaching information corresponding to the network classroom.
发起客户端发送的用于创建网络课堂的请求(即创建请求)中可以携带有教学信息,教学信息主要包括网络课堂的标识(即课堂号)、老师的身份信息(即发起客户端的账号)、网络课堂的进程和教学材料等。服务器主要可以通过检测本端当前是否存在该网络课堂的课堂号来判断是否存在与网络课堂对应的教学信息。The request sent by the initiating client for creating the network classroom (ie, the creation request) may carry the teaching information, and the teaching information mainly includes the identifier of the network classroom (ie, the class number), the identity information of the teacher (ie, the account of the originating client), The process and teaching materials of the online classroom. The server can mainly determine whether there is teaching information corresponding to the network classroom by detecting whether the local classroom number of the online classroom currently exists.
比如,老师(发起客户端)发过来一个教学相关PPT播放下一页的信息。服务器可以检测发送该信息的客户端是不是老师(发起客户端),是不是有这个课堂正在开课。服务器还可以检测其它信息,比如,正在讲什么课,PPT播放到第几页等等。For example, the teacher (initiating the client) sends a message about the next page of the teaching-related PPT. The server can detect whether the client that sent the message is a teacher (initiating the client), is there a class that is starting classes. The server can also detect other information, such as what class is being spoken, PPT playback to the first few pages, and so on.
步骤506,若检测结果为不存在与网络课堂对应的教学信息,则服务器确定该网络课堂发生故障,向发起客户端发送教学信息的获取请求。Step 506: If the detection result is that there is no teaching information corresponding to the network classroom, the server determines that the network classroom is faulty, and sends an acquisition request of the teaching information to the initiating client.
当服务器检测到当前不存在与网络课堂对应的教学信息,但服务器又接收到发起客户端发送的教学请求,可以判断该教学请求对应的网络课堂发生故障,因此服务器需要向客户端发送教学信息的获取请求,以使服务器重新创建该网络课堂。When the server detects that there is no teaching information corresponding to the network classroom, but the server receives the teaching request sent by the initiating client, it can determine that the network classroom corresponding to the teaching request is faulty, so the server needs to send the teaching information to the client. Get the request to have the server recreate the web class.
步骤507,发起客户端接收服务器发送的教学信息的获取请求。Step 507: The initiating client receives an acquisition request of the teaching information sent by the server.
步骤508,发起客户端根据获取请求自动向服务器发送教学信息。Step 508: The initiating client automatically sends the teaching information to the server according to the obtaining request.
教学信息包括网络课堂的课堂号、该网络课堂的进度和教学材料的下载信息等等。比如:课堂号123456、PPT的下载地址和第8页等。The teaching information includes the class number of the online class, the progress of the online class, and the downloading information of the teaching materials. For example: Class number 123456, PPT download address and page 8.
步骤509,服务器接收教学信息,根据教学信息检测发起客户端是否具有创建网络课堂的权限。Step 509: The server receives the teaching information, and detects, according to the teaching information, whether the originating client has the right to create a network classroom.
服务器根据教学信息检测发起客户端是否具有创建网络课堂的权限主要是在后台的数据库中检测教学信息中包含的老师的身份信息是否具有创建课堂的权限。The server detects whether the originating client has the right to create a network classroom according to the teaching information, and mainly detects whether the identity information of the teacher included in the teaching information has the authority to create a class in the database in the background.
步骤510,若检测结果为发起客户端具有创建网络课堂的权限,则服务器根据发起客户端反馈的教学信息重新创建网络课堂。 Step 510: If the detection result is that the originating client has the right to create a network classroom, the server recreates the network classroom according to the teaching information that is initiated by the client.
由于重启后的服务器上不存在原先创建过的网络课堂,因此当服务器接收到教学信息之后需要重新创建该网络课堂,以便为发起客户端和接收客户端提供服务。Since the network class that was originally created does not exist on the server after the restart, when the server receives the teaching information, the network class needs to be re-created to provide services for the initiating client and the receiving client.
如图5B,具体来讲本步骤包括如下子步骤:As shown in FIG. 5B, specifically, the step includes the following sub-steps:
510a,服务器根据教学信息中网络课堂的标识创建网络课堂。510a. The server creates an online classroom based on the identification of the online classroom in the teaching information.
网络课堂的标识是指网络课堂在服务器上第一次创建时,对应的都会分配到一个用于标识该网络课堂的唯一标识。服务器可以根据网络课堂的标识创建课堂。The logo of the online classroom means that when the network classroom is first created on the server, the corresponding one is assigned a unique identifier for identifying the network classroom. The server can create classes based on the identity of the online classroom.
510b,若教学信息中包括有教学材料的下载地址,则服务器缓存下载地址,以使接收客户端根据该下载地址下载教学材料。510b. If the teaching information includes a download address of the teaching material, the server caches the download address, so that the receiving client downloads the teaching material according to the download address.
教学材料可以是文本文档、PPT和/或教学视频等,服务器将文本文档、PPT和/或教学视频等的下载地址缓存,以使接收客户端根据该下载地址下载教学材料。The teaching material may be a text document, a PPT, and/or a teaching video, etc., and the server caches the download address of the text document, the PPT, and/or the teaching video, so that the receiving client downloads the teaching material according to the download address.
510c,若教学信息中包括教学材料的展示进度,则服务器缓存展示进度,以使接收客户端根据该展示进度展示教学材料。510c. If the teaching information includes the progress of the teaching materials, the server caches the progress of the presentation, so that the receiving client displays the teaching materials according to the progress of the exhibition.
展示进度是指该教学材料展示的进度,比如,展示到第几页,展示到的时间点。接收客户端可以根据展示进度来展示教学材料,也即可以从服务器发生故障时网络课堂中断的地方继续进行展示。The progress of the exhibition refers to the progress of the teaching materials, for example, the time points displayed on the first page and displayed. The receiving client can display the teaching materials according to the progress of the presentation, that is, it can continue to be displayed from the place where the network classroom is interrupted when the server fails.
当服务器重新创建好网络课堂后,网络课堂的接收客户端就可以听课了,具体有如下步骤:After the server re-creates the online classroom, the receiving client of the online classroom can listen to the class. The specific steps are as follows:
步骤511,接收客户端向服务器发送针对已创建的网络课堂的听课请求。Step 511: The receiving client sends a class request to the server for the created network class.
学生可以通过接收客户端(学生使用的客户端)申请听课的权限,具有授权听课信息的学生可以通过接收客户端向服务器发送各种类型的听课请求,以使服务器执行相应的操作,例如,听课请求可以是学生用于登录该网络课堂的请求(也可称作登录请求),可以是用于向老师端提问的请求(也可称作提问请求),可以是回答问题的请求(也可称作回答请求),或者是用于向服务器提示接收客户端在线的请求(也可称作心跳请求)等等。Students can apply for the lectures by receiving the client (the client used by the student). Students with authorized lecture information can send various types of lecture requests to the server through the receiving client, so that the server can perform corresponding operations, for example, attending classes. The request may be a request for the student to log in to the online classroom (also referred to as a login request), may be a request for asking a question to the teacher (also referred to as a request for a question), and may be a request to answer the question (also called a request) Answer request), or a request to prompt the server to receive the client online (also called a heartbeat request) and so on.
网络课堂是服务器根据从发起客户端获取的教学信息重新创建的网络课堂。具体来讲,网络课堂是服务器获取发起客户端针对一网络课堂发送的教学请求;服务器检测是否存在与网络课堂对应的教学信息;若检测结果为不存在与网络课堂对应的教学信息,则服务器向发起客户端发送教学信息的获取请 求,以使发起客户端反馈教学信息;服务器根据发起客户端反馈的教学信息重新创建的。The online classroom is a network classroom that the server recreates based on the teaching information obtained from the originating client. Specifically, the network classroom is a server obtaining a teaching request sent by the initiating client for a network classroom; the server detects whether there is teaching information corresponding to the network classroom; if the detection result is that there is no teaching information corresponding to the network classroom, the server Initiate the client to send the teaching information, please Soliciting the client to feed back the teaching information; the server recreates the teaching information based on the feedback from the originating client.
步骤512,服务器获取接收客户端针对网络课堂发送的听课请求。In step 512, the server acquires a listening request sent by the receiving client for the network classroom.
在服务器发生故障未正常工作时,接收客户端并不知道该服务器无法正常工作,因此接收客户端仍旧按照正常的工作进程向服务器发送针对网络课堂的听课请求。在重启之后,服务器接收发起客户端在网络课堂中进行教学时发送的教学请求。由于服务器重启和重新创建网络课堂的时间较少,因此服务器能够很快地接收客户端针对网络课堂发送的听课请求。需要重新登录的网络课堂是服务器在已创建的网络课堂发生故障后,根据从发起客户端获取的教学信息重新创建的。When the server fails to work normally, the receiving client does not know that the server is not working properly, so the receiving client still sends a request for the network class to the server according to the normal working process. After the restart, the server receives the teaching request sent by the initiating client when teaching in the online classroom. Because the server has less time to restart and re-create the web-based classroom, the server can quickly receive requests from the client for the online classroom. The online classroom that needs to be logged in again is that the server is re-created based on the teaching information obtained from the originating client after the failed network classroom has been created.
步骤513,服务器确定接收客户端对应的账户是否在网络课堂中。In step 513, the server determines whether the account corresponding to the receiving client is in the network classroom.
服务器主要检测网络课堂中是否存在接收客户端对应的账户,也即检测接收客户端是否掉线。另外,服务器还可以检测接收客户端对应的账户是否具有收听该网络课堂的资格,比如:该接收客户端是否被授权,或网络课堂中是否存在接收客户端对应的登录名。The server mainly detects whether there is an account corresponding to the receiving client in the network classroom, that is, detects whether the receiving client is offline. In addition, the server may also detect whether the account corresponding to the receiving client has the qualification to listen to the network classroom, for example, whether the receiving client is authorized, or whether there is a login name corresponding to the receiving client in the network classroom.
步骤514,若所述接收客户端对应的账户不在所述网络课堂中,则向所述接收客户端发送重新登录所述网络课堂的请求。Step 514: If the account corresponding to the receiving client is not in the network classroom, send a request for re-logging to the network classroom to the receiving client.
服务器检测到该接收客户端没有登录该网络课堂,则服务器需要向该接收客户端发送重新登录该网络课堂的请求,换句话说,就是通知接收客户端发送登录信息来登录该网络课堂。The server detects that the receiving client does not log in to the network classroom, and the server needs to send a request for re-logging to the network classroom to the receiving client. In other words, the receiving client sends the login information to log in to the network classroom.
步骤515,接收客户端接收重新登录网络课堂的请求。Step 515: The receiving client receives a request to re-login to the network classroom.
步骤516,接收客户端根据重新登录网络课堂的请求自动向服务器发送携带有授权登录信息的登录请求。Step 516: The receiving client automatically sends a login request carrying the authorized login information to the server according to the request for re-logging into the network classroom.
授权登录信息可以包括接收客户端对应的账户的账户名和登录密码。The authorized login information may include an account name and a login password of the account corresponding to the receiving client.
如果学生端(接收客户端)登录网络课堂时需要登录密码,该网络课堂登录密码可以是老师端(发起客户端)通过其他方式给学生,例如购买课程后通过邮件发送给学生端。由于学生端在服务器发生故障之前已使用账户名和登录密码登录过该网络课堂,此时学生端将该账户名和登录密码进行了缓存,因此当服务器正常工作后,学生端可以直接使用缓存的账户名和登录密码登录该网络课堂,而不要学生本人再次操作。If the student (receiving client) needs to log in to the online classroom, the login password can be sent to the student by the teacher (initiating the client) through other means, such as sending the course and sending it to the student via email. Since the student has logged in to the online classroom using the account name and login password before the server fails, the student caches the account name and login password. Therefore, when the server works normally, the student can directly use the cached account name and Log in to the online classroom instead of the student.
步骤517,服务器根据授权登录信息授权接收客户端登录网络课堂。 Step 517: The server authorizes the receiving client to log in to the network classroom according to the authorized login information.
当服务器对接收客户端的账号和登录密码验证通过之后,服务器授权该接收客户端登录网络课堂,该接收客户端就可以正常听课了。服务器可以将教学材料的下载地址和教学材料的展示进度发送给接收客户端,接收客户端在接收到下载地址和展示进度之后,可以根据下载地址下载教学材料,根据展示进度展示教学材料,接收客户端可以从网络课堂中断的地方继续听课。After the server verifies the receiving client's account and the login password, the server authorizes the receiving client to log into the network classroom, and the receiving client can normally attend the class. The server may send the download address of the teaching material and the progress of the teaching material to the receiving client. After receiving the download address and the progress of the display, the receiving client may download the teaching material according to the download address, display the teaching material according to the progress of the display, and receive the client. The end can continue to attend classes from where the online classroom is interrupted.
可选的,上述处理过程中,步骤501、502可以采用步骤501’、502’的方式进行处理,处理过程如下:Optionally, in the foregoing process, the steps 501 and 502 can be processed in the manner of steps 501' and 502', and the process is as follows:
步骤501’,服务器接收对应上述网络课堂的进程重启信号。Step 501', the server receives a process restart signal corresponding to the network classroom.
服务器自带有守护进程,守护进程可以实时地或每隔预定时间间隔检测本端服务器中网络课堂的进程是否正常工作,当守护进程检测到网络课堂的进程未正常工作时,向服务器发送进程重启信号。假设网络课堂的进程在运行过程中发生了故障的情况,则服务器中的守护进程会向服务器发送进程重启信号,服务器则会接受到该服务器重启信号。The server has a daemon process. The daemon can detect whether the process of the network classroom in the local server works normally in real time or at regular intervals. When the daemon detects that the process of the network classroom is not working properly, the process sends a restart to the server. signal. Assuming that the process of the network classroom has failed during the running process, the daemon in the server will send a process restart signal to the server, and the server will receive the server restart signal.
步骤502’,服务器根据进程重启信号对上述网络课堂的进程进行重启。Step 502', the server restarts the process of the network classroom according to the process restart signal.
网络课堂的进程发生故障时,需要立即重启来为网络课堂的发起客户端(简称:发起客户端)和网络课堂的接收客户端(简称:接收客户端)提供服务。When the process of the network classroom fails, it needs to be restarted immediately to provide services for the originating client of the network classroom (referred to as the originating client) and the receiving client of the web classroom (referred to as the receiving client).
综上所述,本实施例提供的网络课堂故障处理方法,通过获取发起客户端在已创建的网络课堂中进行教学时发送的教学请求;检测是否存在与网络课堂对应的教学信息;若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求,以使发起客户端根据获取请求自动反馈教学信息;根据发起客户端反馈的教学信息重新创建网络课堂;解决了在教学活动过程中,若服务器发生故障,会导致服务器上有关该网络课堂的教学信息瞬间全部丢失,从而导致教学活动中止的问题;达到了即使服务器发生故障,也能及时重建网络课堂的效果,不会造成教学活动中止。In summary, the network classroom fault processing method provided in this embodiment obtains a teaching request sent by the initiating client when teaching in the created network classroom; and detects whether there is teaching information corresponding to the network classroom; if the detection result If there is no teaching information corresponding to the network classroom, it is determined that the network classroom is faulty, and the acquisition request of the teaching information is sent to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request; according to the teaching information initiated by the client. Re-creating the network classroom; solving the problem of the server activity, if the server fails, the teaching information about the network classroom on the server will be lost all the time, which will lead to the suspension of teaching activities; even if the server fails, it can Rebuilding the effectiveness of the online classroom in a timely manner will not result in the suspension of teaching activities.
需要补充说明的是,上述步骤都是在发起客户端和接收客户端的后台进行的,因此用户本人实际上时不会看到上述步骤,当服务器发生故障和重建网络课堂时,用户仍能正常开课和正常听课,不需要进行重复操作。It should be added that the above steps are all performed in the background of the originating client and the receiving client. Therefore, the user does not actually see the above steps. When the server fails and the network classroom is rebuilt, the user can still start the class normally. And normal class, no need to repeat the operation.
请参考图6,其示出了本申请另一个实施例提供的网络课堂故障处理方法的方法流程图。本实施例主要以该网络课堂故障处理方法应用于图1B所示的 实施环境中来举例说明。该网络课堂故障处理方法,包括:Please refer to FIG. 6 , which is a flowchart of a method for processing a network classroom fault according to another embodiment of the present application. This embodiment mainly applies the network classroom fault processing method to the method shown in FIG. 1B. An example of implementation environment. The network classroom troubleshooting method includes:
本实施例以实施环境中存在多个服务器来举例说明,特别地,在该实施环境中增加了至少一个中转服务器,该中转服务器用于转发服务器、发起客户端和接收客户端之间的信息。在发起客户端已在原属服务器开设了网络课堂的情况下,当该原属服务器在发起客户端进行网络教学的过程中发生故障时,具体有如下步骤:This embodiment is exemplified by the existence of multiple servers in the implementation environment. In particular, at least one relay server is added in the implementation environment, and the transit server is used to forward information between the server, the originating client, and the receiving client. In the case that the originating client has opened the network classroom in the original server, when the original server fails in the process of initiating the client to perform the network teaching, the following steps are specifically performed:
步骤601,发起客户端向服务器发送针对已创建的网络课堂的教学请求;Step 601: The initiating client sends a teaching request to the server for the created network classroom;
发起客户端是指在服务器上创建网络课堂的客户端。在服务器发生故障未正常工作时,发起客户端并不知道该服务器无法正常工作,因此发起客户端仍旧按照正常的工作进程向服务器发送针对已创建的网络课堂的教学请求。The originating client is the client that creates the web class on the server. When the server fails to work normally, the originating client does not know that the server is not working properly, so the originating client still sends a teaching request for the created web classroom to the server according to the normal working process.
本实施例中的教学请求可能是与该网络课堂相关的任何请求,比如:讲课信息,教学统计信息等等。The teaching request in this embodiment may be any request related to the online classroom, such as lecture information, teaching statistics, and the like.
步骤602,中转服务器向服务器转发发起客户端向服务器发送的针对网络课堂的教学请求;Step 602: The relay server forwards, to the server, an instruction request for the network classroom sent by the originating client to the server;
中转服务器主要的功能是按照特定的业务和要求将请求转发到相关的服务器。中转服务器可以有多个,不同的学生(接收客户端)可以连到不同的中转服务器,当然也可以连到同一个中转服务器,这个是根据网络环境和地理位置来确定的。比如,在广州和北京的学生同时在上课,广州的学生连到广东的中转服务器,北京的学生连到北京的中转服务器。中转服务器的功能就是转发请求,不管连到哪个中转服务器,对于同一网络课堂来讲,该网络教育的教学请求和听课请求总是发往至运行该网络课堂的服务器,也即本实施例中创建网络课堂的服务器。也即,如果网络课堂运行在一台服务器上,中转服务器总是将有关该网络课堂的各种请求都转发到该服务器上。The primary function of the transit server is to forward requests to the relevant servers according to specific services and requirements. There can be multiple transit servers, different students (receiving clients) can be connected to different transit servers, and of course to the same transit server, which is determined according to the network environment and geographic location. For example, students in Guangzhou and Beijing are attending classes at the same time. Students in Guangzhou are connected to the transit server in Guangdong. Students in Beijing are connected to the transit server in Beijing. The function of the relay server is to forward the request, regardless of which relay server is connected. For the same network classroom, the teaching request and the lecture request of the network education are always sent to the server running the network classroom, that is, the embodiment is created. Network classroom server. That is, if the network class is running on a server, the relay server always forwards various requests for the network class to the server.
但是当原属服务器发生故障后,中转服务器还需要将后续接收到的有关该网络课堂的所有教学请求和听课请求总是重新定向至另外一台服务器上。比如,如图1B所示,如果服务器120a发生故障,中转服务器将针对原运行在服务器120a上的网络课堂的教学请求重定向至服务器120b。本实施例以图1B中所示的服务器120b作为中转服务器重新定向的服务器来举例说明。However, when the original server fails, the relay server also needs to redirect all subsequent teaching requests and lecture requests related to the network classroom to another server. For example, as shown in FIG. 1B, if the server 120a fails, the relay server will redirect the teaching request for the network classroom originally running on the server 120a to the server 120b. This embodiment is exemplified by the server 120b shown in FIG. 1B as a server redirected by the relay server.
需要说明的是,中转服务器可以通过一致性哈希的方式将针对同一网络课堂的教学请求和听课请求发送到同一个服务器上。一致性哈希是一种将请求进行分配的算法,其主要是实现对于同一个课堂号的信息能够一直分配到 同一台服务器上。例如:对于课堂号为1的所有请求(包括老师的教学请求和学生的听课请求)都转发给服务器A;对于课堂号为2的所有请求(包括老师的教学请求和学生的听课请求)都转发给服务器B。当中转服务器检测到原属服务器发生故障后,需要重新进行一致性哈希,将接收到的请求重新分配到另一台服务器上。It should be noted that the relay server can send the teaching request and the lecture request for the same network classroom to the same server by means of consistent hashing. Consistent hashing is an algorithm for assigning requests. The main purpose is to realize that information about the same class number can be allocated all the time. On the same server. For example, all requests for class number 1 (including the teacher's teaching request and the student's class request) are forwarded to server A; all requests for class number 2 (including the teacher's teaching request and the student's class request) are forwarded. Give server B. When the transit server detects that the original server has failed, it needs to re-consist the hash and reassign the received request to another server.
步骤603,服务器接收中转服务器转发的发起客户端在已创建的网络课堂中进行教学时发送的教学请求。Step 603: The server receives a teaching request sent by the initiating client forwarded by the relay server when teaching in the created online classroom.
该教学请求是中转服务器在网络课堂的原属服务器发生故障后,重定向至本端服务器而转发的。本实施例中所述的服务器有别于发生故障的原属服务器,也即原属服务器之外的服务器。The teaching request is forwarded by the relay server after being redirected to the local server after the original server of the network classroom fails. The server described in this embodiment is different from the original server that has failed, that is, a server other than the original server.
步骤604,服务器检测是否存在与网络课堂对应的教学信息。In step 604, the server detects whether there is teaching information corresponding to the network classroom.
步骤605,若检测结果为不存在与网络课堂对应的教学信息,则服务器确定该网络课堂发生故障,向发起客户端发送教学信息的获取请求。Step 605: If the detection result is that there is no teaching information corresponding to the network classroom, the server determines that the network classroom is faulty, and sends an acquisition request of the teaching information to the initiating client.
需要注意的是,在本实施例中服务器与发起客户端或接收客户端之间传递的信息都是通过中转服务器来转发的。不同于图5A所示的实施例中只有一个服务器的情况。It should be noted that, in this embodiment, the information transmitted between the server and the originating client or the receiving client is forwarded through the transit server. This is different from the case where there is only one server in the embodiment shown in Fig. 5A.
步骤606,发起客户端接收服务器发送的教学信息的获取请求。Step 606: The initiating client receives an acquisition request of the teaching information sent by the server.
步骤607,发起客户端根据获取请求自动向服务器发送教学信息。Step 607: The initiating client automatically sends the teaching information to the server according to the obtaining request.
步骤608,服务器接收教学信息,根据教学信息检测发起客户端是否具有创建网络课堂的权限。Step 608: The server receives the teaching information, and detects, according to the teaching information, whether the originating client has the right to create a network classroom.
步骤609,若检测结果为发起客户端具有创建网络课堂的权限,则服务器根据发起客户端反馈的教学信息重新创建网络课堂。Step 609: If the detection result is that the originating client has the right to create a network classroom, the server recreates the network classroom according to the teaching information that is initiated by the client.
具体来讲,本步骤包括如下子步骤:Specifically, this step includes the following substeps:
1,服务器根据教学信息中网络课堂的标识创建网络课堂。1. The server creates an online classroom based on the logo of the online classroom in the teaching information.
2,若教学信息中包括有教学材料的下载地址,则服务器缓存下载地址,以使接收客户端根据该下载地址下载教学材料。2. If the teaching information includes a download address of the teaching material, the server caches the download address, so that the receiving client downloads the teaching material according to the download address.
3,若教学信息中包括有教学材料的展示进度,则服务器缓存展示进度,以使接收客户端根据该展示进度展示教学材料。3. If the teaching information includes the progress of the teaching materials, the server caches the progress of the presentation, so that the receiving client displays the teaching materials according to the progress of the exhibition.
当服务器重新创建好网络课堂后,网络课堂的接收客户端就可以听课了,具体有如下步骤:After the server re-creates the online classroom, the receiving client of the online classroom can listen to the class. The specific steps are as follows:
步骤610,接收客户端向服务器发送针对已创建的网络课堂的听课请求。 Step 610: The receiving client sends a course request to the server for the created network class.
网络课堂是服务器根据从发起客户端获取的教学信息重新创建的网络课堂。The online classroom is a network classroom that the server recreates based on the teaching information obtained from the originating client.
步骤611,中转服务器向服务器转发接收客户端向服务器发送的针对网络课堂的听课请求。Step 611: The relay server forwards the receiving request sent by the receiving client to the server for the network classroom to the server.
本步骤与步骤602类似,在此就不再赘述。This step is similar to step 602 and will not be described here.
步骤612,服务器接收中转服务器转发的接收客户端针对网络课堂发送的听课请求。Step 612: The server receives the lecture request sent by the receiving client forwarded by the relay server for the network classroom.
听课请求是中转服务器在网络课堂的原属服务器发生故障后,向网络课堂的听课请求重定向至本端服务器后转发的。The attendance request is that the relay server forwards the request to the network classroom after the failure of the original server in the network classroom, and then forwards it to the local server.
步骤613,服务器确定所述接收客户端对应的账户是否在所述网络课堂中。Step 613: The server determines whether the account corresponding to the receiving client is in the network classroom.
步骤614,若所述接收客户端对应的账户不在所述网络课堂中,则向所述接收客户端发送重新登录所述网络课堂的请求。Step 614: If the account corresponding to the receiving client is not in the network classroom, send a request for re-logging to the network classroom to the receiving client.
需要重新登录的网络课堂是服务器在已创建的网络课堂发生故障后,根据从发起客户端获取的教学信息重新创建的。The online classroom that needs to be logged in again is that the server is re-created based on the teaching information obtained from the originating client after the failed network classroom has been created.
步骤615,接收客户端接收重新登录网络课堂的请求。Step 615: The receiving client receives a request to re-login to the network classroom.
步骤616,接收客户端根据重新登录网络课堂的请求自动向服务器发送登录信息。Step 616: The receiving client automatically sends the login information to the server according to the request to re-log into the network classroom.
登录信息包括接收客户端的账号、登录密码等。The login information includes receiving the client's account number, login password, and the like.
步骤617,服务器根据授权登录信息授权接收客户端登录网络课堂。Step 617: The server authorizes the receiving client to log in to the network classroom according to the authorized login information.
当服务器对接收客户端的账号和登录密码验证通过之后,服务器授权该接收客户端登录网络课堂,该接收客户端就可以正常听课了。服务器可以将教学材料的下载地址和教学材料的展示进度发送给接收客户端,接收客户端在接收到下载地址和展示进度之后,可以根据下载地址下载教学材料,根据展示进度展示教学材料,接收客户端可以从网络课堂中断的地方继续听课。After the server verifies the receiving client's account and the login password, the server authorizes the receiving client to log into the network classroom, and the receiving client can normally attend the class. The server may send the download address of the teaching material and the progress of the teaching material to the receiving client. After receiving the download address and the progress of the display, the receiving client may download the teaching material according to the download address, display the teaching material according to the progress of the display, and receive the client. The end can continue to attend classes from where the online classroom is interrupted.
需要补充说明的是,上述步骤604至步骤617与图5A所示实施例中步骤503至步骤517类似,在此就不再赘述,具体可参照图5A所示实施例中的内容。It should be noted that the above steps 604 to 617 are similar to the steps 503 to 517 in the embodiment shown in FIG. 5A, and are not described herein again. For details, refer to the content in the embodiment shown in FIG. 5A.
综上所述,本实施例提供的网络课堂故障处理方法,通过获取发起客户端在已创建的网络课堂中进行教学时发送的教学请求;检测是否存在与网络课堂对应的教学信息;若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求,以使发起客户端反 馈教学信息;根据发起客户端根据获取请求自动反馈的教学信息重新创建网络课堂;解决了在教学活动过程中,若服务器发生故障,会导致服务器上有关该网络课堂的教学信息瞬间全部丢失,从而导致教学活动中止的问题;达到了即使服务器发生故障,也能及时重建网络课堂的效果,不会造成教学活动中止。In summary, the network classroom fault processing method provided in this embodiment obtains a teaching request sent by the initiating client when teaching in the created network classroom; and detects whether there is teaching information corresponding to the network classroom; if the detection result In order not to have the teaching information corresponding to the network classroom, it is determined that the network classroom is faulty, and the acquisition request of the teaching information is sent to the initiating client, so that the originating client is reversed. Feeding teaching information; re-creating the network classroom according to the teaching information that the originating client automatically feedbacks according to the obtaining request; solving the problem that if the server fails during the teaching activity, the teaching information about the network classroom on the server is lost all at once, thereby The problem that leads to the suspension of teaching activities; the effect of rebuilding the online classroom in time even if the server fails, will not cause the suspension of teaching activities.
另外,当原属服务器发生故障时,可以通过中转服务器将所有请求都转发到另一个服务器上,在另一个服务器上重新创建网络课堂,由另一个服务器继续为发起客户端和接收客户端提供服务。In addition, when the original server fails, all requests can be forwarded to another server through the transit server, the network classroom can be recreated on the other server, and the other server continues to serve the originating client and the receiving client. .
需要补充说明的是,上述步骤都是在发起客户端和接收客户端的后台进行的,因此用户本人实际上时不会看到上述步骤,当服务器发生故障和重建网络课堂时,用户仍能正常开课和正常听课,不需要进行重复操作。It should be added that the above steps are all performed in the background of the originating client and the receiving client. Therefore, the user does not actually see the above steps. When the server fails and the network classroom is rebuilt, the user can still start the class normally. And normal class, no need to repeat the operation.
以下为本申请的装置实施例,对于其中未详尽描述的细节,可以参考上述对应的方法实施例。The following is an apparatus embodiment of the present application. For details that are not described in detail, reference may be made to the corresponding method embodiments.
请参考图7,其示出了本申请一个实施例提供的网络课堂故障处理装置的结构示意图。该网络课堂故障处理装置可以通过软件、硬件或者两者的结合实现成为服务器的全部或者一部分。该网络课堂故障处理装置包括:第一获取模块720、第一检测模块740、第一发送模块760和课堂重建模块780;Please refer to FIG. 7, which is a schematic structural diagram of a network classroom fault processing apparatus according to an embodiment of the present application. The network classroom fault processing device can be implemented as all or part of the server by software, hardware or a combination of both. The network classroom fault processing apparatus includes: a first obtaining module 720, a first detecting module 740, a first sending module 760, and a classroom reconstruction module 780;
第一获取模块720,用于获取发起客户端在已创建的网络课堂中进行教学时发送的教学请求;The first obtaining module 720 is configured to acquire a teaching request sent by the initiating client when teaching in the created online classroom;
第一检测模块740,用于检测是否存在与网络课堂对应的教学信息;The first detecting module 740 is configured to detect whether there is teaching information corresponding to the network classroom;
第一发送模块760,用于若第一检测模块740检测到的检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求,以使发起客户端根据获取请求自动反馈教学信息;The first sending module 760 is configured to: if the detection result detected by the first detecting module 740 is that there is no teaching information corresponding to the network classroom, determine that the network classroom is faulty, and send an acquisition request of the teaching information to the initiating client, so that The initiating client automatically feeds back the teaching information according to the obtaining request;
课堂重建模块780,用于根据发起客户端反馈的教学信息重新创建网络课堂。The classroom reconstruction module 780 is configured to recreate the network classroom according to the teaching information that initiates the feedback from the client.
综上所述,本实施例提供的网络课堂故障处理装置,通过获取发起客户端在已创建的网络课堂中进行教学时发送的教学请求;检测是否存在与网络课堂对应的教学信息;若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求,以使发起客户端根据获取请求自动反馈教学信息;根据发起客户端反馈的教学信息重新创建网络课堂;解决了在教学活动过程中,若服务器发生故障,会导致服务器上有关该 网络课堂的教学信息瞬间全部丢失,从而导致教学活动中止的问题;达到了即使服务器发生故障,也能及时重建网络课堂的效果,不会造成教学活动中止。In summary, the network classroom fault processing apparatus provided in this embodiment obtains a teaching request sent by the initiating client when teaching in the created online classroom; and detects whether there is teaching information corresponding to the network classroom; if the detection result If there is no teaching information corresponding to the network classroom, it is determined that the network classroom is faulty, and the acquisition request of the teaching information is sent to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request; according to the teaching information initiated by the client. Re-creating the network classroom; solving the problem during the teaching activity, if the server fails, it will cause the server to The teaching information of the online classroom is lost in an instant, which leads to the suspension of the teaching activities; it can achieve the effect of rebuilding the online classroom in time even if the server fails, and will not cause the suspension of teaching activities.
请参考图8,其示出了本申请另一个实施例提供的网络课堂故障处理装置的结构示意图。该网络课堂故障处理装置可以通过软件、硬件或者两者的结合实现成为网络课堂的发起客户端的全部或者一部分。该网络课堂故障处理装置包括:第三发送模块820、第一接收模块840和第四发送模块860;Please refer to FIG. 8 , which is a schematic structural diagram of a network classroom fault processing apparatus according to another embodiment of the present application. The network classroom fault processing device can be implemented as all or part of the originating client of the network classroom by software, hardware or a combination of both. The network classroom fault processing apparatus includes: a third sending module 820, a first receiving module 840, and a fourth sending module 860;
第三发送模块820,用于向服务器发送针对已创建的网络课堂的教学请求,以使服务器检测是否存在与网络课堂对应的教学信息;若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求;The third sending module 820 is configured to send a teaching request for the created network classroom to the server, so that the server detects whether there is teaching information corresponding to the network classroom; if the detection result is that there is no teaching information corresponding to the network classroom, Determining that the network classroom has failed, and sending the acquisition request of the teaching information to the initiating client;
第一接收模块840,用于接收服务器发送的教学信息的获取请求;The first receiving module 840 is configured to receive an acquisition request of the teaching information sent by the server;
第四发送模块860,用于根据获取请求自动向服务器发送教学信息,以使服务器根据发起客户端反馈的教学信息重新创建网络课堂。The fourth sending module 860 is configured to automatically send the teaching information to the server according to the obtaining request, so that the server recreates the network classroom according to the teaching information that is initiated by the client.
综上所述,本实施例提供的网络课堂故障处理装置,通过向服务器发送针对网络课堂的教学请求;接收服务器发送的教学信息的获取请求;根据获取请求自动向服务器发送教学信息,以使服务器根据发起客户端反馈的教学信息重新创建网络课堂;解决了在教学活动过程中,若服务器发生故障,会导致服务器上有关该网络课堂的教学信息瞬间全部丢失,从而导致教学活动中止的问题;达到了即使服务器发生故障,也能及时重建网络课堂的效果,不会造成教学活动中止。In summary, the network classroom fault processing apparatus provided by the embodiment sends a teaching request for the network classroom to the server; receives the acquisition request of the teaching information sent by the server; and automatically sends the teaching information to the server according to the obtaining request, so as to enable the server Re-create the network classroom according to the teaching information of the client-sponsored feedback; solve the problem that if the server fails during the teaching activity, the teaching information about the network classroom on the server will be lost all the time, which leads to the suspension of the teaching activity; Even if the server fails, the effect of the online classroom can be reconstructed in time without causing the suspension of teaching activities.
请参考图9,其示出了本申请另一个实施例提供的网络课堂故障处理装置的结构示意图。该网络课堂故障处理装置可以通过软件、硬件或者两者的结合实现成为网络课堂的接收客户端的全部或者一部分。该网络课堂故障处理装置包括:第五发送模块920、第二接收模块940和第六发送模块960;Please refer to FIG. 9 , which is a schematic structural diagram of a network classroom fault processing apparatus according to another embodiment of the present application. The network classroom fault processing device can be implemented as all or part of the receiving client of the network classroom through software, hardware or a combination of both. The network classroom fault processing apparatus includes: a fifth sending module 920, a second receiving module 940, and a sixth sending module 960;
第五发送模块920,用于向服务器发送针对已创建的网络课堂的听课请求,以使服务器检测是否存在与听课请求对应的授权听课信息;若检测结果为不存在与听课请求对应的授权听课信息,则向接收客户端发送重新登录网络课堂的请求,需要重新登录的网络课堂是服务器在已创建的网络课堂发生故障后,根据从发起客户端获取的教学信息重新创建的; The fifth sending module 920 is configured to send a listening request for the created network classroom to the server, so that the server detects whether there is authorized listening information corresponding to the listening request; if the detection result is that there is no authorized listening information corresponding to the listening request Sending a request to re-login to the network classroom to the receiving client, and the network classroom that needs to be re-logged in is the server re-created according to the teaching information acquired from the initiating client after the network classroom fails to be created;
第二接收模块940,用于接收重新登录网络课堂的请求;a second receiving module 940, configured to receive a request to re-login to the network classroom;
第六发送模块960,用于根据重新登录网络课堂的请求自动向服务器发送登录信息,以使服务器根据登录信息授权接收客户端登录网络课堂。The sixth sending module 960 is configured to automatically send the login information to the server according to the request for re-login to the network classroom, so that the server authorizes the receiving client to log in to the network classroom according to the login information.
综上所述,本实施例提供的网络课堂故障处理装置,通过向服务器发送针对网络课堂的听课请求;接收重新登录网络课堂的请求;根据重新登录网络课堂的请求自动向服务器发送登录信息,以使服务器根据登录信息授权接收客户端登录网络课堂;解决了在教学活动过程中,若服务器发生故障,会导致服务器上有关该网络课堂的教学信息瞬间全部丢失,从而导致教学活动中止的问题;达到了即使服务器发生故障,也能及时重建网络课堂的效果,不会造成教学活动中止。In summary, the network classroom fault processing apparatus provided in this embodiment sends a request for recourse to the network classroom to the server; receives a request to re-log into the network classroom; and automatically sends the login information to the server according to the request to re-log into the network classroom, The server is authorized to receive the client login network classroom according to the login information; and solves the problem that if the server fails during the teaching activity, the teaching information about the network classroom on the server is lost all at once, thereby causing the suspension of the teaching activity; Even if the server fails, the effect of the online classroom can be reconstructed in time without causing the suspension of teaching activities.
请参考图10,其示出了本申请一个实施例提供的网络课堂故障处理系统的结构示意图。该网络课堂故障处理系统包括服务器700、发起客户端800和接收客户端900,服务器700、发起客户端800和接收客户端900通过网络互连,具体如下:Please refer to FIG. 10 , which is a schematic structural diagram of a network classroom fault processing system provided by an embodiment of the present application. The network classroom fault processing system includes a server 700, an initiating client 800, and a receiving client 900. The server 700, the initiating client 800, and the receiving client 900 are interconnected through a network, as follows:
服务器700,包括:第一获取模块720、第一检测模块740、第一发送模块760和课堂重建模块780;The server 700 includes: a first obtaining module 720, a first detecting module 740, a first sending module 760, and a classroom rebuilding module 780;
第一获取模块720,用于获取发起客户端在已创建的网络课堂中进行教学时发送的教学请求;The first obtaining module 720 is configured to acquire a teaching request sent by the initiating client when teaching in the created online classroom;
第一检测模块740,用于检测是否存在与网络课堂对应的教学信息;The first detecting module 740 is configured to detect whether there is teaching information corresponding to the network classroom;
第一发送模块760,用于若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求,以使发起客户端根据获取请求自动反馈教学信息;The first sending module 760 is configured to: if the detection result is that there is no teaching information corresponding to the network classroom, determine that the network classroom is faulty, and send a request for acquiring the teaching information to the initiating client, so that the initiating client automatically feeds back according to the obtaining request. Teaching information;
课堂重建模块780,用于根据发起客户端反馈的教学信息重新创建网络课堂。优选地,第一获取模块720,包括:The classroom reconstruction module 780 is configured to recreate the network classroom according to the teaching information that initiates the feedback from the client. Preferably, the first obtaining module 720 includes:
信号接收单元721,用于接收服务器重启信号,所述服务器重启信号是守护进程检测到所述本端服务器未正常工作时发送的;The signal receiving unit 721 is configured to receive a server restart signal, where the server restart signal is sent when the daemon detects that the local server is not working normally;
服务器重启单元722,用于根据所述服务器重启信号对所述本端服务器进行重启;The server restarting unit 722 is configured to restart the local server according to the server restart signal;
请求接收单元723,用于在对所述本端服务器进行重启之后,接收所述发起客户端在所述网络课堂中进行教学时发送的教学请求;或者, The request receiving unit 723 is configured to: after the restarting the local server, receive a teaching request sent by the initiating client when teaching in the network classroom; or
信号接收单元721,用于接收对应所述网络课堂的进程重启信号,所述进程重启信号是守护进程检测到所述网络课堂的进程未正常工作时发送的;The signal receiving unit 721 is configured to receive a process restart signal corresponding to the network classroom, where the process restart signal is sent when the daemon detects that the process of the network classroom is not working normally;
服务器重启单元722,用于根据所述进程重启信号对所述网络课堂的进程进行重启;The server restarting unit 722 is configured to restart the process of the network classroom according to the process restart signal;
请求接收单元723,用于在对所述网络课堂的进程进行重启之后,接收所述发起客户端在所述网络课堂中进行教学时发送的教学请求。The request receiving unit 723 is configured to, after restarting the process of the network classroom, receive a teaching request sent by the initiating client when teaching in the network classroom.
优选地,Preferably,
第一获取模块720,还用于在本端服务器为备用服务器,且本端服务器与发起客户端之间通过中转服务器相连时,接收中转服务器转发的发起客户端在已创建的网络课堂中进行教学时发送的教学请求,教学请求是中转服务器在网络课堂的原属服务器发生故障后,重定向至本端服务器而转发的。The first obtaining module 720 is further configured to: when the local server is a standby server, and the local server and the initiating client are connected through the transit server, the initiating client forwarded by the receiving server is taught in the created online classroom. When the teaching request is sent, the teaching request is forwarded by the relay server after being redirected to the local server after the original server of the network classroom fails.
优选地,服务器700,还包括:Preferably, the server 700 further includes:
第二获取模块790,用于获取接收客户端针对网络课堂发送的听课请求;The second obtaining module 790 is configured to acquire a listening request sent by the receiving client for the network classroom;
第二检测模块791,用于检测是否存在与听课请求对应的授权听课信息;The second detecting module 791 is configured to detect whether there is authorized listening information corresponding to the listening request;
第二发送模块792,用于若检测结果为不存在与听课请求对应的授权听课信息,则向接收客户端发送重新登录网络课堂的请求,以使接收客户端接收到重新登录网络课堂的请求之后向服务器发送登录信息;The second sending module 792 is configured to: if the detection result is that the authorized lecture information corresponding to the lecture request does not exist, send a request for re-logging to the network classroom to the receiving client, so that the receiving client receives the request to re-log into the network classroom Send login information to the server;
登录授权模块793,用于根据登录信息授权接收客户端登录网络课堂。The login authorization module 793 is configured to authorize the receiving client to log in to the network classroom according to the login information.
优选地,Preferably,
第二获取模块790,还用于在本端服务器为备用服务器,且本端服务器与发起客户端之间通过中转服务器相连时,接收中转服务器转发的接收客户端针对网络课堂发送的听课请求,听课请求是中转服务器在网络课堂的原属服务器发生故障后,将网络课堂的听课请求重定向至本端服务器后转发的。The second obtaining module 790 is further configured to: when the local server is a standby server, and the local server and the originating client are connected by the transit server, receive the listening request sent by the receiving client for the network classroom, and listen to the class. The request is that the relay server forwards the lecture request of the network classroom to the local server after the failure of the original server in the network classroom.
优选地,服务器700,还包括:Preferably, the server 700 further includes:
权限检测模块770,用于根据教学信息检测发起客户端是否具有创建网络课堂的权限;The permission detecting module 770 is configured to detect, according to the teaching information, whether the originating client has the right to create a network classroom;
课堂重建模块780,还用于若检测结果为发起客户端具有创建网络课堂的权限,则执行根据发起客户端反馈的教学信息重新创建网络课堂的步骤。The classroom reconstruction module 780 is further configured to perform the step of re-creating the network classroom according to the teaching information initiated by the client when the detection result is that the originating client has the right to create the network classroom.
优选地,课堂重建模块780,包括:Preferably, the classroom reconstruction module 780 includes:
课堂创建单元781,用于根据教学信息中网络课堂的标识创建网络课堂;The classroom creation unit 781 is configured to create a network classroom according to the identifier of the network classroom in the teaching information;
地址缓存单元782,用于若教学信息中包括教学教材的下载地址,则缓存 下载地址,以使接收客户端根据下载地址下载教学材料;The address buffer unit 782 is configured to: if the teaching information includes a download address of the teaching material, the cache Download the address so that the receiving client downloads the teaching materials according to the download address;
进度缓存单元783,用于若教学信息中包括有教学材料的展示进度,则缓存展示进度,以使接收客户端根据展示进度展示教学材料。The progress buffer unit 783 is configured to cache the display progress if the teaching information includes the progress of the presentation of the teaching materials, so that the receiving client displays the teaching materials according to the progress of the display.
发起客户端800,包括:第三发送模块820、第一接收模块840和第四发送模块860;The initiating client 800 includes: a third sending module 820, a first receiving module 840, and a fourth sending module 860;
第三发送模块820,用于向服务器发送针对已创建的网络课堂的教学请求,以使服务器检测是否存在与网络课堂对应的教学信息;若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求;The third sending module 820 is configured to send a teaching request for the created network classroom to the server, so that the server detects whether there is teaching information corresponding to the network classroom; if the detection result is that there is no teaching information corresponding to the network classroom, Determining that the network classroom has failed, and sending the acquisition request of the teaching information to the initiating client;
第一接收模块840,用于接收服务器发送的教学信息的获取请求;The first receiving module 840 is configured to receive an acquisition request of the teaching information sent by the server;
第四发送模块860,用于根据获取请求自动向服务器发送教学信息,以使服务器根据发起客户端反馈的教学信息重新创建网络课堂。The fourth sending module 860 is configured to automatically send the teaching information to the server according to the obtaining request, so that the server recreates the network classroom according to the teaching information that is initiated by the client.
接收客户端900,包括:第五发送模块920、第二接收模块940和第六发送模块960;The receiving client 900 includes: a fifth sending module 920, a second receiving module 940, and a sixth sending module 960;
第五发送模块920,用于向服务器发送针对已创建的网络课堂的听课请求,以使服务器检测是否存在与听课请求对应的授权听课信息;若检测结果为不存在与听课请求对应的授权听课信息,则向接收客户端发送重新登录网络课堂的请求,需要重新登录的网络课堂是服务器在已创建的网络课堂发生故障后,根据从发起客户端获取的教学信息重新创建的;The fifth sending module 920 is configured to send a listening request for the created network classroom to the server, so that the server detects whether there is authorized listening information corresponding to the listening request; if the detection result is that there is no authorized listening information corresponding to the listening request Sending a request to re-login to the network classroom to the receiving client, and the network classroom that needs to be re-logged in is the server re-created according to the teaching information acquired from the initiating client after the network classroom fails to be created;
第二接收模块940,用于接收重新登录网络课堂的请求;a second receiving module 940, configured to receive a request to re-login to the network classroom;
第六发送模块960,用于根据重新登录网络课堂的请求自动向服务器发送登录信息,以使服务器根据登录信息授权接收客户端登录网络课堂。The sixth sending module 960 is configured to automatically send the login information to the server according to the request for re-login to the network classroom, so that the server authorizes the receiving client to log in to the network classroom according to the login information.
综上所述,本实施例提供的网络课堂故障处理系统,通过获取发起客户端在已创建的网络课堂中进行教学时发送的教学请求;检测是否存在与网络课堂对应的教学信息;若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求,以使发起客户端根据获取请求自动反馈教学信息;根据发起客户端反馈的教学信息重新创建网络课堂;解决了在教学活动过程中,若服务器发生故障,会导致服务器上有关该网络课堂的教学信息瞬间全部丢失,从而导致教学活动中止的问题;达到了即使服务器发生故障,也能及时重建网络课堂的效果,不会造成教学活动中止。In summary, the network classroom fault processing system provided in this embodiment obtains a teaching request sent by the initiating client when teaching in the created network classroom; and detects whether there is teaching information corresponding to the network classroom; if the detection result If there is no teaching information corresponding to the network classroom, it is determined that the network classroom is faulty, and the acquisition request of the teaching information is sent to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request; according to the teaching information initiated by the client. Re-creating the network classroom; solving the problem of the server activity, if the server fails, the teaching information about the network classroom on the server will be lost all the time, which will lead to the suspension of teaching activities; even if the server fails, it can Rebuilding the effectiveness of the online classroom in a timely manner will not result in the suspension of teaching activities.
需要补充说明的是,上述步骤都是在发起客户端和接收客户端的后台进行 的,因此用户本人实际上时不会看到上述步骤,当服务器发生故障和重建网络课堂时,用户仍能正常开课和正常听课,不需要进行重复操作。It should be added that the above steps are all performed in the background of the originating client and the receiving client. Therefore, the user does not actually see the above steps. When the server fails and the network classroom is re-established, the user can still start the class normally and listen to the class normally, without repeating the operation.
请参考图11,其示出了本申请一个实施例提供的服务器的结构示意图。该服务器包括处理器1010、收发器1020和存储器1030,收发器1020和存储器1030分别与处理器1010连接,其中:Please refer to FIG. 11 , which is a schematic structural diagram of a server provided by an embodiment of the present application. The server includes a processor 1010, a transceiver 1020, and a memory 1030, and the transceiver 1020 and the memory 1030 are respectively coupled to the processor 1010, wherein:
收发器1020,用于获取已创建的网络课堂的发起客户端在网络课堂中进行教学时发送的教学请求;The transceiver 1020 is configured to acquire a teaching request sent by the initiating client of the created network classroom when teaching in the network classroom;
处理器1010,用于检测存储器1030中是否存在与网络课堂对应的教学信息;若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,触发收发器1020向发起客户端发送教学信息的获取请求,以使发起客户端根据获取请求自动反馈教学信息;The processor 1010 is configured to detect whether there is teaching information corresponding to the network classroom in the memory 1030. If the detection result is that there is no teaching information corresponding to the network classroom, determining that the network classroom is faulty, triggering the transceiver 1020 to send to the initiating client. A request for obtaining teaching information, so that the initiating client automatically feeds back the teaching information according to the obtaining request;
处理器1010,还用于根据发起客户端反馈的教学信息重新创建网络课堂。The processor 1010 is further configured to recreate the network classroom according to the teaching information that initiates the feedback of the client.
综上所述,本实施例提供的网络课堂故障处理系统,通过获取已创建的网络课堂的发起客户端在网络课堂中进行教学时发送的教学请求;检测是否存在与网络课堂对应的教学信息;若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求,以使发起客户端根据获取请求自动反馈教学信息;根据发起客户端反馈的教学信息重新创建网络课堂;解决了在教学活动过程中,若服务器发生故障,会导致服务器上有关该网络课堂的教学信息瞬间全部丢失,从而导致教学活动中止的问题;达到了即使服务器发生故障,也能及时重建网络课堂的效果,不会造成教学活动中止。In summary, the network classroom fault processing system provided by the embodiment obtains a teaching request sent by the originating client of the created web classroom in the online classroom; and detects whether there is teaching information corresponding to the network classroom; If the detection result is that there is no teaching information corresponding to the network classroom, it is determined that the network classroom is faulty, and the acquisition request of the teaching information is sent to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request; according to the initiating client feedback The teaching information re-creates the network classroom; solves the problem that if the server fails during the teaching activity, the teaching information about the network classroom on the server will be lost all the time, which leads to the suspension of the teaching activity; even if the server fails It can also rebuild the effect of the online classroom in time, and will not cause the suspension of teaching activities.
可选的,收发器1020,用于接收服务器重启信号,服务器重启信号是守护进程检测到本端服务器未正常工作时发送的;Optionally, the transceiver 1020 is configured to receive a server restart signal, where the server restart signal is sent when the daemon detects that the local server is not working normally;
处理器1010,用于根据服务器重启信号对本端服务器进行重启,在对本端服务器进行重启之后,触发收发器1020接收发起客户端在网络课堂中进行教学时发送的教学请求;或者,The processor 1010 is configured to restart the local server according to the server restart signal. After restarting the local server, the trigger transceiver 1020 receives the teaching request sent by the initiating client when teaching in the network classroom; or
收发器1020,用于接收对应网络课堂的进程重启信号,进程重启信号是守护进程检测到网络课堂的进程未正常工作时发送的;The transceiver 1020 is configured to receive a process restart signal corresponding to the network classroom, where the process restart signal is sent when the daemon detects that the process of the network classroom is not working normally;
处理器1010,用于根据进程重启信号对网络课堂的进程进行重启,在对网络课堂的进程进行重启之后,触发收发器1020接收发起客户端在网络课堂中 进行教学时发送的教学请求。The processor 1010 is configured to restart the process of the network classroom according to the process restart signal. After restarting the process of the network classroom, the trigger transceiver 1020 receives the originating client in the network classroom. A teaching request sent while teaching.
可选的,在本端服务器为备用服务器,且本端服务器与发起客户端之间通过中转服务器相连时,收发器1020,用于接收中转服务器转发的发起客户端在已创建的网络课堂中进行教学时发送的教学请求,教学请求是中转服务器在网络课堂的原属服务器发生故障后,重定向至本端服务器而转发的。Optionally, when the local server is an alternate server, and the local server is connected to the initiating client through the transit server, the transceiver 1020 is configured to receive the initiating client forwarded by the transit server in the created network classroom. The teaching request sent during teaching, the teaching request is forwarded by the relay server after the original server of the network classroom fails, and redirected to the local server.
可选的,收发器1020,还用于获取接收客户端针对网络课堂发送的听课请求;Optionally, the transceiver 1020 is further configured to acquire a listening request sent by the receiving client for the network classroom;
处理器1010,用于确定接收客户端对应的账户是否在网络课堂中;若接收客户端对应的账户不在网络课堂中,则触发收发器1020向接收客户端发送重新登录网络课堂的请求,以使接收客户端接收到重新登录网络课堂的请求之后向服务器发送携带有授权登录信息的登录请求;The processor 1010 is configured to determine whether the account corresponding to the receiving client is in the network classroom; if the account corresponding to the receiving client is not in the network classroom, the triggering transceiver 1020 sends a request for re-logging to the network classroom to the receiving client, so that After receiving the request for re-logging into the network classroom, the receiving client sends a login request carrying the authorized login information to the server;
处理器1010,还用于根据授权登录信息授权接收客户端登录网络课堂。The processor 1010 is further configured to authorize the receiving client to log in to the network classroom according to the authorized login information.
可选的,在本端服务器为备用服务器,且本端服务器与发起客户端之间通过中转服务器相连时,收发器1020,用于接收中转服务器转发的接收客户端针对网络课堂发送的听课请求,听课请求是中转服务器在网络课堂的原属服务器发生故障后,将网络课堂的听课请求重定向至本端服务器后转发的。Optionally, when the local server is a standby server, and the local server is connected to the initiating client through the transit server, the transceiver 1020 is configured to receive the receiving request sent by the receiving client forwarded by the transit server for the network classroom. The attendance request is that the relay server forwards the lecture request of the network classroom to the local server after the failure of the original server in the network classroom.
可选的,处理器1010,还用于根据教学信息检测发起客户端是否具有创建网络课堂的权限;若检测结果为发起客户端具有创建网络课堂的权限,则执行根据发起客户端反馈的教学信息重新创建网络课堂的步骤。Optionally, the processor 1010 is further configured to: according to the teaching information, whether the originating client has the right to create a network classroom; if the detection result is that the initiating client has the right to create a network classroom, performing the teaching information according to the initiated client feedback. Steps to recreate the web class.
可选的,处理器1010,用于根据教学信息中网络课堂的标识创建网络课堂;若教学信息中包括教学教材的下载地址,则存储器1030缓存下载地址,以使接收客户端根据下载地址下载教学材料;若教学信息中包括教学材料的展示进度,则存储器1030缓存展示进度,以使接收客户端根据展示进度展示教学材料。Optionally, the processor 1010 is configured to create a network classroom according to the identifier of the network classroom in the teaching information; if the teaching information includes a download address of the teaching material, the memory 1030 caches the download address, so that the receiving client downloads the teaching according to the download address. Material; if the teaching information includes the progress of the presentation of the teaching materials, the memory 1030 caches the progress of the presentation so that the receiving client displays the teaching materials according to the progress of the presentation.
请参考图12,其示出了本申请一个实施例提供的发起客户端的结构示意图。该发起客户端包括收发器1110、存储器1120和处理器1130,收发器1110与存储器1120分别于处理器1130连接,其中:Please refer to FIG. 12, which is a schematic structural diagram of an originating client provided by an embodiment of the present application. The originating client includes a transceiver 1110, a memory 1120, and a processor 1130. The transceiver 1110 and the memory 1120 are respectively connected to the processor 1130, where:
收发器1110,用于向服务器发送针对已创建的网络课堂的教学请求,以使服务器检测是否存在与网络课堂对应的教学信息,若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息 的获取请求;The transceiver 1110 is configured to send a teaching request for the created network classroom to the server, so that the server detects whether there is teaching information corresponding to the network classroom, and if the detection result is that there is no teaching information corresponding to the network classroom, determining the network Classroom failure, sending teaching information to the originating client Acquisition request;
收发器1110,还用于接收服务器发送的教学信息的获取请求;The transceiver 1110 is further configured to receive an acquisition request of the teaching information sent by the server;
处理器1130,用于根据获取请求自动触发收发器1110向服务器发送存储器1120中存储的教学信息,以使服务器根据发起客户端反馈的教学信息重新创建网络课堂。The processor 1130 is configured to automatically trigger the transceiver 1110 to send the teaching information stored in the memory 1120 to the server according to the acquisition request, so that the server recreates the network classroom according to the teaching information that initiates the client feedback.
请参考图13,其示出了本申请一个实施例提供的接收客户端的结构示意图。该接收客户端包括收发器1210、存储器1220和处理器1230,收发器1210和存储器1220连接,其中:Please refer to FIG. 13 , which is a schematic structural diagram of a receiving client provided by an embodiment of the present application. The receiving client includes a transceiver 1210, a memory 1220, and a processor 1230, and the transceiver 1210 is coupled to the memory 1220, wherein:
收发器1210,用于向服务器发送针对已创建的网络课堂的听课请求,以使服务器确定接收客户端对应的账户是否在网络课堂中,若接收客户端对应的账户不在网络课堂中,则向接收客户端发送重新登录网络课堂的请求,需要重新登录的网络课堂是服务器在已创建的网络课堂发生故障后,根据从发起客户端获取的教学信息重新创建的;The transceiver 1210 is configured to send a listening request for the created network classroom to the server, so that the server determines whether the account corresponding to the receiving client is in the network classroom, and if the account corresponding to the receiving client is not in the network classroom, receiving the request The client sends a request to re-login to the network classroom, and the network classroom that needs to be re-logged in is that the server re-creates according to the teaching information acquired from the initiating client after the created network classroom fails;
收发器1210,还用于接收重新登录网络课堂的请求;The transceiver 1210 is further configured to receive a request to re-login to the network classroom;
处理器1230,用于根据重新登录网络课堂的请求自动触发收发器1210向服务器发送携带有存储器1220中的授权登录信息的登录请求,以使服务器根据授权登录信息授权接收客户端登录网络课堂。The processor 1230 is configured to automatically trigger the transceiver 1210 to send a login request carrying the authorized login information in the memory 1220 to the server according to the request for re-login to the network classroom, so that the server authorizes the receiving client to log in to the network classroom according to the authorized login information.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present application are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The above is only the preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application are included in the protection of the present application. Within the scope.

Claims (28)

  1. 一种网络课堂故障处理方法,其特征在于,所述方法包括:A network classroom fault processing method, characterized in that the method comprises:
    获取已创建的网络课堂的发起客户端在所述网络课堂中进行教学时发送的教学请求;Obtaining a teaching request sent by an originating client of the created web classroom when teaching in the online classroom;
    检测是否存在与所述网络课堂对应的教学信息;Detecting whether there is teaching information corresponding to the network classroom;
    若检测结果为不存在与所述网络课堂对应的教学信息,则确定所述网络课堂发生故障,向所述发起客户端发送所述教学信息的获取请求,以使所述发起客户端根据所述获取请求自动反馈所述教学信息;If the detection result is that there is no teaching information corresponding to the network classroom, determining that the network classroom is faulty, and sending the acquisition request of the teaching information to the initiating client, so that the initiating client according to the Obtaining a request to automatically feed back the teaching information;
    根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂。Re-creating the network classroom according to the teaching information that is initiated by the client.
  2. 根据权利要求1所述的方法,其特征在于,所述获取已创建的网络课堂的发起客户端在所述网络课堂中进行教学时发送的教学请求,包括:The method according to claim 1, wherein the obtaining the teaching request sent by the originating client of the created web-based classroom when teaching in the web-based classroom comprises:
    接收服务器重启信号,所述服务器重启信号是守护进程检测到所述本端服务器未正常工作时发送的;根据所述服务器重启信号对所述本端服务器进行重启;在对所述本端服务器进行重启之后,接收所述发起客户端在所述网络课堂中进行教学时发送的教学请求,或者,Receiving a server restart signal, where the server restart signal is sent when the local server detects that the local server is not working normally; restarting the local server according to the server restart signal; performing the local server After restarting, receiving a teaching request sent by the initiating client when teaching in the online classroom, or
    接收对应所述网络课堂的进程重启信号,所述进程重启信号是守护进程检测到所述网络课堂的进程未正常工作时发送的,根据所述进程重启信号对所述网络课堂的进程进行重启,在对所述网络课堂的进程进行重启之后,接收所述发起客户端在所述网络课堂中进行教学时发送的教学请求。Receiving a process restart signal corresponding to the network classroom, where the process restart signal is sent when the daemon detects that the process of the network classroom is not working normally, and restarts the process of the network classroom according to the process restart signal. After restarting the process of the network classroom, receiving a teaching request sent by the initiating client when teaching in the network classroom.
  3. 根据权利要求1所述的方法,其特征在于,所述获取已创建的网络课堂的发起客户端在所述网络课堂中进行教学时发送的教学请求,包括:The method according to claim 1, wherein the obtaining the teaching request sent by the originating client of the created web-based classroom when teaching in the web-based classroom comprises:
    在本端服务器为备用服务器,且所述本端服务器与所述发起客户端之间通过中转服务器相连时,接收所述中转服务器转发的所述发起客户端在已创建的网络课堂中进行教学时发送的教学请求,所述教学请求是所述中转服务器在所述网络课堂的原属服务器发生故障后,重定向至所述本端服务器而转发的。When the local server is a standby server, and the local server is connected to the originating client through the transit server, the initiating client forwarded by the transit server is used to teach in the created online classroom. The teaching request is sent, and the teaching request is forwarded by the relay server after being redirected to the local server after the original server of the network classroom fails.
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂之前,还包括: The method according to any one of claims 1 to 3, wherein before the re-creating the network class according to the teaching information fed back by the initiating client, the method further comprises:
    根据所述教学信息检测所述发起客户端是否具有创建所述网络课堂的权限;Detecting, according to the teaching information, whether the originating client has the right to create the network classroom;
    若检测结果为所述发起客户端具有创建所述网络课堂的权限,则执行所述根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂的步骤。If the detection result is that the originating client has the right to create the network classroom, performing the step of re-creating the network classroom according to the teaching information fed back by the initiating client.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂,包括:The method according to any one of claims 1 to 4, wherein the re-creating the network classroom according to the teaching information fed back by the initiating client comprises:
    根据所述教学信息中所述网络课堂的标识创建所述网络课堂;Creating the network classroom according to the identifier of the network classroom in the teaching information;
    若所述教学信息中包括教学教材的下载地址,则缓存所述下载地址,以使所述接收客户端根据所述下载地址下载所述教学材料;If the teaching information includes a download address of the teaching material, the download address is cached, so that the receiving client downloads the teaching material according to the download address;
    若所述教学信息中包括教学材料的展示进度,则缓存所述展示进度,以使所述接收客户端根据所述展示进度展示所述教学材料。If the teaching information includes an exhibition progress of the teaching material, the display progress is cached, so that the receiving client displays the teaching material according to the display progress.
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    获取接收客户端针对所述网络课堂发送的听课请求;Obtaining a course request sent by the receiving client for the network class;
    确定所述接收客户端对应的账户是否在所述网络课堂中;Determining whether the account corresponding to the receiving client is in the network classroom;
    若所述接收客户端对应的账户不在所述网络课堂中,则向所述接收客户端发送重新登录所述网络课堂的请求,以使所述接收客户端接收到所述重新登录所述网络课堂的请求之后向所述服务器发送携带有授权登录信息的登录请求;Sending, to the receiving client, a request to re-login to the network classroom, if the account corresponding to the receiving client is not in the network classroom, so that the receiving client receives the re-login to the online classroom Sending a login request carrying authorized login information to the server after the request;
    根据所述授权登录信息授权所述接收客户端登录所述网络课堂。Authorizing the receiving client to log in to the network classroom according to the authorized login information.
  7. 根据权利要求6所述的方法,其特征在于,所述获取接收客户端针对所述网络课堂发送的听课请求,包括:The method of claim 6, wherein the obtaining a receiving request sent by the receiving client for the network class comprises:
    在本端服务器为备用服务器,且所述本端服务器与所述接收客户端之间通过中转服务器相连时,接收所述中转服务器转发的所述接收客户端针对所述网络课堂发送的听课请求,所述听课请求是所述中转服务器在所述网络课堂的原属服务器发生故障后,将所述网络课堂的听课请求重定向至所述本端服务器后转发的。When the local server is the standby server, and the local server is connected to the receiving client through the transit server, receiving the listening request sent by the receiving client for the network classroom, The listening request is that the relay server forwards the listening request of the network classroom to the local server after the failure of the original server of the network classroom.
  8. 一种网络课堂故障处理方法,其特征在于,用于在已创建的网络课堂进 行教学的发起客户端中,所述方法包括:A network classroom fault processing method, which is characterized in that it is used in an established network classroom In the initiating client of the line teaching, the method includes:
    向服务器发送针对所述已创建的网络课堂的教学请求,以使所述服务器检测是否存在与所述网络课堂对应的教学信息,若检测结果为不存在与所述网络课堂对应的教学信息,则确定所述网络课堂发生故障,向所述发起客户端发送所述教学信息的获取请求;Sending a teaching request for the created network classroom to the server, so that the server detects whether there is teaching information corresponding to the network classroom, and if the detection result is that there is no teaching information corresponding to the network classroom, Determining that the network classroom is faulty, and sending the acquisition request of the teaching information to the originating client;
    接收所述服务器发送的所述教学信息的获取请求;Receiving an acquisition request of the teaching information sent by the server;
    根据所述获取请求自动向所述服务器发送所述教学信息,以使所述服务器根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂。And automatically sending the teaching information to the server according to the obtaining request, so that the server re-creates the network classroom according to the teaching information fed back by the initiating client.
  9. 一种网络课堂故障处理方法,其特征在于,用于在已创建的网络课堂进行听课的接收客户端中,所述方法包括:A method for processing a network classroom fault, characterized in that, in a receiving client for attending a lecture in an created network classroom, the method includes:
    向服务器发送针对所述已创建的网络课堂的听课请求,以使所述服务器确定所述接收客户端对应的账户是否在所述网络课堂中,若所述接收客户端对应的账户不在所述网络课堂中,则向所述接收客户端发送重新登录所述网络课堂的请求,需要重新登录的网络课堂是所述服务器在所述已创建的网络课堂发生故障后,根据从发起客户端获取的教学信息重新创建的;Sending a course request for the created network class to the server, so that the server determines whether the account corresponding to the receiving client is in the network class, if the account corresponding to the receiving client is not in the network In the classroom, the request to re-login to the network classroom is sent to the receiving client, and the network classroom that needs to be re-logged in is the teaching obtained by the server after the fault occurs in the created network classroom. Information recreated;
    接收所述重新登录网络课堂的请求;Receiving the request to re-login to the network classroom;
    根据所述重新登录网络课堂的请求自动向所述服务器发送携带有授权登录信息的登录请求,以使所述服务器根据所述授权登录信息授权所述接收客户端登录所述网络课堂。And automatically sending, to the server, a login request carrying authorized login information according to the request for re-login to the network classroom, so that the server authorizes the receiving client to log in to the network classroom according to the authorized login information.
  10. 一种网络课堂故障处理装置,其特征在于,所述装置包括:A network classroom fault processing apparatus, characterized in that the apparatus comprises:
    第一获取模块,用于获取已创建的网络课堂的发起客户端在所述网络课堂中进行教学时发送的教学请求;a first obtaining module, configured to acquire a teaching request sent by an originating client of the created web classroom when teaching in the online classroom;
    第一检测模块,用于检测是否存在与所述网络课堂对应的教学信息;a first detecting module, configured to detect whether there is teaching information corresponding to the network classroom;
    第一发送模块,用于若检测结果为不存在与所述网络课堂对应的教学信息,则确定所述网络课堂发生故障,向所述发起客户端发送所述教学信息的获取请求,以使所述发起客户端根据所述获取请求自动反馈所述教学信息;a first sending module, configured to: if the detection result is that there is no teaching information corresponding to the network classroom, determine that the network classroom is faulty, and send the acquisition request of the teaching information to the initiating client, so that the The initiating client automatically feeds back the teaching information according to the obtaining request;
    课堂重建模块,用于根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂。 a classroom reconstruction module, configured to recreate the network classroom according to the teaching information that is initiated by the client.
  11. 根据权利要求10所述的装置,其特征在于,所述第一获取模块,包括:The device according to claim 10, wherein the first obtaining module comprises:
    信号接收单元,用于接收服务器重启信号,所述服务器重启信号是守护进程检测到所述本端服务器未正常工作时发送的;a signal receiving unit, configured to receive a server restart signal, where the server restart signal is sent when the daemon detects that the local server is not working normally;
    服务器重启单元,用于根据所述服务器重启信号对所述本端服务器进行重启;a server restarting unit, configured to restart the local server according to the server restart signal;
    请求接收单元,用于在对所述本端服务器进行重启之后,接收所述发起客户端在所述网络课堂中进行教学时发送的教学请求;或者,a request receiving unit, configured to receive, after restarting the local server, a teaching request sent by the initiating client when teaching in the network classroom; or
    信号接收单元,用于接收对应所述网络课堂的进程重启信号,所述进程重启信号是守护进程检测到所述网络课堂的进程未正常工作时发送的;a signal receiving unit, configured to receive a process restart signal corresponding to the network classroom, where the process restart signal is sent when the daemon detects that the process of the network classroom is not working normally;
    服务器重启单元,用于根据所述进程重启信号对所述网络课堂的进程进行重启;a server restarting unit, configured to restart the process of the network classroom according to the process restart signal;
    请求接收单元,用于在对所述网络课堂的进程进行重启之后,接收所述发起客户端在所述网络课堂中进行教学时发送的教学请求。The request receiving unit is configured to receive a teaching request sent by the initiating client when teaching in the network classroom after restarting the process of the network class.
  12. 根据权利要求10所述的装置,其特征在于,The device of claim 10 wherein:
    所述第一获取模块,还用于在本端服务器为备用服务器,且所述本端服务器与所述发起客户端之间通过中转服务器相连时,接收所述中转服务器转发的所述发起客户端在已创建的网络课堂中进行教学时发送的教学请求,所述教学请求是所述中转服务器在所述网络课堂的原属服务器发生故障后,重定向至所述本端服务器而转发的。The first obtaining module is further configured to receive the originating client forwarded by the transit server when the local server is a standby server, and the local server is connected to the initiating client through a transit server. A teaching request sent during teaching in the created network classroom, the teaching request being forwarded by the relay server after being redirected to the local server after the original server of the network classroom fails.
  13. 根据权利要求10-12任一项所述的装置,其特征在于,所述装置,还包括:The device according to any one of claims 10 to 12, wherein the device further comprises:
    权限检测模块,用于根据所述教学信息检测所述发起客户端是否具有创建所述网络课堂的权限;a permission detecting module, configured to detect, according to the teaching information, whether the originating client has the right to create the network classroom;
    所述课堂重建模块,还用于若检测结果为所述发起客户端具有创建所述网络课堂的权限,则执行所述根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂的步骤。The classroom reconstruction module is further configured to: if the detection result is that the initiating client has the right to create the network classroom, perform the re-creating the network classroom according to the teaching information fed back by the initiating client step.
  14. 根据权利要求10-13任一项所述的装置,其特征在于,所述课堂重建模块,包括: The apparatus according to any one of claims 10 to 13, wherein the classroom reconstruction module comprises:
    课堂创建单元,用于根据所述教学信息中所述网络课堂的标识创建所述网络课堂;a classroom creation unit, configured to create the network classroom according to the identifier of the network classroom in the teaching information;
    地址缓存单元,用于若所述教学信息中包括教学教材的下载地址,则缓存所述下载地址,以使所述接收客户端根据所述下载地址下载所述教学材料;An address buffering unit, configured to cache the download address if the teaching information includes a download address of the teaching material, so that the receiving client downloads the teaching material according to the download address;
    进度缓存单元,用于若所述教学信息中包括有教学材料的展示进度,则缓存所述展示进度,以使所述接收客户端根据所述展示进度展示所述教学材料。a progress buffer unit, configured to cache the display progress if the teaching information includes an exhibition progress of the teaching material, so that the receiving client displays the teaching material according to the display progress.
  15. 根据权利要求10-14任一项所述的装置,其特征在于,所述装置,还包括:The device according to any one of claims 10 to 14, wherein the device further comprises:
    第二获取模块,用于获取接收客户端针对所述已创建的网络课堂发送的听课请求;a second obtaining module, configured to acquire a listening request sent by the receiving client for the created network classroom;
    第二检测模块,用于确定所述接收客户端对应的账户是否在所述网络课堂中;a second detecting module, configured to determine whether an account corresponding to the receiving client is in the network classroom;
    第二发送模块,用于若所述接收客户端对应的账户不在所述网络课堂中,则向所述接收客户端发送重新登录所述网络课堂的请求,以使所述接收客户端接收到所述重新登录所述网络课堂的请求之后向所述服务器发送携带有授权登录信息的登录请求;a second sending module, configured to: if the account corresponding to the receiving client is not in the network classroom, send a request for re-logging to the network classroom to the receiving client, so that the receiving client receives the Sending a login request carrying authorized login information to the server after re-registering the request for the network classroom;
    登录授权模块,用于根据所述授权登录信息授权所述接收客户端登录所述网络课堂。The login authorization module is configured to authorize the receiving client to log in to the network classroom according to the authorized login information.
  16. 根据权利要求15所述的装置,其特征在于,The device of claim 15 wherein:
    所述第二获取模块,还用于在本端服务器为备用服务器,且所述本端服务器与所述接收客户端之间通过中转服务器相连时,接收所述中转服务器转发的所述接收客户端针对所述网络课堂发送的听课请求,所述听课请求是所述中转服务器在所述网络课堂的原属服务器发生故障后,将所述网络课堂的听课请求重定向至所述本端服务器后转发的。The second obtaining module is further configured to: when the local server is a standby server, and the local server and the receiving client are connected by the transit server, receive the receiving client forwarded by the transit server The listening request sent by the network classroom is that the relay server redirects the listening request of the network classroom to the local server after the primary server of the network classroom fails. of.
  17. 一种网络课堂故障处理装置,其特征在于,用于在已创建的网络课堂进行教学的发起客户端中,所述装置包括:A network classroom fault processing apparatus, characterized in that, in an originating client for teaching in an created network classroom, the apparatus comprises:
    第三发送模块,用于向服务器发送针对所述已创建的网络课堂的教学请求, 以使所述服务器检测是否存在与所述网络课堂对应的教学信息;若检测结果为不存在与所述网络课堂对应的教学信息,则确定所述网络课堂发生故障,向所述发起客户端发送所述教学信息的获取请求;a third sending module, configured to send, to the server, a teaching request for the created online classroom, The server is configured to detect whether there is teaching information corresponding to the network class; if the detection result is that there is no teaching information corresponding to the network class, determining that the network class has a failure, and sending the message to the initiating client The request for obtaining the teaching information;
    第一接收模块,用于接收所述服务器发送的所述教学信息的获取请求;a first receiving module, configured to receive an acquisition request of the teaching information sent by the server;
    第四发送模块,用于根据所述获取请求自动向所述服务器发送所述教学信息,以使所述服务器根据所述发起客户端反馈的所述教学信息重新创建所述网络课堂。And a fourth sending module, configured to automatically send the teaching information to the server according to the obtaining request, so that the server re-creates the network classroom according to the teaching information fed back by the initiating client.
  18. 一种网络课堂故障处理装置,其特征在于,用于在已创建的网络课堂进行听课的接收客户端中,所述装置包括:A network classroom fault processing apparatus, characterized in that, in a receiving client for attending a lecture in an created network classroom, the apparatus comprises:
    第五发送模块,用于向服务器发送针对所述已创建的网络课堂的听课请求,以使所述服务器确定所述接收客户端对应的账户是否在所述网络课堂中,若所述接收客户端对应的账户不在所述网络课堂中,则向所述接收客户端发送重新登录所述网络课堂的请求,需要重新登录的网络课堂是所述服务器在所述已创建的网络课堂发生故障后,根据从发起客户端获取的教学信息重新创建的;a fifth sending module, configured to send a listening request for the created network classroom to the server, so that the server determines whether the account corresponding to the receiving client is in the network classroom, if the receiving client If the corresponding account is not in the network classroom, sending a request to re-login to the network classroom to the receiving client, and the network classroom that needs to be logged in again is after the server fails in the created network classroom, according to the Re-created the teaching information obtained from the originating client;
    第二接收模块,用于接收所述重新登录网络课堂的请求;a second receiving module, configured to receive the request for re-login to the network classroom;
    第六发送模块,用于根据所述重新登录所述网络课堂的请求自动向所述服务器发送携带有授权登录信息的登录请求,以使所述服务器根据所述授权登录信息授权所述接收客户端登录所述网络课堂。a sixth sending module, configured to automatically send a login request carrying the authorized login information to the server according to the request for re-logging in the network classroom, so that the server authorizes the receiving client according to the authorized login information Log in to the online classroom.
  19. 一种网络课堂故障处理系统,其特征在于,所述系统包括至少一个网络课堂的发起客户端、至少一个网络课堂的接收客户端和服务器;A network classroom fault processing system, characterized in that the system comprises at least one originating client of the network classroom, at least one receiving client and server of the network classroom;
    所述服务器包括如权利要求10至16任一所述的网络课堂故障处理装置;The server includes the network classroom fault processing apparatus according to any one of claims 10 to 16;
    所述发起客户端包括如权利要求17所述的网络课堂故障处理装置;The originating client includes the network classroom fault processing apparatus according to claim 17;
    所述接收客户端包括如权利要求18所述的网络课堂故障处理装置。The receiving client comprises the network classroom fault handling device of claim 18.
  20. 一种服务器,其特征在于,包括处理器、收发器和存储器,其中:A server, comprising a processor, a transceiver, and a memory, wherein:
    所述收发器,用于获取已创建的网络课堂的发起客户端在网络课堂中进行教学时发送的教学请求;The transceiver is configured to acquire a teaching request sent by an originating client of the created web classroom when teaching in the network classroom;
    所述处理器,用于检测所述存储器中是否存在与网络课堂对应的教学信息;若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障, 触发所述收发器向发起客户端发送教学信息的获取请求,以使发起客户端根据获取请求自动反馈教学信息;The processor is configured to detect whether there is teaching information corresponding to the network classroom in the memory; if the detection result is that there is no teaching information corresponding to the network classroom, determining that the network classroom is faulty, Trimming the transceiver to send an acquisition request of the teaching information to the initiating client, so that the initiating client automatically feeds back the teaching information according to the obtaining request;
    所述处理器,还用于根据发起客户端反馈的教学信息重新创建网络课堂。The processor is further configured to recreate the network classroom according to the teaching information that is initiated by the client.
  21. 根据权利要求20所述的服务器,其特征在于,所述收发器,用于接收服务器重启信号,服务器重启信号是守护进程检测到本端服务器未正常工作时发送的;The server according to claim 20, wherein the transceiver is configured to receive a server restart signal, and the server restart signal is sent when the daemon detects that the local server is not working normally;
    所述处理器,用于根据服务器重启信号对本端服务器进行重启,在对本端服务器进行重启之后,触发所述收发器接收发起客户端在网络课堂中进行教学时发送的教学请求;或者,The processor is configured to restart the local server according to the server restart signal, and after restarting the local server, trigger the transceiver to receive a teaching request sent by the initiating client when teaching in the network classroom; or
    所述收发器,用于接收对应网络课堂的进程重启信号,进程重启信号是守护进程检测到网络课堂的进程未正常工作时发送的;The transceiver is configured to receive a process restart signal corresponding to the network classroom, and the process restart signal is sent when the daemon detects that the process of the network classroom is not working normally;
    所述处理器,用于根据进程重启信号对网络课堂的进程进行重启,在对网络课堂的进程进行重启之后,触发所述收发器接收发起客户端在网络课堂中进行教学时发送的教学请求。The processor is configured to restart the process of the network classroom according to the process restart signal, and after restarting the process of the network classroom, trigger the transceiver to receive the teaching request sent by the initiating client when teaching in the network classroom.
  22. 根据权利要求20或21所述的服务器,其特征在于,在本端服务器为备用服务器,且本端服务器与发起客户端之间通过中转服务器相连时,所述收发器,用于接收中转服务器转发的发起客户端在已创建的网络课堂中进行教学时发送的教学请求,教学请求是中转服务器在网络课堂的原属服务器发生故障后,重定向至本端服务器而转发的。The server according to claim 20 or 21, wherein when the local server is a standby server, and the local server is connected to the originating client through the transit server, the transceiver is configured to receive the forwarding of the transit server. The teaching request sent by the initiating client when teaching in the created online classroom, the teaching request is forwarded by the relay server after the original server of the network classroom fails, and redirected to the local server.
  23. 根据权利要求20中任一项所述的服务器,所述处理器,还用于根据教学信息检测发起客户端是否具有创建网络课堂的权限;若检测结果为发起客户端具有创建网络课堂的权限,则执行根据发起客户端反馈的教学信息重新创建网络课堂的步骤。The server according to any one of the preceding claims, wherein the processor is further configured to detect, according to the teaching information, whether the originating client has the right to create a network classroom; if the detection result is that the initiating client has the right to create a network classroom, Then, the step of re-creating the network classroom based on the teaching information of the initiated client feedback is performed.
  24. 根据权利要求20-23中任一项所述的服务器,其特征在于,所述处理器,用于根据教学信息中网络课堂的标识创建网络课堂;若教学信息中包括教学教材的下载地址,则所述存储器缓存下载地址,以使接收客户端根据下载地址下载教学材料;若教学信息中包括教学材料的展示进度,则所述存储器缓存展示 进度,以使接收客户端根据展示进度展示教学材料。The server according to any one of claims 20 to 23, wherein the processor is configured to create a network classroom according to the identifier of the network classroom in the teaching information; if the teaching information includes a download address of the teaching material, The memory caches the download address, so that the receiving client downloads the teaching material according to the download address; if the teaching information includes the progress of the teaching material, the memory cache display Progress so that the receiving client displays the teaching materials according to the progress of the presentation.
  25. 根据权利要求20-24中任一项所述的方法,其特征在于,所述收发器,还用于获取接收客户端针对网络课堂发送的听课请求;The method according to any one of claims 20 to 24, wherein the transceiver is further configured to acquire a listening request sent by the receiving client for the network classroom;
    所述处理器,用于确定接收客户端对应的账户是否在网络课堂中;若接收客户端对应的账户不在网络课堂中,则触发所述收发器向接收客户端发送重新登录网络课堂的请求,以使接收客户端接收到重新登录网络课堂的请求之后向服务器发送携带有授权登录信息的登录请求;The processor is configured to determine whether the account corresponding to the receiving client is in the network classroom; if the account corresponding to the receiving client is not in the network classroom, triggering, by the transceiver, a request to re-login to the network classroom to the receiving client, After the receiving client receives the request to re-log into the network classroom, sending a login request carrying the authorized login information to the server;
    所述处理器,还用于根据授权登录信息授权接收客户端登录网络课堂。The processor is further configured to authorize the receiving client to log in to the network classroom according to the authorized login information.
  26. 根据权利要求25所述的服务器,其特征在于,在本端服务器为备用服务器,且本端服务器与发起客户端之间通过中转服务器相连时,所述收发器,用于接收中转服务器转发的接收客户端针对网络课堂发送的听课请求,听课请求是中转服务器在网络课堂的原属服务器发生故障后,将网络课堂的听课请求重定向至本端服务器后转发的。The server according to claim 25, wherein when the local server is a standby server, and the local server is connected to the originating client through the transit server, the transceiver is configured to receive the receiving and forwarding of the transit server. The client requests the class to be sent to the network classroom. The class request is that the relay server forwards the class request of the network class to the local server after the failure of the original server in the network classroom.
  27. 一种发起客户端,其特征在于,包括处理器、收发器和存储器,其中:An originating client, comprising: a processor, a transceiver, and a memory, wherein:
    所述收发器,用于向服务器发送针对已创建的网络课堂的教学请求,以使服务器检测是否存在与网络课堂对应的教学信息,若检测结果为不存在与网络课堂对应的教学信息,则确定网络课堂发生故障,向发起客户端发送教学信息的获取请求;The transceiver is configured to send a teaching request for the created network classroom to the server, so that the server detects whether there is teaching information corresponding to the network classroom, and if the detection result is that there is no teaching information corresponding to the network classroom, determining The network classroom fails, and the acquisition request of the teaching information is sent to the initiating client;
    所述收发器,还用于接收服务器发送的教学信息的获取请求;The transceiver is further configured to receive an acquisition request of the teaching information sent by the server;
    所述处理器,用于根据获取请求自动触发所述收发器向服务器发送所述存储器中存储的教学信息,以使服务器根据发起客户端反馈的教学信息重新创建网络课堂。The processor is configured to automatically trigger the transceiver to send the teaching information stored in the memory to the server according to the obtaining request, so that the server recreates the network classroom according to the teaching information that is initiated by the client.
  28. 一种接收客户端,其特征在于,包括处理器、收发器和存储器,其中:A receiving client, comprising: a processor, a transceiver, and a memory, wherein:
    所述收发器,用于向服务器发送针对已创建的网络课堂的听课请求,以使服务器确定接收客户端对应的账户是否在网络课堂中,若接收客户端对应的账户不在网络课堂中,则向接收客户端发送重新登录网络课堂的请求,需要重新 登录的网络课堂是服务器在已创建的网络课堂发生故障后,根据从发起客户端获取的教学信息重新创建的;The transceiver is configured to send a listening request for the created network classroom to the server, so that the server determines whether the account corresponding to the receiving client is in the network classroom, and if the account corresponding to the receiving client is not in the network classroom, Receiving a request from the client to re-login to the online classroom needs to be re-requested The logged-in network classroom is created after the server fails in the created network classroom and is based on the teaching information obtained from the originating client;
    所述收发器,还用于接收重新登录网络课堂的请求;The transceiver is further configured to receive a request to re-login to the network classroom;
    所述处理器,用于根据重新登录网络课堂的请求自动触发所述收发器向服务器发送携带有所述存储器中的授权登录信息的登录请求,以使服务器根据授权登录信息授权接收客户端登录网络课堂。 The processor is configured to automatically trigger the transceiver to send a login request carrying the authorized login information in the memory to the server according to the request for re-login to the network classroom, so that the server authorizes the client to log in to the network according to the authorized login information. classroom.
PCT/CN2014/096013 2014-06-04 2014-12-31 Online class fault handling method, device and system WO2015184787A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410244864.8 2014-06-04
CN201410244864.8A CN104065646B (en) 2014-06-04 2014-06-04 Online class fault processing method, device and system

Publications (1)

Publication Number Publication Date
WO2015184787A1 true WO2015184787A1 (en) 2015-12-10

Family

ID=51553177

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/096013 WO2015184787A1 (en) 2014-06-04 2014-12-31 Online class fault handling method, device and system

Country Status (2)

Country Link
CN (1) CN104065646B (en)
WO (1) WO2015184787A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170545A (en) * 2018-01-08 2018-06-15 北京奇艺世纪科技有限公司 A kind of method for message transmission and device based on message-oriented middleware

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065646B (en) * 2014-06-04 2017-05-17 广州华多网络科技有限公司 Online class fault processing method, device and system
CN106209860B (en) * 2016-07-13 2021-07-30 杭州施强教育科技有限公司 Real-time classroom streaming media live broadcast load distribution method
CN107465738A (en) * 2017-08-01 2017-12-12 深圳市金立通信设备有限公司 A kind of communication means, server and computer-readable recording medium
CN109191955A (en) * 2018-08-02 2019-01-11 广州视源电子科技股份有限公司 Teaching Service providing method, device, system and equipment, medium
CN111176352A (en) * 2019-12-30 2020-05-19 中国铁道科学研究院集团有限公司电子计算技术研究所 Environment monitoring system and method in intelligent railway passenger station

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012836A (en) * 2009-09-07 2011-04-13 中国移动通信集团公司 Process survival control method and device
CN102509482A (en) * 2011-11-15 2012-06-20 北京瑞信在线系统技术有限公司 Multimedia teaching system based on mobile terminal framework
CN102508905A (en) * 2011-11-10 2012-06-20 江苏技术师范学院 Working method of fault diagnosis and recovery system for network teaching platform
CN104065646A (en) * 2014-06-04 2014-09-24 广州华多网络科技有限公司 Online class fault processing method, device and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1472713A (en) * 2003-05-16 2004-02-04 上海交通大学 Satellite multimedium bidirectional long-range real-time teaching systems
CN102354461A (en) * 2011-10-14 2012-02-15 北京市莱科智多教育科技有限公司 Reading system and reading device client, server as well as reading method thereof
WO2013181640A1 (en) * 2012-05-31 2013-12-05 MCDOUGALL, Christine, A. Virtual classroom management delivery system and method
CN103473962A (en) * 2013-09-02 2013-12-25 成都网席科技有限公司 Multimedia teaching analysis system and realizing method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012836A (en) * 2009-09-07 2011-04-13 中国移动通信集团公司 Process survival control method and device
CN102508905A (en) * 2011-11-10 2012-06-20 江苏技术师范学院 Working method of fault diagnosis and recovery system for network teaching platform
CN102509482A (en) * 2011-11-15 2012-06-20 北京瑞信在线系统技术有限公司 Multimedia teaching system based on mobile terminal framework
CN104065646A (en) * 2014-06-04 2014-09-24 广州华多网络科技有限公司 Online class fault processing method, device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170545A (en) * 2018-01-08 2018-06-15 北京奇艺世纪科技有限公司 A kind of method for message transmission and device based on message-oriented middleware

Also Published As

Publication number Publication date
CN104065646B (en) 2017-05-17
CN104065646A (en) 2014-09-24

Similar Documents

Publication Publication Date Title
WO2015184787A1 (en) Online class fault handling method, device and system
US10277697B2 (en) Method and system for pushing web application message
US11349931B2 (en) Session management for collaboration sessions
US9645910B1 (en) Cross platform mobile HTML debugging
CN109347795B (en) Login verification method, device, system, equipment and medium
US9652364B1 (en) Cloud service for mobile testing and debugging
US8590025B2 (en) Techniques for accessing a backup system
US11570158B2 (en) Efficient use of keystreams
US10705946B2 (en) Techniques for real time server testing in a production environment
US10152404B2 (en) Collaborative debugging
US20150195181A1 (en) Testing of dynamic web content applications
US20140129683A1 (en) Shared access to a remotely running application
US9323412B2 (en) Briefing tool having self-guided discovery and suggestion box features
US20150220505A1 (en) Enhanced audience interaction with a presenter of a presentation
US20220253268A1 (en) Smart screen share reception indicator in a conference
WO2022028124A1 (en) Screen projection state determination method, apparatus and device, and computer readable storage medium
CN111343488A (en) Screen multiparty sharing initiating, forwarding, responding and receiving method and interaction system
JP2016535908A (en) How to queue email web client notifications
WO2015096678A1 (en) Information interaction method, device and server
CN107659949B (en) Wireless router cloud service function interface test method and system
TW201438471A (en) Method for transmitting data
US20160085661A1 (en) Multi-Browser Testing For Web Applications
JP2013008322A (en) Virtualization system, and virtualization method
US20140267787A1 (en) System and method for monitoring video performance
US20150120828A1 (en) Recalling activities during communication sessions

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14893820

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11/05/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 14893820

Country of ref document: EP

Kind code of ref document: A1