CN109711697A - Scheduling method, device, system, medium and electronic equipment based on view - Google Patents

Scheduling method, device, system, medium and electronic equipment based on view Download PDF

Info

Publication number
CN109711697A
CN109711697A CN201811555213.5A CN201811555213A CN109711697A CN 109711697 A CN109711697 A CN 109711697A CN 201811555213 A CN201811555213 A CN 201811555213A CN 109711697 A CN109711697 A CN 109711697A
Authority
CN
China
Prior art keywords
class
grade
view
order according
arranging
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.)
Pending
Application number
CN201811555213.5A
Other languages
Chinese (zh)
Inventor
尚振平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group Co Ltd
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 Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201811555213.5A priority Critical patent/CN109711697A/en
Publication of CN109711697A publication Critical patent/CN109711697A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a kind of scheduling method based on view, device, system, computer-readable medium and electronic equipments, are related to field of computer technology, comprising: generate shift basic data according to time interval set by user of arranging an order according to class and grade;First row every class is generated according to the first of user setting the display time interval and the shift basic data;The first display view for arranging an order according to class and grade is generated according to current view template and the first row every class time and is sent, and client is made to show the first display view.The technical solution of the embodiment of the present invention is by generating shift basic data, and according to the raw shift of arranging an order according to class and grade in the display view section of shift basic data and user setting, and generate view, simplify data model, data can be maintained relatively stable when arranging an order according to class and grade carry out different periods, the work that makes to arrange an order according to class and grade is more efficient.

Description

Scheduling method, device, system, medium and electronic equipment based on view
Technical field
The present invention relates to field of computer technology, in particular to a kind of scheduling method based on view, device, are System, computer-readable medium and electronic equipment.
Background technique
In the numerous scenes of service items such as endowment community, the task of arranging an order according to class and grade of service item is more, and the task of arranging an order according to class and grade is related to Period be not quite similar.For example, in the task of arranging an order according to class and grade, the task of arranging an order according to class and grade in the daytime includes that Cleaner keeps a public place clean and arranges an order according to class and grade, and entourage accompanies The tasks of arranging an order according to class and grade such as shield is arranged an order according to class and grade, and regular bus arrangement is arranged an order according to class and grade, and activity is arranged an order according to class and grade, and course is arranged an order according to class and grade, night, there are also accompany and attend to, make an inspection tour etc. to arrange an order according to class and grade to appoint Business.
These service items interval of arranging an order according to class and grade is relatively stable, but there is the beginning and ends for modifying overall time simultaneously Situation.For example, the work hours in the daytime in spring and autumn are not identical, and need to check the task of history and be compatible with arranging an order according to class and grade for status simultaneously Situation.
In the related art, fixed time interval can be designed to arrange an order according to class and grade, it can also be to different personnel's different times It is customized to arrange an order according to class and grade.
During design fixed time interval is arranged an order according to class and grade, time, a kind of fixed class of all personnel are started over Secondary, each pair of same shift, which makes time modification, can all lead to the unavailable of historical data, need the row by historical data and history Class associates, and can just see true duty arrangement at that time, for the more difficult design query page of arranging an order according to class and grade of same day modification.
When arranging an order according to class and grade to different personnel's different times are customized, shift arrangement is flexible, but personnel and time relatively not In the case where change, more time-consuming, realization complexity is operated.
In summary, fixed form and it is customized arrange an order according to class and grade be respectively present arrange an order according to class and grade during check that historical content is relatively complicated Or it arranges an order according to class and grade and operates relatively complicated problem.
It should be noted that information is only used for reinforcing the reason to background of the invention disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of scheduling method based on view, device, system, computer-readable Medium and electronic equipment, and then the technical problem for overcoming the scheme of arranging an order according to class and grade relatively complicated at least to a certain extent.
Other characteristics and advantages of the invention will be apparent from by the following detailed description, or partially by the present invention Practice and acquistion.
According to a first aspect of the embodiments of the present invention, a kind of scheduling method based on view is provided, comprising:
In one embodiment, shift basic data is generated according to time interval set by user of arranging an order according to class and grade;It is set according to user The the first display time interval set and the shift basic data generate first row every class;According to current view template and institute It states first row every class time to generate the first display view for arranging an order according to class and grade and send, client is made to show the first display view.
In one embodiment, the shift basic data includes shift and digital number corresponding with shift.
In one embodiment, described raw according to the first of user setting the display time interval and the shift basic data At first row every class, comprising: according to the first of user setting the display time interval and shift basic data generation The corresponding section digital number of first display time interval.
In one embodiment, when user modifies display view section, according to the second of user setting the display view area Between and the shift basic data generate second row every class time;It is generated according to current view template and the second row every class time The second display view for arranging an order according to class and grade.
According to a second aspect of the embodiments of the present invention, a kind of device of arranging an order according to class and grade based on view is provided, comprising: basic data Generation unit, for generating shift basic data according to time interval set by user of arranging an order according to class and grade;It arranges an order according to class and grade shift generation unit, is used for First row every class is generated according to the first of user setting the display time interval and the shift basic data;Show view generation Unit, it is concurrent for generating the first display view for arranging an order according to class and grade according to current view template and the first row every class time It send, client is made to show the first display view.
According to a third aspect of the embodiments of the present invention, a kind of computer-readable medium is provided, computer is stored thereon with Program realizes the side of arranging an order according to class and grade based on view as described in first aspect in above-described embodiment when described program is executed by processor Method.
According to a fourth aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising: one or more processors; Storage device, for storing one or more programs, when one or more of programs are held by one or more of processors When row, so that one or more of processors realize the side of arranging an order according to class and grade based on view as described in first aspect in above-described embodiment Method.
According to a fifth aspect of the embodiments of the present invention, a kind of Workforce Management based on view is provided, comprising: Eureka note Volume center cluster, for registration and managing service information;Application server cluster, for arranging an order according to class and grade for user setting based on the received Time interval generates shift basic data;It is generated according to the first of user setting the display time interval and the shift basic data First row every class;The first display view for arranging an order according to class and grade is generated simultaneously according to current view template and the first row every class time It sends, applications client is made to show the first display view;Applications client, for being sent to the application server cluster Arrange an order according to class and grade time and the first view section of client's setting afterwards;Receive the first display view for arranging an order according to class and grade;Support micro services Cluster, for according to the application server cluster information to registration center's cluster registration service information and renewed treaty.
In one embodiment, the system comprises the Ribbon equally loadeds being located in the application server cluster Device, for realizing the load balancing of service;And/or the system comprises the Hystrix being located in the application server cluster Fuse, for realizing service fusing.
In one embodiment, the system comprises the database mongodb collection connecting with the support micro services cluster Group, for storing the information on services.
Technical solution provided in an embodiment of the present invention can include the following benefits:
In the technical solution provided by some embodiments of the present invention, by generating shift basic data, and according to class The raw shift of arranging an order according to class and grade in the display view section of secondary basic data and user setting, and generate view, simplifies data model, can be Carry out different periods maintains data relatively stable when arranging an order according to class and grade, and the work that makes to arrange an order according to class and grade is more efficient.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 diagrammatically illustrates the flow chart of the scheduling method based on view according to an embodiment of the present invention;
Fig. 2 diagrammatically illustrates the schematic diagram of the first display view according to an embodiment of the present invention;
Fig. 3 diagrammatically illustrates the block diagram of the device of arranging an order according to class and grade based on view according to an embodiment of the present invention;
Fig. 4 diagrammatically illustrates the schematic diagram of the Spring Cloud frame according to an embodiment of the present invention;
Fig. 5 shows the structural schematic diagram for being suitable for the computer system for the electronic equipment for being used to realize the embodiment of the present invention.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In example.In the following description, many details are provided to provide and fully understand to the embodiment of the present invention.However, It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced without one or more in specific detail, Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity. I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step, It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
In the related art, using design fixed time interval arranged an order according to class and grade by the way of or using to different personnel not When being arranged an order according to class and grade with the time customized mode arranged an order according to class and grade, can occur cumbersome problem during arranging an order according to class and grade.
In disclosure exemplary embodiment, using the scheduling method based on view, shift basic data, then root are firstly generated The shift of arranging an order according to class and grade of user's selection is determined according to the view section of the shift basic data and user setting, and further generates view of arranging an order according to class and grade Figure, being arranged an order according to class and grade using the view of arranging an order according to class and grade, it is easy to operate efficient to have the characteristics that.
In disclosure exemplary embodiment, the micro services where Workforce Management are opened using Spring Cloud frame Hair.
In the building distributed system applied in disclosure exemplary embodiment, using there is service discovery Eureka, fuse The component of the NetFlix such as device Hystrix and the load balancer Ribbon of client.
To service discovery, the functions such as fusing and load balancing are packaged Spring Cloud NetFlix, and are passed through Mode explain or easy configuration is supplied to Spring Cloud user use.
Wherein, Eureka plays most crucial integration to entire micro services framework as service register center.
Use Eureka server for the registration center of above-mentioned Spring Cloud frame, each service unit is into registration The heart registers the service of oneself offer, some additional letters such as host and port numbers, service release number, communications protocol including service Breath.Registration center also needs to go in a manner of heartbeat detection in monitoring inventory according to Service name taxonomic organization service inventory Service whether can be used, if it is unavailable needs rejected from service inventory, with achieve the effect that debugging service.
Eureka client mainly handles the registration and discovery of service.The side that client service passes through registration and parameter configuration Formula is embedded in the code of the application program of applications client.In application program launching, Eureka client is to service registration The service of itself offer is registered at center, and periodically sends heartbeat to update its service lease.Meanwhile he also can be from service End inquires the information on services currently registered and they is cached to local and periodically refreshing service state.
The content of disclosure exemplary embodiment is described in detail below:
Fig. 1 diagrammatically illustrates the scheduling method based on view of the illustrative embodiments of the disclosure.With reference to Fig. 1, base It may comprise steps of in the scheduling method of view:
Step S102 generates shift basic data according to time interval set by user of arranging an order according to class and grade.
Step S104 generates first row every class according to the first of user setting the display time interval and shift basic data It is secondary.
Step S106 generates the first display view for arranging an order according to class and grade simultaneously according to current view template and first row every class time It sends, client is made to show the first display view.
When using above technical scheme, business personnel modification personnel arrange an order according to class and grade during view time interval, in data Layer It will not change on face, in this way, historical data will not be changed when modification view, not change and show logic with view, thus industry Business personnel modify personnel arrange an order according to class and grade view section operation it is relatively simple, check that historical data is also easy to.
The shift basic data generated in step s 102 includes shift digital number corresponding with shift.Specifically, exist Time interval of arranging an order according to class and grade involved in step S102 is set by the user.For example, when user set time interval of arranging an order according to class and grade as 15 minutes, Period between 0 point to 24 points will be divided into 96 basal latency intervals.Time interval of arranging an order according to class and grade is set as 20 points in user Zhong Shi, the period between 0 point to 24 points will be divided into 72 basal latency intervals.
After these basal latency intervals are sorted and are numbered according to time order and function, the corresponding base of each digital number Plinth time interval, here, a basal latency are a shift.The corresponding relationship for recording shift and digital number, that is, record Shift basic data.
If time interval of arranging an order according to class and grade selects 15 minutes, 96 time intervals of arranging an order according to class and grade are divided within one day, this 96 time intervals Number consecutively is 1 to 96 from 0 point to 24.Part shift and the corresponding relationship of digital number are as shown in following procedure:
“baseSeparateTime”:{
{“number”:1,
“startPeriod”:“00:00”
“endPeriod”:“00:15”},
{“number”:2,
“startPeriod”:“00:15”
“endPeriod”:“00:30”},
{“number”:3,
“startPeriod”:“00:30”
“endPeriod”:“00:45”},
{“number”:4
“startPeriod”:“00:45”
“endPeriod”:“01:00”},
{“number”:5,
“startPeriod”:“01:00”
“endPeriod”:“01:15”},
{“number”:6,
“startPeriod”:“01:15”
“endPeriod”:“01:30”},
{“number”:7,
“startPeriod”:“01:30”
“endPeriod”:“01:45”},
In step S104, user is arranged an order according to class and grade after shift so that formal character one kind of the first display time interval is arranged, according to The corresponding total period of first display time interval, can be generated the section that first view section corresponds to shift basic data Digital number.
When user will arrange an order according to class and grade, need to select shift of arranging an order according to class and grade.For example, the class for being 8 points to 16 points to a kind of work hours For secondary, needing the shift of arranging an order according to class and grade of selection is basal latency interval locating for 8 points to 16 points.Here, time interval of arranging an order according to class and grade choosing It selects 30 minutes, is divided within one day 48 time intervals of arranging an order according to class and grade, this 48 time intervals number consecutively from 0 point to 24 is 1 to 48. The number of 16 time intervals locating for 8 points to 16 points is respectively 15 to 30.Its shift and the corresponding relationship of digital number are as follows Shown in column program:
“SeparateTime”:{
{“number”:15,
“startPeriod”:“08:00”
“endPeriod”:“08:30”},
{“number”:16,
“startPeriod”:“08:30”
“endPeriod”:“09:00”},
{“number”:17,
“startPeriod”:“09:00”
“endPeriod”:“09:30”},
{“number”:18
“startPeriod”:“09:30”
“endPeriod”:“10:00”},
{“number”:19,
“startPeriod”:“10:00”
“endPeriod”:“10:30”},
{“number”:20,
“startPeriod”:“10:30”
“endPeriod”:“11:00”},
{“number”:21,
“startPeriod”:“11:00”
“endPeriod”:“11:30”},
In step s 106, it according to above-mentioned section digital number corresponding arrange an order according to class and grade shift and active view template, generates and uses In the first display view arranged an order according to class and grade.
As shown in Fig. 2, the shift of arranging an order according to class and grade in the first display view is 8 points to 16 points.Staff Mrs A, Mrs B, C are first Raw and Mrs D status display of arranging an order according to class and grade is in the first display view, and it is possible to the state of arranging an order according to class and grade of real time modifying staff.
The lower left of view as shown in Figure 2 has the button that moves forward and backward, the two buttons of user's operation can be set Different display view sections, that is, select different shifts.
In this way, when business personnel arranges an order according to class and grade to personnel, the corresponding display view of above-mentioned section digital number based on storage Figure is operated.Modification is arranged an order according to class and grade after shift, and current or past scheduling data is all still objective data, only from view Show number have any different, the variation of data inaccuracy will not be generated due to modification.
When user modifies display view section, for example, user is selected again in the form of the second display view section is arranged It selects when arranging an order according to class and grade shift, according to the corresponding total period in the second display view section, second row every class time i.e. second can be generated View section corresponds to the section digital number of shift basic data.In this way, according to current view template and second row every class Second display view of the secondary generation for arranging an order according to class and grade.
Scheduling method based on view provided by the embodiment of the present invention, by generating shift basic data, and according to class The raw shift of arranging an order according to class and grade in the display view section of secondary basic data and user setting, and generate view, simplifies data model, can be Carry out different periods maintains data relatively stable when arranging an order according to class and grade, and the work that makes to arrange an order according to class and grade is more efficient.
The device of the invention embodiment introduced below can be used for executing the above-mentioned side of arranging an order according to class and grade based on view of the present invention Method.As shown in figure 3, the device 300 of arranging an order according to class and grade based on view provided according to embodiments of the present invention includes:
Basic data generation unit 302, for generating shift basic data according to time interval set by user of arranging an order according to class and grade.
It arranges an order according to class and grade shift generation unit 304, for according to the first of user setting the display time interval and shift basic data Generate first row every class.
View generation unit 306 is shown, for generating according to current view template and first row every class time for arranging an order according to class and grade The first display view and send, so that client is shown the first display view.
When using above technical scheme, business personnel modification personnel arrange an order according to class and grade during view time interval, in data Layer It will not change on face, in this way, historical data will not be changed when modification view, not change and show logic with view, thus industry Business personnel modify personnel arrange an order according to class and grade view section operation it is relatively simple, check that historical data is also easy to.
The shift basic data that basic data generation unit 302 generates includes shift digital number corresponding with shift.Tool Body, the time interval of arranging an order according to class and grade that basic data generation unit 302 generates shift basic data foundation is set by the user.For example, When user set time interval of arranging an order according to class and grade as 15 minutes, the period between 0 point to 24 points will be divided between 96 basal latencies Every.When user set time interval of arranging an order according to class and grade as 20 minutes, when the period between 0 point to 24 points will be divided into 72 bases Between be spaced.
After these basal latency intervals are sorted and are numbered according to time order and function, the corresponding base of each digital number Plinth time interval, here, a basal latency are a shift.The corresponding relationship for recording shift and digital number, that is, record Shift basic data.
When user will arrange an order according to class and grade, need to select shift of arranging an order according to class and grade.For example, the class for being 8 points to 16 points to a kind of work hours For secondary, needing the shift of arranging an order according to class and grade of selection is basal latency interval locating for 8 points to 16 points.Assuming that time interval selection of arranging an order according to class and grade 30 minutes, 48 time intervals of arranging an order according to class and grade are divided within one day, this 48 time interval number consecutivelies are 1 to 48.Locating for 8 points to 16 points Basal latency between be divided into 16 time intervals between 8 points to 16 points.
User is arranged an order according to class and grade after shift so that formal character one kind of the first display time interval is arranged, shift generation unit of arranging an order according to class and grade 304, according to the corresponding total period of the first display time interval, can be generated first view section corresponding to shift basis number According to section digital number.
Show view generation unit 306 according to above-mentioned section digital number corresponding arrange an order according to class and grade shift and active view template, Generate the first display view for arranging an order according to class and grade.
In this way, when business personnel arranges an order according to class and grade to personnel, the corresponding display view of above-mentioned section digital number based on storage Figure is operated.Modification is arranged an order according to class and grade after shift, and current or past scheduling data is all still objective data, only from view Show number have any different, the variation of data inaccuracy will not be generated due to modification.
When user modifies display view section, for example, user is selected again in the form of the second display view section is arranged It selects when arranging an order according to class and grade shift, shift generation unit 304 of arranging an order according to class and grade can be generated according to the corresponding total period in the second display view section Second row every class time i.e. the second view section corresponds to the section digital number of shift basic data.Show view generation unit 306 generate the second display view for arranging an order according to class and grade according to current view template and second row every class time.
Device of arranging an order according to class and grade based on view provided by the embodiment of the present invention, by generating shift basic data, and according to class The raw shift of arranging an order according to class and grade in the display view section of secondary basic data and user setting, and generate view, simplifies data model, can be Carry out different periods maintains data relatively stable when arranging an order according to class and grade, and the work that makes to arrange an order according to class and grade is more efficient.
As shown in figure 4, the micro services where arranging an order according to class and grade are developed using Spring Cloud frame.
Spring Cloud Eureka is a part in Spring Cloud Netflix micro services external member, it is based on Netflix Eureka has done secondary encapsulation.It is mainly responsible for the service abatement functions completed in micro services framework.Service is administered The module of core and basis the most in micro services framework, it is mainly used to realize automation registration and the hair of each micro services example It is existing.
In the case where frame is administered in service, the calling between servicing no longer is realized by specifying specific instance address, but logical It crosses Service name and initiates request call realization.Service call side obtains clothes by Service name from the service inventory of service register center The table listings of pragmatic example take out a Service Instance position by specified load balancing to carry out service call.
Spirng Cloud Eureka realizes service register and discovery using Netflix Eureka.It was both contained Server-side component, also contains client component.
The embodiment of the present invention provides a kind of component of arranging an order according to class and grade based on view, comprising: Eureka registration center cluster, using clothes Business device cluster, applications client and support micro services cluster.
As shown in figure 4, Eureka Server 401 is Eureka registration center cluster, registered for maintenance and management Service list.Eureka Server is the same with other service register centers, supports High Availabitity configuration.Strong consistency is relied on to mention For good Service Instance availability, a variety of different fault scenes can be coped with.
Application server cluster, the time interval of arranging an order according to class and grade for user setting based on the received generate shift basic data; First row every class is generated according to the first of user setting the display time interval and shift basic data;According to current view mould Plate and first row every class time generate the first display view for arranging an order according to class and grade and send, and applications client is made to show first display View.
Applications client, arrange an order according to class and grade time and the first view area being arranged for client after being sent to application server cluster Between;Receive the first display view for arranging an order according to class and grade.
As shown in figure 4, Eureka Client 402 is registration center's client, belong to registration center's registration service Using.Eureka Client is used to the simplified interaction with server, as poll load balancer, and provides the failure of service Switching is supported.
Micro services cluster (not shown) is supported, for infusing according to application server cluster information to registration center's cluster Volume information on services and renewed treaty.
As shown in figure 4, us-east-xxx indicates the region where cluster.Application Service 403 is applied Server cluster indicates that ISP, Application Client 404 are that applications client indicates service consumer.
Specifically, the region division where cluster is three regions by two dotted lines.These three regions are respectively us- The region east-1c, the region us-east-1d, the region us-east-1e.There is an Eureka Server cluster in each area, And quantity uncertain Application Service and Application Client.
As shown in figure 4, us-east-1c Regional Representative in region service registration and calling process.
Specifically, in same region, when carrying out service registration and calling, Application Service starting is backward The information such as Eureka Server registration center registration service, including IP, Port, Service name.
Register list is pulled from Eureka Server after Application Client starting.
Application Client initiates preferentially to call the Application in one's respective area when far call Service.If can just initiate without available Application Service in local area to the service call in other areas.
As shown in figure 4, three region us-east-1c, us-east-1d, us-east-1e, which are combined together, to be represented not With in region service registration and calling process.
After Application Service starting in the region us-east-1c, the Eureka Server into one's respective area Registration service information.And heartbeat is maintained to renew a contract with the Eureka Server in one's respective area.
Eureka Server information on services can be synchronized to the Eureka Server in the adjacent region us-east-1d with And the Eureka Server in the region us-east-1e.
After Application Service starting in the region us-east-1e, the Eureka Server into one's respective area Registration service information, and maintain heartbeat to renew a contract with the Eureka Server in one's respective area.
Eureka Server information on services can be synchronized to the Eureka Server in the adjacent region us-east-1d with And the Eureka Server in the region us-east-1c.
After Application Client starting in the region us-east-1d, drawn from the Eureka Server in local area Take register list.
When Application Client in the region us-east-1d initiates far call, can first retrieval local area either with or without Available Application Service, if not then the region us-east-1c or us- can be called by certain algorithm Application Service service in the region east-1e.
Eureka Client backstage starting one when application service needs to renew a contract, in Application Service Timed task keeps a heartbeat renewed treaty task with Eureka Server, sends at regular intervals to Eureka Server Primary request of renewing a contract, renews a contract, tells that Server service still carries out Eureka, prevent by the rejecting of Eureka Server Task is rejected.Here, 30S is divided between the default time of transmission renewed treaty request.
When servicing offline and after Application Service application stopping, one is sent to Eureka Server Offline request tells that service has logged out for registration center, which can be removed registration column after receiving by Eureka Server Table, behind will no longer acquire when obtain registration service list again, prevent applications client from consuming not available service.
Start a rejecting task on backstage after Eureka Server starting, the service to not renewing a contract in certain time It is rejected.
It is worth noting that, registration, renewed treaty, the offline Eureka Server requested in default priority selection one's respective area, Only when the Eureka Server in local area is unavailable, the Eureka Server in other areas can be just selected.
Eureka server-side supports cluster mode deployment, and when having fragment to break down in cluster, Eureka can be certainly Turn enters self-protection mode.It allows to continue when fragment breaks down to provide the discovery and registration of service, works as failure When distribution restores, other fragments in cluster can their state again it is subsynchronous back.In different service registrations in cluster The heart replicates mutually respective state by asynchronous mode, this also means that each example is about all services at given time point State there may be inconsistent phenomenons.
In disclosure exemplary embodiment, system realizes the load balancing of service using Ribbon.Row based on view Class's system includes the Ribbon equally loaded device in application server cluster.
Ribbon mainly provides the software load equalization algorithm of client.Ribbon client component provides a series of perfect Config option, for example connection time-out, retry, retry algorithm etc..Pluggable built in Ribbon, customized load balancing group Part.Wherein, the load balancing that Ribbon is used includes: simple poll load balancing, weighted response time load balancing, area It is balanced that domain perceives poll load balancing, Random Load.
In addition, also with the following functions in Ribbon: being easy to integrate with service discovery component, complete to transport using Archaius It is configured when row, using JMX exposure O&M index, Servo publication, a variety of pluggable serializings is used to select.
In disclosure exemplary embodiment, system is using mongodb come storing service information.Arranging an order according to class and grade based on view be System includes the database mongodb cluster of support micro services cluster connection.
Mongodb is the database based on distributed document storage, has high-performance, easily disposes, easily uses, storage The very convenient feature of data.The accessible operation mongodb of Spring Boot of deployment can be combined with spring cloud Database.System performance can be improved using mongodb.
In disclosure exemplary embodiment, system realizes service fusing using Hystrix.Arranging an order according to class and grade based on view be System includes the Hystrix fuse in application server cluster.
Hystrix fuse be one kind can be automatically opened when remote service is unavailable switch i.e. automatically fuse, and The remote service facility that automatic closure switch are restored automatically when restoring, Spring Cloud pass through the Hystrix group of Netflix Part provides breaker, resource isolation and self-regeneration function.In distributed environment, the mistake of some services is unavoidably had It loses, Hystrix provides delay and fault tolerance, and the access point of remote system, access and third party's program library is isolated, prevents from cascading Failure.Specifically, fuse is with the following functions: preventing cascading failure, quick failure and the fast quick-recovery in distributed system Ability, fallback mechanism and graceful degradation, monitoring, early warning and operation control ability that near real-time is provided for service.
Workforce Management based on view provided by the embodiment of the present invention, by generating shift basic data, and according to class The raw shift of arranging an order according to class and grade in the display view section of secondary basic data and user setting, and generate view, simplifies data model, can be Carry out different periods maintains data relatively stable when arranging an order according to class and grade, and the work that makes to arrange an order according to class and grade is more efficient.
Below with reference to Fig. 5, it illustrates the computer systems 700 for the electronic equipment for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.The computer system 700 of electronic equipment shown in Fig. 5 is only an example, should not be to the embodiment of the present invention Function and use scope bring any restrictions.
As shown in figure 5, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into the program in random access storage device (RAM) 703 from storage section 708 and Execute various movements appropriate and processing.In RAM 703, it is also stored with various programs and data needed for system operatio.CPU 701, ROM 702 and RAM 703 is connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to bus 704。
I/O interface 705 is connected to lower component: the importation 706 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.; And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because The network of spy's net executes communication process.Driver 710 is also connected to I/O interface 707 as needed.Detachable media 711, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 710, in order to read from thereon Computer program be mounted into storage section 708 as needed.
Particularly, according to an embodiment of the invention, may be implemented as computer above with reference to the process of flow chart description Software program.For example, the embodiment of the present invention includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 709, and/or from detachable media 711 are mounted.When the computer program is executed by central processing unit (CPU) 701, executes and limited in the system of the application Above-mentioned function.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in unit involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part realizes that described unit also can be set in the processor.Wherein, the title of these units is in certain situation Under do not constitute restriction to the unit itself.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying electronic equipment. Above-mentioned computer-readable medium carries one or more program, when the electronics is set by one for said one or multiple programs When standby execution, so that the electronic equipment realizes such as the above-mentioned scheduling method as described in the examples based on view.
For example, electronic equipment may be implemented as shown in Figure 1: step S102 arranges an order according to class and grade the time according to set by user Interval generates shift basic data;S104 generates the according to the first of user setting the display time interval and shift basic data One arranges an order according to class and grade shift;Step S106 generates the first display for arranging an order according to class and grade according to current view template and first row every class time and regards Scheme and send, client is made to show the first display view.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, embodiment according to the present invention, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, touch control terminal or network equipment etc.) executes embodiment according to the present invention Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of scheduling method based on view characterized by comprising
Shift basic data is generated according to time interval set by user of arranging an order according to class and grade;
First row every class is generated according to the first of user setting the display time interval and the shift basic data;
The first display view for arranging an order according to class and grade is generated according to current view template and the first row every class time and is sent, and visitor is made Family end shows the first display view.
2. the method according to claim 1, wherein the shift basic data includes shift and corresponding with shift Digital number.
3. according to the method described in claim 2, it is characterized in that, it is described according to the first of user setting display time interval and The shift basic data generates first row every class, comprising:
The first display time interval is generated according to the first of user setting the display time interval and the shift basic data Corresponding section digital number.
4. method according to any one of claims 1 to 3, which is characterized in that when user modifies display view section, root Show that view section and the shift basic data generate second row every class according to the second of user setting;
The second display view for arranging an order according to class and grade is generated according to current view template and the second row every class time.
5. a kind of device of arranging an order according to class and grade based on view characterized by comprising
Basic data generation unit, for generating shift basic data according to time interval set by user of arranging an order according to class and grade;
It arranges an order according to class and grade shift generation unit, for being generated according to the first of user setting the display time interval and the shift basic data First row every class;
View generation unit is shown, for generating according to current view template and the first row every class time for arranging an order according to class and grade first Display view and send, make client show it is described first display view.
6. a kind of Workforce Management based on view characterized by comprising
Eureka registration center cluster, for registration and managing service information;
Application server cluster, the time interval of arranging an order according to class and grade for user setting based on the received generate shift basic data;According to First display time interval of user setting and the shift basic data generate first row every class;According to current view mould Plate and the first row every class time generate the first display view for arranging an order according to class and grade and send, and applications client is made to show described first Show view;
Applications client, arrange an order according to class and grade time and the first view area being arranged for client after being sent to the application server cluster Between;Receive the first display view for arranging an order according to class and grade;
Micro services cluster is supported, for believing according to the application server cluster information to registration center's cluster registration service Breath and renewed treaty.
7. system according to claim 6, which is characterized in that the system comprises be located in the application server cluster Ribbon equally loaded device, for realizing the load balancing of service;And/or
The system comprises the Hystrix fuses being located in the application server cluster, for realizing service fusing.
8. system according to claim 7, which is characterized in that the system comprises connect with the support micro services cluster Database mongodb cluster, for storing the information on services.
9. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is executed by processor Shi Shixian data processing method according to any one of claims 1 to 4.
10. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs, when one or more of programs are by one or more of processing When device executes, so that one or more of processors realize data processing side according to any one of claims 1 to 4 Method.
CN201811555213.5A 2018-12-18 2018-12-18 Scheduling method, device, system, medium and electronic equipment based on view Pending CN109711697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811555213.5A CN109711697A (en) 2018-12-18 2018-12-18 Scheduling method, device, system, medium and electronic equipment based on view

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811555213.5A CN109711697A (en) 2018-12-18 2018-12-18 Scheduling method, device, system, medium and electronic equipment based on view

Publications (1)

Publication Number Publication Date
CN109711697A true CN109711697A (en) 2019-05-03

Family

ID=66255865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811555213.5A Pending CN109711697A (en) 2018-12-18 2018-12-18 Scheduling method, device, system, medium and electronic equipment based on view

Country Status (1)

Country Link
CN (1) CN109711697A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112734113A (en) * 2021-01-11 2021-04-30 海南太美航空股份有限公司 Time resource optimization method based on three-dimensional view and related product
CN114816172A (en) * 2022-04-02 2022-07-29 阿里巴巴(中国)有限公司 Personnel scheduling interaction processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105894240A (en) * 2016-03-12 2016-08-24 丽水学院 Parameterization-based shift arrangement system and method for flexible service working system
JP2016221937A (en) * 2015-05-26 2016-12-28 上村 哲也 Schedule book for student
CN108229768A (en) * 2016-12-12 2018-06-29 中国国际航空股份有限公司 Aircraft overhauls task Workforce Management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016221937A (en) * 2015-05-26 2016-12-28 上村 哲也 Schedule book for student
CN105894240A (en) * 2016-03-12 2016-08-24 丽水学院 Parameterization-based shift arrangement system and method for flexible service working system
CN108229768A (en) * 2016-12-12 2018-06-29 中国国际航空股份有限公司 Aircraft overhauls task Workforce Management

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BOBBY0322: "微服务架构集大成者—Spring Cloud", 《HTTPS://WWW.JIANSHU.COM/P/3899D7F47303》 *
赵振凯: "智能排岗系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112734113A (en) * 2021-01-11 2021-04-30 海南太美航空股份有限公司 Time resource optimization method based on three-dimensional view and related product
CN112734113B (en) * 2021-01-11 2024-04-16 海南太美航空股份有限公司 Time resource optimization method based on three-dimensional view and related product
CN114816172A (en) * 2022-04-02 2022-07-29 阿里巴巴(中国)有限公司 Personnel scheduling interaction processing method and device and electronic equipment
CN114816172B (en) * 2022-04-02 2023-11-17 阿里巴巴(中国)有限公司 Personnel scheduling interaction processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US11263084B2 (en) Saving program execution state
CN107579931B (en) A kind of block chain, that is, Service Source adaptation method based on Kubernetes
CN111290854B (en) Task management method, device, system, computer storage medium and electronic equipment
CN106067080B (en) Configurable workflow capabilities are provided
JP2019200580A (en) Decentralized ledger system, decentralized ledger subsystem, and decentralized ledger node
CN110110543A (en) Data processing method, device, server and storage medium
US10601680B2 (en) Application resiliency using APIs
CN108304250A (en) Method and apparatus for the node for determining operation machine learning task
CN109491776A (en) Task method of combination and system
CN111475728A (en) Cloud resource information searching method, device, equipment and storage medium
CN109299194A (en) Multi-edition data memory management method and device, electronic equipment, storage medium
CN103098033A (en) System and method for managing resources of a portable computing device
CN105229591A (en) Overall situation polymerization NameSpace is created in order to storage administration
CN103597784A (en) Method and system for dynamically creating and servicing master-slave pairs within and across switch fabrics of a portable computing device
CN103297493A (en) Partition aware quality of service feature
CN108874828A (en) The method and apparatus of Data Migration
CN110601994B (en) Load balancing method for micro-service chain perception in cloud environment
CN102684970A (en) Thin client environment providing system, server, thin client environment management method and thin client environment management program
CN109245908A (en) A kind of method and apparatus of principal and subordinate's cluster switching
CN103973470A (en) Cluster management method and equipment for shared-nothing cluster
CN109711697A (en) Scheduling method, device, system, medium and electronic equipment based on view
CN115812298A (en) Block chain management of supply failure
CN108667660A (en) The method and apparatus and route system of routing management and business routing
CN105493444B (en) A kind of network function virtualization NFV fault management device, device and method
CN109685358A (en) Generation method, device, medium and the electronic equipment for task of keeping a public place clean

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190503

RJ01 Rejection of invention patent application after publication