CN110012456B - Method and device for dynamically switching scheduling group affiliation relationship of scheduling terminal - Google Patents
Method and device for dynamically switching scheduling group affiliation relationship of scheduling terminal Download PDFInfo
- Publication number
- CN110012456B CN110012456B CN201910130127.8A CN201910130127A CN110012456B CN 110012456 B CN110012456 B CN 110012456B CN 201910130127 A CN201910130127 A CN 201910130127A CN 110012456 B CN110012456 B CN 110012456B
- Authority
- CN
- China
- Prior art keywords
- scheduling
- terminal
- group
- relationship
- state
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/12—Wireless traffic scheduling
- H04W72/121—Wireless traffic scheduling for groups of terminals or users
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method and a device for dynamically switching the affiliation relationship of a scheduling group by a scheduling terminal, wherein the method comprises the following steps: setting a scheduling terminal to support attribution to a plurality of different scheduling groups, selecting any one scheduling group as a first scheduling group, and setting the attribution relationship between the scheduling terminal and the rest scheduling groups as a standby state; setting the affiliation relationship between the scheduling terminal and the first scheduling group as an activated state, so that the scheduling terminal starts to undertake the scheduling service of the first scheduling group; responding to the instruction of switching the home relationship of the scheduling group to the standby state, and switching the home relationship of the scheduling terminal and the first scheduling group to the standby state; and selecting one scheduling group in a standby state with the scheduling terminal as a second scheduling group, and switching the affiliation relationship between the scheduling terminal and the second scheduling group into an activated state, so that the scheduling terminal starts to bear the scheduling service of the second scheduling group, and the fast and automatic switching of the affiliation relationship among the scheduling groups during the operation of the scheduling terminal can be realized.
Description
Technical Field
The invention relates to the technical field of scheduling communication, in particular to a method and a device for dynamically switching the affiliation relationship of a scheduling group by a scheduling terminal.
Background
The dispatching communication system is composed of a dispatching server and dispatching terminals, is designed based on the mode that a dispatching group is composed of fixed dispatching terminals, and the attribution relationship of the components is determined by configuration data. And the scheduling terminal is designed based on the mode of belonging to a single scheduling group, and after the scheduling terminal determines the attribution of the scheduling group through configuration, the scheduling terminal can only bear the scheduling service of the scheduling group all the time, and can not dynamically change the attribution to other scheduling groups and bear the scheduling service during running. Therefore, the current scheduling communication system cannot rapidly assign the scheduling terminals to other scheduling groups, the data configuration needs to be modified manually, and the scheduling terminals need to be rerun and registered to realize the change, and cannot be modified rapidly and dynamically during the operation. Especially, when a regional disaster occurs, all scheduling terminals in one scheduling group are offline at the same time, and the scheduling communication system cannot timely add scheduling terminals of other scheduling groups to the scheduling group to take over scheduling services.
Disclosure of Invention
The embodiment of the invention provides a method and a device for dynamically switching the affiliation relationship of a scheduling group by a scheduling terminal, which can realize the fast and automatic switching of the affiliation relationship among a plurality of scheduling groups when the scheduling terminal runs and ensure the reliability of scheduling service.
An embodiment of the present invention provides a method for a scheduling terminal to dynamically switch an affiliation relationship of a scheduling group, including:
when detecting that a scheduling terminal is in a normal working state, setting the scheduling terminal to support attribution to a plurality of different scheduling groups, selecting any one scheduling group as a first scheduling group, and setting the attribution relationship between the scheduling terminal and the rest scheduling groups as a standby state;
setting the affiliation relationship between the scheduling terminal and the first scheduling group as an activated state, so that the scheduling terminal starts to undertake the scheduling service of the first scheduling group;
responding to an instruction of switching the home relationship of the scheduling group to a standby state, switching the home relationship of the scheduling terminal and the first scheduling group to the standby state, and stopping bearing the scheduling service of the first scheduling group;
selecting one scheduling group in a standby state with the scheduling terminal as a second scheduling group, and switching the affiliation of the scheduling terminal and the second scheduling group to an active state, so that the scheduling terminal starts to undertake the scheduling service of the second scheduling group.
As an improvement of the above scheme, the corresponding operation when the scheduling terminal is not in a normal working state is executed by the following steps:
when detecting that the scheduling terminal is not in a normal working state, setting the affiliation relationship between the scheduling terminal and all scheduling groups configured by the scheduling terminal to be in an offline state;
responding to an instruction that the home relationship of the switching scheduling group is in an activated state, selecting any scheduling group as a third scheduling group, and switching the home relationship of the scheduling terminal and the third scheduling group into an activated state, so that the scheduling terminal enters a normal working state and starts to bear the scheduling service of the third scheduling group;
and responding to an instruction of switching the home relationship of the scheduling groups to be in a standby state, and switching the home relationship of the scheduling terminal and the scheduling groups to be in the standby state, so that the scheduling terminal enters a normal working state.
As an improvement of the above, the method further comprises:
and when detecting that the home relationship between the scheduling terminal and any scheduling group is in an activated state, responding to an instruction for switching the home relationship between the scheduling groups to be in an offline state, and switching the home relationship between the scheduling terminal and all the scheduling groups to be in the offline state, so that the scheduling terminal exits from a normal working state.
As an improvement of the above, the method further comprises:
and when detecting that the home relations of the scheduling terminal and the scheduling groups are in a standby state, responding to an instruction for switching the home relations of the scheduling groups to be in an offline state, and switching the home relations of the scheduling terminal and all the scheduling groups to be in the offline state, so that the scheduling terminal exits from a normal working state.
As an improvement of the above, the method further comprises:
the scheduling server periodically detects the running state of the scheduling terminal and the affiliation relationship between the scheduling terminal and the scheduling group.
As an improvement of the above, the method further comprises:
when the scheduling server detects that any scheduling terminal does not exist in any scheduling group and the home relationship of the scheduling group is in an active state, whether a scheduling terminal which is in a standby state and the home relationship of the scheduling group exists in the scheduling group is detected.
As an improvement of the above, the method further comprises:
when the scheduling server detects that a scheduling terminal in a standby state exists in the scheduling group and the home relationship of the scheduling group, the scheduling server sends a request for switching the home relationship of the scheduling group into an activated state to a plurality of scheduling terminals in the scheduling group according to a preset strategy;
and the scheduling terminal responds to the request that the home relationship of the switching scheduling group is in an activated state, switches the home relationship of the scheduling terminal and the scheduling group into an activated relationship, and starts to bear the scheduling service of the scheduling group.
As an improvement of the above, the method further comprises:
when the scheduling server detects that no scheduling terminal with the home relationship of the scheduling group in the standby state exists in the scheduling group, the scheduling server waits for the scheduling terminal with the home relationship of the scheduling group in the active state to automatically recover the scheduling service of the scheduling group.
As an improvement of the above, the method further comprises:
when the scheduling server detects that no scheduling terminal with the home relationship of the scheduling group in a standby state exists in the scheduling group, the scheduling server waits for the scheduling terminal with the home relationship of the scheduling group in the standby state to appear in the scheduling group and sends a request for switching the home relationship of the scheduling group into an activated state to the scheduling terminal;
and the dispatching terminal responds to the request that the home relationship of the switching dispatching group is in an activated state, and switches the home relationship of the dispatching terminal and the dispatching group into an activated relationship.
Correspondingly, another embodiment of the present invention provides a device for dynamically switching an affiliation relationship of a scheduling group for a scheduling terminal, including:
the scheduling method comprises the steps that a first setting module is used for setting a scheduling terminal to support attribution to a plurality of different scheduling groups when the scheduling terminal is detected to be in a normal working state, selecting any one scheduling group as a first scheduling group, and setting the attribution relationship between the scheduling terminal and the rest scheduling groups as a standby state;
a second setting module, configured to set an affiliation relationship between the scheduling terminal and the first scheduling group to an active state, so that the scheduling terminal starts to undertake a scheduling service of the first scheduling group;
the first switching module is used for responding to the instruction that the home relationship of the switching scheduling group is in the standby state, switching the home relationship of the scheduling terminal and the first scheduling group into the standby state, and stopping bearing the scheduling service of the first scheduling group;
and the second switching module is used for selecting one scheduling group which is in a standby state with the scheduling terminal as a second scheduling group, and switching the affiliation relationship between the scheduling terminal and the second scheduling group into an activated state, so that the scheduling terminal starts to bear the scheduling service of the second scheduling group.
Compared with the prior art, the method and the device for dynamically switching the affiliation relationship of the scheduling group by the scheduling terminal disclosed by the embodiment of the invention have the advantages that when the scheduling terminal is detected to be in a normal working state, the scheduling terminal is set to support affiliation to a plurality of different scheduling groups, any one scheduling group is selected as a first scheduling group, and the affiliation relationship between the scheduling terminal and the rest scheduling groups is set to be in a standby state; setting the affiliation relationship between the scheduling terminal and the first scheduling group as an activated state, so that the scheduling terminal starts to undertake the scheduling service of the first scheduling group; responding to an instruction of switching the home relationship of the scheduling group to a standby state, switching the home relationship of the scheduling terminal and the first scheduling group to the standby state, and stopping bearing the scheduling service of the first scheduling group; selecting one scheduling group which is originally in a standby state with the scheduling terminal as a second scheduling group, switching the affiliation relationship between the scheduling terminal and the second scheduling group into an activated state, so that the scheduling terminal starts to undertake the scheduling service of the second scheduling group, adopting a mode of designing the scheduling terminal to support affiliation to a plurality of different scheduling groups, realizing that the affiliation relationship can be quickly and freely switched among the plurality of scheduling groups when the scheduling terminal operates, dynamically affiliating to one scheduling group, and undertaking the scheduling service of the scheduling group, thereby ensuring the reliability of the scheduling service, and being used as a standby scheduling terminal of one scheduling group, before the scheduling service is managed by switching the activated affiliation to the scheduling group, the standby scheduling terminal can be activated to affiliate to another scheduling group to undertake the scheduling service, thereby achieving the purpose of fully utilizing the scheduling terminal.
Drawings
Fig. 1 is a flowchart illustrating a method for a scheduling terminal to dynamically switch an affiliation of a scheduling group according to an embodiment of the present invention;
fig. 2 is a diagram illustrating an affiliation relationship between a scheduling terminal and a scheduling group before handover according to an embodiment of the present invention;
fig. 3 is a diagram illustrating an affiliation relationship between a scheduling terminal and a scheduling group after handover according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for dynamically switching an affiliation relationship of a scheduling group by a scheduling terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, it is a flowchart of a method for dynamically switching an affiliation relationship of a scheduling group by a scheduling terminal according to an embodiment of the present invention, where the method includes:
s11, when detecting that the dispatching terminal is in normal working state, setting the dispatching terminal to support attribution to a plurality of different dispatching groups, selecting any one of the dispatching groups as a first dispatching group, and setting the attribution relationship between the dispatching terminal and the rest dispatching groups as a standby state.
S12, setting the affiliation between the scheduling terminal and the first scheduling group as an active state, so that the scheduling terminal starts to undertake the scheduling service of the first scheduling group.
The dispatching terminal and the dispatching group have dynamic attribution relation, and the attribution relation is dynamically changed. The attribution state is a dynamic attribution relation describing the existence of the scheduling terminal and the scheduling group, and is divided into three states: "active", "standby", and "offline". The "active" state represents that the scheduling terminal is ready to operate and belongs to the scheduling group, and assumes the scheduling service of the scheduling group, such as: the incoming call is ringing, monitoring, answering and the like. The "standby" state represents that the scheduling terminal is ready to operate and allows subsequent handover to belong to the scheduling group, and does not currently assume the scheduling service of the scheduling group. The "offline" state represents that the scheduling terminal does not currently enter a normal working state.
Specifically, under the condition that configuration attribution is performed to a plurality of scheduling groups, a scheduling terminal supports maintaining an attribution state for each configuration attribution scheduling group, and the states are as follows: three types of "active", "standby" and "offline". At most, one scheduling terminal can activate the affiliation of one scheduling group, but there may be multiple scheduling terminals in one scheduling group that activate the affiliation. In specific implementation, after the scheduling terminal is ready to be online, at a time point, the attribution state of one scheduling group paired with the scheduling terminal can be set to be 'activated' at most, which indicates that the scheduling terminal currently belongs to the scheduling group and undertakes scheduling service; meanwhile, the scheduling terminal is allowed to set the attribution state of other scheduling groups to a 'standby' state, which means that the scheduling terminal is allowed to undertake new scheduling services in the subsequent switching attribution to the scheduling groups.
Referring to fig. 2, it is a diagram of an affiliation relationship between a scheduling terminal and a scheduling group before handover according to an embodiment of the present invention, specifically, a terminal 1 and a scheduling group 1 are active affiliations and undertake a scheduling service of the scheduling group 1; the terminal 2 is active attribution with the scheduling group 1, is standby attribution with the scheduling group 2 and the scheduling group 3, and undertakes scheduling service of the scheduling group 1; the terminal 3 is active attribution with the dispatching group 2 and standby attribution with the dispatching group 1, and undertakes the dispatching service of the dispatching group 2; the terminal 4 is standby attribution with the scheduling group 2 and active attribution with the scheduling group 3, and undertakes the scheduling service of the scheduling group 3.
S13, responding to the command of switching the home relationship of the scheduling group to the standby state, switching the home relationship of the scheduling terminal and the first scheduling group to the standby state, and stopping bearing the scheduling service of the first scheduling group.
S14, selecting one scheduling group in standby state with the scheduling terminal as a second scheduling group, and switching the affiliation of the scheduling terminal and the second scheduling group to active state, so that the scheduling terminal starts to undertake the scheduling service of the second scheduling group.
It should be noted that, the assignment relationship of the scheduling group is switched by changing the assignment state of the scheduling group. The design of the dispatching service system realizes the switching of the attribution relationship of the dispatching group in two ways: (1) the scheduling server automatically decides the request switching according to the seat state change of the scheduling group on the basis of the scheduling group attribution and service state function reported by the original monitoring scheduling terminal; (2) and manually initiating switching through a scheduling terminal.
Specifically, the scheduling server initiates a request for switching the home state to the scheduling terminal, changes the home state of the scheduling terminal originally bearing the scheduling service of the scheduling group and the scheduling group from "active" to "standby", and changes the home state of the scheduling terminal and another scheduling group from "standby" to "active". And after the dispatching terminal is switched to the new dispatching group, the dispatching terminal undertakes the dispatching service of the new dispatching group. In the switching, an operation interface, a system configuration, and the like of the scheduling terminal may be changed.
Referring to fig. 3, which is a diagram of the affiliation relationship between the scheduling terminal and the scheduling group after switching according to an embodiment of the present invention, the affiliation relationship between the terminal 2 and the scheduling group 1 is switched from "active" to "standby", and the terminal stops taking charge of the scheduling service of the scheduling group 1. The affiliation of the terminal 2 and the scheduling group 3 is switched from "standby" to "active", and starts to assume the scheduling service of the scheduling group 3.
In an optional embodiment, the method for dynamically switching the affiliation of the scheduling group by the scheduling terminal further includes, when the scheduling terminal does not enter a normal operating state, corresponding operating conditions including:
when detecting that the scheduling terminal is not in a normal working state, setting the affiliation relationship between the scheduling terminal and all scheduling groups configured by the scheduling terminal to be in an offline state;
responding to an instruction that the home relationship of the switching scheduling group is in an activated state, selecting any scheduling group as a third scheduling group, and switching the home relationship of the scheduling terminal and the third scheduling group into an activated state, so that the scheduling terminal enters a normal working state and starts to bear the scheduling service of the third scheduling group;
and responding to an instruction of switching the home relationship of the scheduling groups to be in a standby state, and switching the home relationship of the scheduling terminal and the scheduling groups to be in the standby state, so that the scheduling terminal enters a normal working state.
Specifically, when the scheduling terminal does not enter the normal working state, it indicates that the scheduling terminal and all the scheduling group attribution states configured by the scheduling terminal are offline. When the dispatching server initiates a request for switching the attribution relationship of the dispatching group to the dispatching terminal, the dispatching terminal responds to the request to execute corresponding operation. Optionally, if the request is an instruction for switching the home relationship of the scheduling group to the active state, the home relationship of the scheduling terminal and any scheduling group is switched to the active state, so that the scheduling terminal enters a normal working state and executes the scheduling service of the scheduling group. Optionally, if the request is an instruction for switching the home relationship of the scheduling group to the standby state, the home relationship of the scheduling terminal and any scheduling group is switched to the standby state, so that the scheduling terminal enters a normal working state and waits for taking over the scheduling service.
In an optional embodiment, when detecting that the affiliation relationship between the scheduling terminal and any scheduling group is in an active state, responding to an instruction for switching the affiliation relationship between the scheduling group and all scheduling groups to be in an offline state, and switching the affiliation relationship between the scheduling terminal and all scheduling groups to be in the offline state, so that the scheduling terminal exits from a normal working state.
In an optional embodiment, when detecting that the affiliation relationship between the scheduling terminal and the plurality of scheduling groups is in the standby state, responding to an instruction for switching the affiliation relationship between the scheduling group and all scheduling groups to be in the offline state, and switching the affiliation relationship between the scheduling terminal and all scheduling groups to be in the offline state, so that the scheduling terminal exits from the normal working state.
As shown in fig. 3, the affiliation between the terminal 4 and the scheduling group 2 is switched from the standby state to the offline state, the affiliation between the terminal 4 and the scheduling group 3 is switched from the active state to the offline state, the scheduling service of the scheduling group 3 is stopped to be executed, and the terminal 4 exits from the normal operating state.
According to the method for dynamically switching the affiliation relationship of the scheduling group by the scheduling terminal, provided by the embodiment of the invention, when the scheduling terminal is detected to be in a normal working state, the scheduling terminal is set to support affiliation to a plurality of different scheduling groups, any one scheduling group is selected as a first scheduling group, and the affiliation relationship between the scheduling terminal and the rest scheduling groups is set to be in a standby state; setting the affiliation relationship between the scheduling terminal and the first scheduling group as an activated state, so that the scheduling terminal starts to undertake the scheduling service of the first scheduling group; responding to an instruction of switching the home relationship of the scheduling group to a standby state, switching the home relationship of the scheduling terminal and the first scheduling group to the standby state, and stopping bearing the scheduling service of the first scheduling group; selecting one scheduling group which is in a standby state with the scheduling terminal as a second scheduling group, switching the affiliation relationship between the scheduling terminal and the second scheduling group into an active state, so that the scheduling terminal starts to undertake the scheduling service of the second scheduling group, and a mode of designing the scheduling terminal to support attribution to a plurality of different scheduling groups is adopted, the dispatching terminal can realize that the dispatching terminal can rapidly and freely switch the attribution relationship among a plurality of dispatching groups and dynamically attributing to one dispatching group when in operation without manually modifying configuration data, and undertakes the scheduling service of the scheduling group, further ensures the reliability of the scheduling service, and is used as a standby scheduling terminal of the scheduling group, before the switching activation attribution to the dispatching group manages the dispatching service, the attribution to another dispatching group can be activated to undertake the dispatching service, thereby achieving the purpose of fully utilizing the dispatching terminal.
In another preferred embodiment, on the basis of the foregoing embodiments, the method for dynamically switching the scheduling group affiliation by the scheduling terminal further includes that the scheduling server periodically detects the operating state of the scheduling terminal and the affiliation and affiliation status of the scheduling terminal and the scheduling group.
It should be noted that, in a scheduling group, a plurality of scheduling terminals are allowed to be set to "active", "standby" or "offline" states in the home state of the scheduling group. If the home state of any scheduling terminal in a scheduling group is not in the 'active' state, the scheduling service of the scheduling group cannot be performed. Therefore, the scheduling server needs to detect the operation states, the affiliation relationships and the affiliation states of all scheduling groups and scheduling terminals periodically, and timely and dynamically switch the affiliation relationships by requesting the scheduling terminals, so that the affiliation state of at least one scheduling terminal in each scheduling group is activated, and the reliability of the scheduling service of the scheduling group is guaranteed.
Further, when the scheduling server detects that no scheduling terminal exists in any scheduling group and the home relationship between the scheduling terminal and the scheduling group is in an active state, it detects whether a scheduling terminal exists in the scheduling group and the home relationship between the scheduling terminal and the scheduling group is in a standby state.
Preferably, in this embodiment, the scheduling server detects that the scheduling service of the scheduling group cannot be performed as a trigger condition for automatic switching, and the scheduling server may also initiate an instruction for switching the affiliation according to a predefined trigger condition.
Optionally, when the scheduling server detects that there is a scheduling terminal in the standby state with an affiliation relationship with the scheduling group in the scheduling group, the scheduling server sends a request for switching the affiliation relationship of the scheduling group to an active state to a plurality of scheduling terminals in the scheduling group according to a preset policy;
and the scheduling terminal responds to the request that the home relationship of the switching scheduling group is in an activated state, switches the home relationship of the scheduling terminal and the scheduling group into an activated relationship, and starts to bear the scheduling service of the scheduling group.
The preset policy may be a load sharing principle. In specific implementation, if there is a scheduling terminal in a standby home state in the scheduling group, the scheduling server initiates a request to switch the home relationship of the scheduling group to one or more scheduling terminals according to a load sharing principle, so that the home relationship between the scheduling terminal and the scheduling group is switched from the standby state to an active state, and the scheduling service of the scheduling group is managed. Meanwhile, the scheduling server and other scheduling terminals can obtain the relevant information of the switching operation. In the scheduling group in which the home state changes, all scheduling terminals in the non-offline state can acquire the relevant information of the switching operation, and specifically, the relevant information may include the name of the scheduling terminal in which the home state changes, the state of the change, the time, the reason, and the like.
Optionally, when the scheduling server detects that there is no scheduling terminal in the standby state with the home relationship of the scheduling group in the scheduling group, the scheduling server waits for a scheduling terminal in the active state with the home relationship of the scheduling group in the scheduling group, so that the scheduling service of the scheduling group is automatically recovered.
Optionally, when the scheduling server detects that there is no scheduling terminal in the scheduling group whose home relationship with the scheduling group is in a standby state, the scheduling server waits for the scheduling terminal in the scheduling group whose home relationship with the scheduling group is in the standby state to appear, and sends a request for switching the home relationship of the scheduling group to an active state to the scheduling terminal;
and the dispatching terminal responds to the request that the home relationship of the switching dispatching group is in an activated state, and switches the home relationship of the dispatching terminal and the dispatching group into an activated relationship.
The method for dynamically switching the affiliation relationship of the scheduling group by the scheduling terminal provided by the embodiment regularly detects the running states, the affiliations and the affiliations of all the scheduling groups and the scheduling terminal by designing the scheduling server, and ensures the reliability of the scheduling service of each scheduling group by issuing the request for dynamically switching the affiliations of the scheduling terminals.
Referring to fig. 4, a schematic structural diagram of an apparatus for dynamically switching an affiliation relationship of a scheduling terminal according to an embodiment of the present invention is shown, where the apparatus includes:
a first setting module 11, configured to, when detecting that a scheduling terminal is in a normal operating state, set the scheduling terminal to support affiliation to multiple different scheduling groups, select any one of the scheduling groups as a first scheduling group, and set an affiliation relationship between the scheduling terminal and the remaining scheduling groups as a standby state;
a second setting module 12, configured to set an affiliation relationship between the scheduling terminal and the first scheduling group to an active state, so that the scheduling terminal starts to undertake the scheduling service of the first scheduling group;
a first switching module 13, configured to switch, in response to an instruction for switching the home relationship of the scheduling group to the standby state, the home relationship between the scheduling terminal and the first scheduling group to the standby state, and stop undertaking the scheduling service of the first scheduling group;
a second switching module 14, configured to select one scheduling group that is in a standby state with the scheduling terminal as a second scheduling group, and switch the affiliation between the scheduling terminal and the second scheduling group to an active state, so that the scheduling terminal starts to undertake the scheduling service of the second scheduling group.
Preferably, the apparatus for dynamically switching the scheduling group affiliation by the scheduling terminal further includes:
the first setting unit is used for setting the affiliation relationship between the scheduling terminal and all scheduling groups configured by the scheduling terminal to be in an offline state when the scheduling terminal is detected not to be in a normal working state;
an offline state switching to active state unit, configured to, in response to an instruction for switching the home relationship of the scheduling group to the active state, select any one of the scheduling groups as a third scheduling group, and switch the home relationship between the scheduling terminal and the third scheduling group to the active state, so that the scheduling terminal enters a normal working state and starts to undertake the scheduling service of the third scheduling group;
and the offline state switching to standby state unit is used for responding to an instruction of switching the dispatching group attribution relationship to the standby state, and switching the attribution relationship between the dispatching terminal and the dispatching groups to the standby state, so that the dispatching terminal enters a normal working state.
Preferably, the apparatus for dynamically switching the scheduling group affiliation by the scheduling terminal further includes:
and the activation state switching to offline state unit is used for responding to an instruction that the dispatching group home relationship is switched to the offline state when detecting that the home relationship between the dispatching terminal and any dispatching group is the activation state, and switching the home relationship between the dispatching terminal and all dispatching groups to the offline state so as to enable the dispatching terminal to exit from the normal working state.
And the standby state switching to offline state unit is used for responding to an instruction that the home relationship of the switching scheduling group is the offline state when detecting that the home relationship of the scheduling terminal and the scheduling groups is the standby state, and switching the home relationship of the scheduling terminal and all the scheduling groups to the offline state so as to enable the scheduling terminal to exit the normal working state.
Preferably, the apparatus for dynamically switching the scheduling group affiliation by the scheduling terminal further includes:
and the automatic detection unit is used for periodically detecting the running state of the scheduling terminal and the affiliation relationship between the scheduling terminal and the scheduling group by the scheduling server.
Preferably, the automatic detection unit includes:
and the standby scheduling terminal detecting unit is used for detecting whether a scheduling terminal in a standby state with the home relationship of the scheduling group exists in the scheduling group or not when the scheduling server detects that the home relationship of any scheduling terminal and the scheduling group does not exist in any scheduling group is in an active state.
Preferably, the automatic detection unit further includes:
a switching activation attribution request unit, configured to, when the scheduling server detects that there is a scheduling terminal in a standby state with an attribution relationship with the scheduling group in the scheduling group, send, by the scheduling server, a request for switching the attribution relationship of the scheduling group to an active state to a plurality of scheduling terminals in the scheduling group according to a preset policy;
a first response unit, configured to, in response to the request for switching the home relationship of the scheduling group to the active state, the scheduling terminal switches the home relationship between the scheduling terminal and the scheduling group to the active relationship, and starts to undertake the scheduling service of the scheduling group.
Preferably, the automatic detection unit further includes:
and the first waiting unit is used for waiting for the scheduling terminal which is in the active state with the home relationship of the scheduling group to appear in the scheduling group when the scheduling server detects that the scheduling terminal which is in the standby state with the home relationship of the scheduling group does not exist in the scheduling group, so that the scheduling service of the scheduling group is automatically recovered.
A second waiting unit, configured to, when the scheduling server detects that there is no scheduling terminal in the scheduling group whose home relationship with the scheduling group is in a standby state, wait for the scheduling terminal in the scheduling group whose home relationship with the scheduling group is in the standby state to appear in the scheduling group, and send a request for switching the home relationship of the scheduling group to an active state to the scheduling terminal;
and the second response unit is used for responding to the request for switching the home relationship of the scheduling group to the activated state by the scheduling terminal, and switching the home relationship of the scheduling terminal and the scheduling group to the activated relationship.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
Claims (10)
1. A method for dynamically switching the affiliation relationship of a scheduling group by a scheduling terminal is characterized by comprising the following steps:
when detecting that a scheduling terminal is in a normal working state, setting the scheduling terminal to support attribution to a plurality of different scheduling groups, selecting any one scheduling group as a first scheduling group, and setting the attribution relationship between the scheduling terminal and the rest scheduling groups as a standby state;
setting the affiliation relationship between the scheduling terminal and the first scheduling group as an activated state, so that the scheduling terminal starts to undertake the scheduling service of the first scheduling group;
responding to an instruction of switching the home relationship of the scheduling group to a standby state, switching the home relationship of the scheduling terminal and the first scheduling group to the standby state, and stopping bearing the scheduling service of the first scheduling group;
selecting one scheduling group in a standby state with the scheduling terminal as a second scheduling group, and switching the affiliation of the scheduling terminal and the second scheduling group to an active state, so that the scheduling terminal starts to undertake the scheduling service of the second scheduling group.
2. The method according to claim 1, wherein the corresponding operation when the scheduling terminal is not in a normal working state is executed through the following steps:
when detecting that the scheduling terminal is not in a normal working state, setting the affiliation relationship between the scheduling terminal and all scheduling groups configured by the scheduling terminal to be in an offline state;
responding to an instruction that the home relationship of the switching scheduling group is in an activated state, selecting any scheduling group as a third scheduling group, and switching the home relationship of the scheduling terminal and the third scheduling group into an activated state, so that the scheduling terminal enters a normal working state and starts to bear the scheduling service of the third scheduling group;
and responding to an instruction of switching the home relationship of the scheduling groups to be in a standby state, and switching the home relationship of the scheduling terminal and the scheduling groups to be in the standby state, so that the scheduling terminal enters a normal working state.
3. The method for scheduling a terminal to dynamically switch scheduling group affiliations as claimed in claim 1, wherein the method further comprises:
and when detecting that the home relationship between the scheduling terminal and any scheduling group is in an activated state, responding to an instruction for switching the home relationship between the scheduling groups to be in an offline state, and switching the home relationship between the scheduling terminal and all the scheduling groups to be in the offline state, so that the scheduling terminal exits from a normal working state.
4. The method for scheduling a terminal to dynamically switch scheduling group affiliations as claimed in claim 1, wherein the method further comprises:
and when detecting that the home relations of the scheduling terminal and the scheduling groups are in a standby state, responding to an instruction for switching the home relations of the scheduling groups to be in an offline state, and switching the home relations of the scheduling terminal and all the scheduling groups to be in the offline state, so that the scheduling terminal exits from a normal working state.
5. The method for scheduling a terminal to dynamically switch scheduling group affiliations as claimed in claim 1, wherein the method further comprises:
the scheduling server periodically detects the running state of the scheduling terminal and the affiliation relationship between the scheduling terminal and the scheduling group.
6. The method for scheduling a terminal to dynamically switch scheduling group affiliations as claimed in claim 5, wherein the method further comprises:
when the scheduling server detects that any scheduling terminal does not exist in any scheduling group and the home relationship of the scheduling group is in an active state, whether a scheduling terminal which is in a standby state and the home relationship of the scheduling group exists in the scheduling group is detected.
7. The method for scheduling a terminal to dynamically switch scheduling group affiliations as claimed in claim 6, wherein the method further comprises:
when the scheduling server detects that a scheduling terminal in a standby state exists in the scheduling group and the home relationship of the scheduling group, the scheduling server sends a request for switching the home relationship of the scheduling group into an activated state to a plurality of scheduling terminals in the scheduling group according to a preset strategy;
and the scheduling terminal responds to the request that the home relationship of the switching scheduling group is in an activated state, switches the home relationship of the scheduling terminal and the scheduling group into an activated relationship, and starts to bear the scheduling service of the scheduling group.
8. The method for scheduling a terminal to dynamically switch scheduling group affiliations as claimed in claim 6, wherein the method further comprises:
when the scheduling server detects that no scheduling terminal with the home relationship of the scheduling group in the standby state exists in the scheduling group, the scheduling server waits for the scheduling terminal with the home relationship of the scheduling group in the active state to automatically recover the scheduling service of the scheduling group.
9. The method for scheduling a terminal to dynamically switch scheduling group affiliations as claimed in claim 6, wherein the method further comprises:
when the scheduling server detects that no scheduling terminal with the home relationship of the scheduling group in a standby state exists in the scheduling group, the scheduling server waits for the scheduling terminal with the home relationship of the scheduling group in the standby state to appear in the scheduling group and sends a request for switching the home relationship of the scheduling group into an activated state to the scheduling terminal;
and the dispatching terminal responds to the request that the home relationship of the switching dispatching group is in an activated state, and switches the home relationship of the dispatching terminal and the dispatching group into an activated relationship.
10. An apparatus for dynamically switching the affiliation of a scheduling group for a scheduling terminal, comprising:
the scheduling method comprises the steps that a first setting module is used for setting a scheduling terminal to support attribution to a plurality of different scheduling groups when the scheduling terminal is detected to be in a normal working state, selecting any one scheduling group as a first scheduling group, and setting the attribution relationship between the scheduling terminal and the rest scheduling groups as a standby state;
a second setting module, configured to set an affiliation relationship between the scheduling terminal and the first scheduling group to an active state, so that the scheduling terminal starts to undertake a scheduling service of the first scheduling group;
the first switching module is used for responding to the instruction that the home relationship of the switching scheduling group is in the standby state, switching the home relationship of the scheduling terminal and the first scheduling group into the standby state, and stopping bearing the scheduling service of the first scheduling group;
and the second switching module is used for selecting one scheduling group which is in a standby state with the scheduling terminal as a second scheduling group, and switching the affiliation relationship between the scheduling terminal and the second scheduling group into an activated state, so that the scheduling terminal starts to bear the scheduling service of the second scheduling group.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910130127.8A CN110012456B (en) | 2019-02-21 | 2019-02-21 | Method and device for dynamically switching scheduling group affiliation relationship of scheduling terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910130127.8A CN110012456B (en) | 2019-02-21 | 2019-02-21 | Method and device for dynamically switching scheduling group affiliation relationship of scheduling terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110012456A CN110012456A (en) | 2019-07-12 |
CN110012456B true CN110012456B (en) | 2022-03-04 |
Family
ID=67165838
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910130127.8A Active CN110012456B (en) | 2019-02-21 | 2019-02-21 | Method and device for dynamically switching scheduling group affiliation relationship of scheduling terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110012456B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011009272A1 (en) * | 2009-07-24 | 2011-01-27 | 中兴通讯股份有限公司 | Uniform schedule method and device in uplink power control |
CN104145503A (en) * | 2013-03-05 | 2014-11-12 | 华为技术有限公司 | Method, apparatus and system for switching state |
CN105262666A (en) * | 2015-09-10 | 2016-01-20 | 浙江凯池电子科技有限公司 | Interconnected terminals for emergency communication and interconnection method thereof |
WO2018129641A1 (en) * | 2017-01-10 | 2018-07-19 | 海能达通信股份有限公司 | Communication method and apparatus for cluster system, and base station |
-
2019
- 2019-02-21 CN CN201910130127.8A patent/CN110012456B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011009272A1 (en) * | 2009-07-24 | 2011-01-27 | 中兴通讯股份有限公司 | Uniform schedule method and device in uplink power control |
CN104145503A (en) * | 2013-03-05 | 2014-11-12 | 华为技术有限公司 | Method, apparatus and system for switching state |
CN105262666A (en) * | 2015-09-10 | 2016-01-20 | 浙江凯池电子科技有限公司 | Interconnected terminals for emergency communication and interconnection method thereof |
WO2018129641A1 (en) * | 2017-01-10 | 2018-07-19 | 海能达通信股份有限公司 | Communication method and apparatus for cluster system, and base station |
Also Published As
Publication number | Publication date |
---|---|
CN110012456A (en) | 2019-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9141491B2 (en) | Highly available server system based on cloud computing | |
EP2887720B1 (en) | Resource allocation method and device | |
RU2010152239A (en) | COMBINING RESOURCES IN THE SERVER OF THE CENTER OF COMMUTATION WITH THE CLUSTER WITH ELECTRONIC BOARDS | |
US20070270984A1 (en) | Method and Device for Redundancy Control of Electrical Devices | |
CN101707745B (en) | Method, system and device for selecting call groups | |
US11753274B2 (en) | Method and system for monitoring failure of elevator communication module, and elevator | |
CN106936926B (en) | Method and system for accessing data node | |
CN110012456B (en) | Method and device for dynamically switching scheduling group affiliation relationship of scheduling terminal | |
CN103037115A (en) | Dynamic elastic control system for computer supported telephony application (CSTA) link | |
CN106534758B (en) | Conference backup method and device | |
CN101237696B (en) | Base station access unit switching method and base station | |
CN101958925A (en) | Method and device for controlling remote equipment | |
CN104601350A (en) | Automatic disaster-tolerant switching method and device | |
CN112004199B (en) | Call service processing method and device | |
CN110435722A (en) | A kind of implementation of load balancing of the trans-regional data exchange of track traffic synthetic monitoring system | |
CN113825195A (en) | Service processing method, device and mobile terminal | |
CN110248318A (en) | The abnormal protection method and intermediate station of expanded type trunked communication system | |
JP2000177943A (en) | Elevator transmission controller | |
CN113220448B (en) | Dual-computer system and control method thereof | |
KR100208941B1 (en) | Diagnostic and control method of automatic routing in a tdx | |
JPS6354846A (en) | Controlling equipment for decentralized load communication | |
CN113794631B (en) | Port redundancy processing method, device, equipment and machine-readable storage medium | |
CN116132855A (en) | Ring networking protection method and device, electronic equipment and storage medium | |
CN116405886A (en) | Group call maintaining method, device, system and storage medium | |
CN104184611A (en) | Disaster tolerance site, and service message processing device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |