CN105335210A - Task distribution method and device - Google Patents

Task distribution method and device Download PDF

Info

Publication number
CN105335210A
CN105335210A CN201410370120.0A CN201410370120A CN105335210A CN 105335210 A CN105335210 A CN 105335210A CN 201410370120 A CN201410370120 A CN 201410370120A CN 105335210 A CN105335210 A CN 105335210A
Authority
CN
China
Prior art keywords
virtual environment
computing machine
distributed
mobile terminal
server
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
CN201410370120.0A
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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410370120.0A priority Critical patent/CN105335210A/en
Publication of CN105335210A publication Critical patent/CN105335210A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention relates to a task distribution method and device, relates to the field of communication and computers, and aims at improving the efficiency of distributing tasks to more mobile terminals. The method comprises the following steps: adding each virtual environment on each computer into a same dispatching network and distributing a unique environment variable for each virtual environment on each computer, wherein the virtual environment is established according to the quantity of mobile terminals connected with each computer in the computer and used for simulating the mobile terminals into computers; determining the virtual environment corresponding to the task to be distributed; and distributing the task to the determined virtual environment according to the environment variable of the determined virtual environment. According to the task distribution method and device, synchronous task distribution can be carried out on a plurality of mobile terminals on the computer, the task processing efficiency is relatively high and the synchronization is relatively good.

Description

The method of distributed tasks and device
Technical field
The disclosure relates to communication and computer disposal field, particularly relates to method and the device of distributed tasks.
Background technology
Along with the development of electronic technology, mobile terminal is generally applied, and updates quickly.At production or test phase, need to be configured or task process mobile terminal by computing machine (PC).Now computing machine is connected with mobile terminal, can be connected by USB interface.Send task by computing machine to mobile terminal, then mobile terminal performs this task, to realize the installation etc. configuring or realize software.
Inventor of the present disclosure finds, in correlation technique, the quantity of the mobile terminal that computing machine can control simultaneously depends on the quantity of the USB interface of computing machine, but the quantity of the USB interface of general computing machine only has 2,3.If need the quantity of the mobile terminal of configuration very large, then need to spend the longer time.Simultaneously possible scheme carries out an identical configuration on multiple computers, to control more mobile terminal simultaneously.But multiple computing machine needs to configure one by one, and synchronism is poor.Therefore, how more effective distributed tasks is problem demanding prompt solution.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of method and device of distributed tasks.
According to the first aspect of disclosure embodiment, a kind of method of distributed tasks is provided, comprises:
Each virtual environment on each computing machine is joined same dispatch network, and distributes unique environmental variance for each virtual environment on each computing machine; Wherein, virtual environment is that the quantity of the mobile terminal connected according to each computing machine is in a computer set up, for mobile terminal is modeled to computing machine;
Determine the virtual environment corresponding to task to be distributed;
According to the environmental variance of the described virtual environment determined, to the described virtual environment distributed tasks determined.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: in the present embodiment, the mobile terminal that computing machine connects is modeled to computing machine, server towards be multiple computing machines, conveniently can carry out the distribution of synchronous task to the mobile terminal that multiple computing machine connects like this.
Described each virtual environment on each computing machine is joined same dispatch network, comprising: certification is carried out to each virtual environment on each computing machine, certification by time, each virtual environment on each computing machine is joined same dispatch network.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: the present embodiment sets up the passage between server and mobile terminal (i.e. virtual environment) by verification process, has both achieved the safety that Path Setup in turn ensure that communication.
Described certification is carried out to each virtual environment on each computing machine, comprising:
Receive the connection request comprising key that virtual environment sends;
The described key received is mated with the existing key in this locality;
When mating consistent, determine that certification is passed through.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: the present embodiment adopts key authentication to further increase the security of communication.
Described certification comprises SSH certification.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: adopt SSH certification in the present embodiment, make channel transfer and security better.
According to the second aspect of disclosure embodiment, a kind of method of distributed tasks is provided, comprises:
Send connection request to server, described request is used for each virtual environment to join by the same dispatch network of server construction, and virtual environment sets up, for mobile terminal is modeled to computing machine according to the quantity of each locally-attached mobile terminal;
Reception server is the unique environment variable that each virtual environment is distributed;
The task of reception server distribution;
According to the environmental variance in the described task received, the described task received is distributed to the virtual environment that the described environmental variance that receives is corresponding.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: in the present embodiment, the mobile terminal that computing machine connects is modeled to computing machine, server towards be multiple computing machines, conveniently can carry out the distribution of synchronous task to the mobile terminal that multiple computing machine connects like this.
Described to server transmission connection request, comprising: send authentication request to server.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: the present embodiment sets up the passage between server and mobile terminal (i.e. virtual environment) by verification process, has both achieved the safety that Path Setup in turn ensure that communication.
According to the third aspect of disclosure embodiment, a kind of device of distributed tasks is provided, comprises:
Add module, for each virtual environment on each computing machine is joined same dispatch network, and distribute unique environmental variance for each virtual environment on each computing machine; Wherein, virtual environment is that the quantity of the mobile terminal connected according to each computing machine is in a computer set up, for mobile terminal is modeled to computing machine;
Control module, for determining the virtual environment corresponding to task to be distributed;
Sending module, for the environmental variance according to the described virtual environment determined, to the described virtual environment distributed tasks determined.
In one embodiment, described interpolation module comprises:
Authentication ' unit, for carrying out certification to each virtual environment on each computing machine;
Adding device, for when certification is passed through, joins same dispatch network by each virtual environment on each computing machine.
In one embodiment, described authentication ' unit comprises:
Receive subelement, for receiving the connection request comprising key that virtual environment sends;
Coupling subelement, for mating the described key received with the existing key in this locality;
Determining subelement, for when mating consistent, determining that certification is passed through.
In one embodiment, described certification comprises SSH certification.
According to the fourth aspect of disclosure embodiment, a kind of device of distributed tasks is provided, comprises:
First sending module, for sending connection request to server, described request is used for each virtual environment to join by the same dispatch network of server construction, and virtual environment sets up, for mobile terminal is modeled to computing machine according to the quantity of each locally-attached mobile terminal;
First receiver module is the unique environment variable that each virtual environment is distributed for reception server;
Second receiver module, for the task of reception server distribution;
Second sending module, for according to the environmental variance in the described task that receives, is distributed to the virtual environment that the described environmental variance that receives is corresponding by the described task received.
In one embodiment, described first sending module sends authentication request to server.
According to the 5th aspect of disclosure embodiment, a kind of device of distributed tasks is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Each virtual environment on each computing machine is joined same dispatch network, and distributes unique environmental variance for each virtual environment on each computing machine; Wherein, virtual environment is that the quantity of the mobile terminal connected according to each computing machine is in a computer set up, for mobile terminal is modeled to computing machine;
Determine the virtual environment corresponding to task to be distributed;
According to the environmental variance of the described virtual environment determined, to the described virtual environment distributed tasks determined.
According to the 6th aspect of disclosure embodiment, a kind of device of distributed tasks is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Send connection request to server, described request is used for each virtual environment to join by the same dispatch network of server construction, and virtual environment sets up, for mobile terminal is modeled to computing machine according to the quantity of each locally-attached mobile terminal;
Reception server is the unique environment variable that each virtual environment is distributed;
The task of reception server distribution;
According to the environmental variance in the described task received, the described task received is distributed to the virtual environment that the described environmental variance that receives is corresponding.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the process flow diagram of the method for a kind of distributed tasks according to an exemplary embodiment.
Fig. 2 is the schematic diagram of a kind of framework according to an exemplary embodiment.
Fig. 3 is the process flow diagram of the method for a kind of distributed tasks according to an exemplary embodiment.
Fig. 4 is the process flow diagram of the method for a kind of distributed tasks according to an exemplary embodiment.
Fig. 5 is the process flow diagram of the method for a kind of distributed tasks according to an exemplary embodiment.
Fig. 6 is the block diagram of the device of a kind of distributed tasks according to an exemplary embodiment.
Fig. 7 is a kind of block diagram adding module according to an exemplary embodiment.
Fig. 8 is the block diagram of a kind of authentication ' unit according to an exemplary embodiment.
Fig. 9 is the block diagram of the device of a kind of distributed tasks according to an exemplary embodiment.
Figure 10 is the block diagram of a kind of device according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
In correlation technique, carrying out mobile terminal, in test process, mobile terminal being connected to computing machine by USB interface, computing machine is utilized to test mobile terminal.The quantity of the mobile terminal that computing machine can be tested simultaneously depends on the quantity of USB interface on computing machine.More mobile terminal is tested if wish simultaneously, then need multiple computing machine and all connect multiple mobile terminal.But multiple computing machine needs to operate one by one, and synchronism is poor, and therefore testing efficiency is on the low side.Multiple computing machine, for solving this problem, is joined consolidated network by the present embodiment, and the mobile terminal that computing machine connects is invented virtual environment, and the direct facing moving terminal of server can be made like this to carry out the distribution of task, and synchronism is better.
Fig. 1 is the process flow diagram of the method for a kind of distributed tasks according to an exemplary embodiment, and as shown in Figure 1, the method can be realized by server, comprises the following steps:
In a step 101, each virtual environment on each computing machine is joined same dispatch network, and distribute unique environmental variance for each virtual environment on each computing machine.Wherein, virtual environment is that the quantity of the mobile terminal connected according to each computing machine is in a computer set up, for mobile terminal is modeled to computing machine.
In a step 102, the virtual environment corresponding to task to be distributed is determined.
In step 103, according to the environmental variance of the described virtual environment determined, to the described virtual environment distributed tasks determined.
In the present embodiment, the mobile terminal that computing machine connects is modeled to computing machine, server towards be multiple computing machines, conveniently can carry out the distribution of synchronous task to the mobile terminal that multiple computing machine connects like this.
In one embodiment, Jenkins (Charles Jenkins) framework can be adopted, by multiple Automated library system to a framework, be convenient to task to be distributed in multiple computing machine complete.
Each mobile terminal in a computer for connecting sets up virtual environment, this process has multiple implementation, for (SuSE) Linux OS, mobile terminal is for android (Android) operating system, Bash environment can be set up on computers, a corresponding mobile terminal of Bash environment.After setting up virtual environment, server towards be virtual environment simulation computing machine, being equivalent to mobile terminal to be used as is computing machine.Such as, a computing machine 1 is connected with 3 mobile terminals, is mobile terminal 1-mobile terminal 3 respectively.Set up Bash environment respectively for 3 mobile terminals, obtain Bash environment 1-Bash environment 3 (being equivalent to computing machine 1.1-1.3).Server and Bash environment 1-Bash environment 3 connect, and concerning server, neither be connected neither be connected with computing machine 1 with mobile terminal 1-3.
As shown in Figure 2, have 3 computing machines, be computing machine 1-computing machine 3 respectively, each computing machine connects 3 mobile terminals, then always have 9 mobile terminals, is mobile terminal 1-mobile terminal 9 respectively.For each mobile terminal sets up virtual environment, then there are virtual environment 1.1-1.3 (3 virtual environments namely on computing machine 1), virtual environment 2.1-2.3 and virtual environment 3.1-3.3.Server can dispatch arbitrarily 9 virtual environments, can synchronously to multiple virtual environment distributed tasks.Such as, server performs peace loading, unloading to the multiple APP (application) in multiple virtual environment simultaneously and performs examination & verification script.
In one embodiment, step 101 can have multiple implementation, and as mode A, mode A comprises steps A 1 and steps A 2.
In steps A 1, certification is carried out to each virtual environment on each computing machine.
In steps A 2, when certification is passed through, each virtual environment on each computing machine is joined same dispatch network.
In the present embodiment, verification process is the process of Path Setup between server and virtual environment, is also safety certification process.Meanwhile, verification process is also the build process of Jenkins framework, and each virtual environment is counted as a Jenkins service node.
In one embodiment, steps A 1 can have multiple implementation, as adopted username and password certification, can adopt key authentication.In order to improve security, the present embodiment adopts key authentication, and see option b, option b comprises step B1-step B3.
In step bl is determined., the connection request comprising key that virtual environment sends is received.
In step B2, the existing key in described key and this locality received is mated.
In step B3, when mating consistent, determine that certification is passed through.
In virtual environment, create a pair secret key, Public key and private key, and public key is put on the server.In connection procedure, virtual environment sends request to server, and request carries the public key of self to carry out safety verification.After server receives request, find the public key of this virtual environment under the master catalogue of first this virtual environment on that server, then the Public key found and the public key received are compared.If two secret keys are consistent, server is just encrypted " inquiry " (challenge) with public key and it is sent to virtual environment.Just can decipher by your private secret key after virtual environment receives " inquiry ".
This cipher mode is not easy to be cracked by external unit or tackle.
Such as, authentication mode is SSH (SecureShell, containment) certification.SSH is based upon the security protocol on application layer and transport layer basis.SSH is comparatively reliable, aims at the agreement that telnet session and other network services provide security.Utilize the information leakage problem that SSH agreement can effectively prevent in remote management procedures.
Be more than the task distribution procedure introduced from server side, introduce task distribution procedure from computing machine angle below.
Fig. 3 is the process flow diagram of the method for a kind of distributed tasks according to an exemplary embodiment, and as shown in Figure 3, the method can be realized by computing machine, comprises the following steps:
In step 301, connection request is sent to server, described request is used for each virtual environment to join by the same dispatch network of server construction, and virtual environment sets up, for mobile terminal is modeled to computing machine according to the quantity of each locally-attached mobile terminal.
In step 302, reception server is the unique environment variable that each virtual environment is distributed.
In step 303, the task of reception server distribution.
In step 304, according to the environmental variance in the described task received, the described task received is distributed to the virtual environment that the described environmental variance that receives is corresponding.
The present embodiment is from computing machine angle, sends request, join dispatch network to server, and the task that reception server sends, this task is given to corresponding virtual environment.From hardware interface and underlying operating system, be the task that computing machine receives server transmission, then be given to virtual environment.But from transport layer and application layer angle, be that virtual environment sends request to server, join dispatch network, set up the passage between server.Then by the task of this channel reception server transmission.Task carries the environmental variance of virtual environment.When environmental variance in the task that virtual environment acknowledges receipt of is the environmental variance of self, receives and perform this task.
In one embodiment, the connection request that computing machine sends is authentication request, and namely computing machine sends authentication request to server.The modes such as SSH certification can be adopted.Connection procedure, verification process and Path Setup process are by this process implementation.
The implementation procedure of distributed tasks is introduced in detail below by several embodiment.
Fig. 4 is the process flow diagram of the method for a kind of distributed tasks according to an exemplary embodiment, and as shown in Figure 4, the method can be realized by server and computing machine, comprises the following steps:
In step 401, the virtual environment of respective numbers set up by computing machine according to the quantity of the mobile terminal connected.
In step 402, the virtual environment in computing machine sends connection request to server.
In step 403, virtual environment is joined same dispatch network by server.
In step 404, server sends the connection response comprising environmental variance to virtual environment.This environmental variance is unique in dispatch network, by connection request and connection response, successfully sets up passage between server and virtual environment.
In step 405, server determines task to be distributed and the virtual environment corresponding to this task.
In a step 406, server according to the environmental variance determined, to corresponding virtual environment distributed tasks.Task comprises environmental variance.
In step 407, the virtual environment in computing machine receives task.
In a step 408, when the environmental variance in the virtual environment confirmation task in computing machine is the environmental variance of self, execute the task.
In the present embodiment, environmental variance and passage (i.e. channel number) can be set up corresponding relation by server, when needs are to which virtual environment distributed tasks, just by passage distributed tasks that the environmental variance of this virtual environment is corresponding.Or, server by all passages to virtual environment distributed tasks.After virtual environment receives task, whether the environmental variance in Detection task is self environmental variance, if the environmental variance of self, then executes the task, otherwise abandons receiving of task.
Fig. 5 is the process flow diagram of the method for a kind of distributed tasks according to an exemplary embodiment, and as shown in Figure 5, the method can be realized by server and computing machine, comprises the following steps:
In step 501, the virtual environment of respective numbers set up by computing machine according to the quantity of the mobile terminal connected.
In step 502, the virtual environment in computing machine sends Public key to server.
In step 503, server is verified the Public key received, and when being verified, continuing step 504, otherwise terminating this flow process, or send the message representing refusal to computing machine.
In step 504, virtual environment is joined same dispatch network by server.
In step 505, server sends environmental variance to virtual environment.
In step 506, server determines task to be distributed and the virtual environment corresponding to this task.
In step 507, server according to the environmental variance determined, the task after corresponding virtual environment distribution of encrypted.Task comprises environmental variance.
In step 508, virtual environment in computing machine receives task, and deciphers, performs.
The present embodiment achieves the safety certification between server and computing machine by the verification process of key, achieves the secure connection between server and computing machine and Path Setup simultaneously.
By being described above the implementation procedure of having separated distributed tasks, this process is realized by server and computing machine, is introduced respectively below for the inner structure of two equipment and function.
Fig. 6 is the device schematic diagram of a kind of distributed tasks according to an exemplary embodiment.With reference to Fig. 6, this device comprises: add module 601, control module 602 and sending module 603.
Add module 601, for each virtual environment on each computing machine is joined same dispatch network, and distribute unique environmental variance for each virtual environment on each computing machine; Wherein, virtual environment is that the quantity of the mobile terminal connected according to each computing machine is in a computer set up, for mobile terminal is modeled to computing machine.
Control module 602, for determining the virtual environment corresponding to task to be distributed.
Sending module 603, for the environmental variance according to the described virtual environment determined, to the described virtual environment distributed tasks determined.
In one embodiment, as shown in Figure 7, described interpolation module 601 comprises: authentication ' unit 6011 and adding device 6012.
Authentication ' unit 6011, for carrying out certification to each virtual environment on each computing machine.
Adding device 6012, for when certification is passed through, joins same dispatch network by each virtual environment on each computing machine.
In one embodiment, as shown in Figure 8, described authentication ' unit 6011 comprises: receive subelement 801, coupling subelement 802 and determine subelement 803.
Receive subelement 801, for receiving the connection request comprising key that virtual environment sends.
Coupling subelement 802, for mating the described key received with the existing key in this locality.
Determining subelement 803, for when mating consistent, determining that certification is passed through.
In one embodiment, described certification comprises SSH certification.
Fig. 9 is the device schematic diagram of a kind of distributed tasks according to an exemplary embodiment.With reference to Fig. 9, this device comprises: the first sending module 901, first receiver module 902, second receiver module 903 and the second sending module 904.
First sending module 901, for sending connection request to server, described request is used for each virtual environment to join by the same dispatch network of server construction, and virtual environment sets up, for mobile terminal is modeled to computing machine according to the quantity of each locally-attached mobile terminal.
First receiver module 902 is the unique environment variable that each virtual environment is distributed for reception server.
Second receiver module 903, for the task of reception server distribution.
Second sending module 904, for according to the environmental variance in the described task that receives, is distributed to the virtual environment that the described environmental variance that receives is corresponding by the described task received.
In one embodiment, described first sending module 901 sends authentication request to server.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 10 is the block diagram of a kind of device 1000 for distributed tasks according to an exemplary embodiment.Such as, device 1000 may be provided in a computing machine.With reference to Figure 10, device 1000 comprises processing components 1022, and it comprises one or more processor further, and the memory resource representated by storer 1032, can such as, by the instruction of the execution of processing element 1022, application program for storing.The application program stored in storer 1032 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1022 is configured to perform instruction, to perform the above method distributed tasks.
Device 1000 can also comprise the power management that a power supply module 1026 is configured to actuating unit 1000, and a wired or wireless network interface 1050 is configured to device 1000 to be connected to network, and input and output (I/O) interface 1058.Device 1000 can operate the operating system based on being stored in storer 1032, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
A device for distributed tasks, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Each virtual environment on each computing machine is joined same dispatch network, and distributes unique environmental variance for each virtual environment on each computing machine; Wherein, virtual environment is that the quantity of the mobile terminal connected according to each computing machine is in a computer set up, for mobile terminal is modeled to computing machine;
Determine the virtual environment corresponding to task to be distributed;
According to the environmental variance of the described virtual environment determined, to the described virtual environment distributed tasks determined.
Described processor can also be configured to:
Described each virtual environment on each computing machine is joined same dispatch network, comprising: certification is carried out to each virtual environment on each computing machine, certification by time, each virtual environment on each computing machine is joined same dispatch network.
Described processor can also be configured to:
Described certification is carried out to each virtual environment on each computing machine, comprising:
Receive the connection request comprising key that virtual environment sends;
The described key received is mated with the existing key in this locality;
When mating consistent, determine that certification is passed through.
Described processor can also be configured to:
Described certification comprises SSH certification.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of method of distributed tasks, described method comprises:
Each virtual environment on each computing machine is joined same dispatch network, and distributes unique environmental variance for each virtual environment on each computing machine; Wherein, virtual environment is that the quantity of the mobile terminal connected according to each computing machine is in a computer set up, for mobile terminal is modeled to computing machine;
Determine the virtual environment corresponding to task to be distributed;
According to the environmental variance of the described virtual environment determined, to the described virtual environment distributed tasks determined.
Instruction in described storage medium can also comprise:
Described each virtual environment on each computing machine is joined same dispatch network, comprising: certification is carried out to each virtual environment on each computing machine, certification by time, each virtual environment on each computing machine is joined same dispatch network.
Instruction in described storage medium can also comprise:
Described certification is carried out to each virtual environment on each computing machine, comprising:
Receive the connection request comprising key that virtual environment sends;
The described key received is mated with the existing key in this locality;
When mating consistent, determine that certification is passed through.
Instruction in described storage medium can also comprise:
Described certification comprises SSH certification.
A device for distributed tasks, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Send connection request to server, described request is used for each virtual environment to join by the same dispatch network of server construction, and virtual environment sets up, for mobile terminal is modeled to computing machine according to the quantity of each locally-attached mobile terminal;
Reception server is the unique environment variable that each virtual environment is distributed;
The task of reception server distribution;
According to the environmental variance in the described task received, the described task received is distributed to the virtual environment that the described environmental variance that receives is corresponding.
Described processor can also be configured to:
Described to server transmission connection request, comprising: send authentication request to server.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of method of distributed tasks, described method comprises:
Send connection request to server, described request is used for each virtual environment to join by the same dispatch network of server construction, and virtual environment sets up, for mobile terminal is modeled to computing machine according to the quantity of each locally-attached mobile terminal;
Reception server is the unique environment variable that each virtual environment is distributed;
The task of reception server distribution;
According to the environmental variance in the described task received, the described task received is distributed to the virtual environment that the described environmental variance that receives is corresponding.
Instruction in described storage medium can also comprise:
Described to server transmission connection request, comprising: send authentication request to server.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (14)

1. a method for distributed tasks, is characterized in that, comprising:
Each virtual environment on each computing machine is joined same dispatch network, and distributes unique environmental variance for each virtual environment on each computing machine; Wherein, virtual environment is that the quantity of the mobile terminal connected according to each computing machine is in a computer set up, for mobile terminal is modeled to computing machine;
Determine the virtual environment corresponding to task to be distributed;
According to the environmental variance of the described virtual environment determined, to the described virtual environment distributed tasks determined.
2. the method for distributed tasks according to claim 1, is characterized in that, described each virtual environment on each computing machine is joined same dispatch network, comprising:
Certification is carried out to each virtual environment on each computing machine, when certification is passed through, each virtual environment on each computing machine is joined same dispatch network.
3. the method for distributed tasks according to claim 2, is characterized in that, describedly carries out certification to each virtual environment on each computing machine, comprising:
Receive the connection request comprising key that virtual environment sends;
The described key received is mated with the existing key in this locality;
When mating consistent, determine that certification is passed through.
4. the method for distributed tasks according to claim 2, is characterized in that, described certification comprises containment SSH certification.
5. a method for distributed tasks, is characterized in that, comprising:
Send connection request to server, described request is used for each virtual environment to join by the same dispatch network of server construction, and virtual environment sets up, for mobile terminal is modeled to computing machine according to the quantity of each locally-attached mobile terminal;
Reception server is the unique environment variable that each virtual environment is distributed;
The task of reception server distribution;
According to the environmental variance in the described task received, the described task received is distributed to the virtual environment that the described environmental variance that receives is corresponding.
6. the method for distributed tasks according to claim 5, is characterized in that, described to server transmission connection request, comprising: send authentication request to server.
7. a device for distributed tasks, is characterized in that, comprising:
Add module, for each virtual environment on each computing machine is joined same dispatch network, and distribute unique environmental variance for each virtual environment on each computing machine; Wherein, virtual environment is that the quantity of the mobile terminal connected according to each computing machine is in a computer set up, for mobile terminal is modeled to computing machine;
Control module, for determining the virtual environment corresponding to task to be distributed;
Sending module, for the environmental variance according to the described virtual environment determined, to the described virtual environment distributed tasks determined.
8. the device of distributed tasks according to claim 7, is characterized in that, described interpolation module comprises:
Authentication ' unit, for carrying out certification to each virtual environment on each computing machine;
Adding device, for when certification is passed through, joins same dispatch network by each virtual environment on each computing machine.
9. the device of distributed tasks according to claim 8, is characterized in that, described authentication ' unit comprises:
Receive subelement, for receiving the connection request comprising key that virtual environment sends;
Coupling subelement, for mating the described key received with the existing key in this locality;
Determining subelement, for when mating consistent, determining that certification is passed through.
10. the device of distributed tasks according to claim 8, is characterized in that, described certification comprises SSH certification.
The device of 11. 1 kinds of distributed tasks, is characterized in that, comprising:
First sending module, for sending connection request to server, described request is used for each virtual environment to join by the same dispatch network of server construction, and virtual environment sets up, for mobile terminal is modeled to computing machine according to the quantity of each locally-attached mobile terminal;
First receiver module is the unique environment variable that each virtual environment is distributed for reception server;
Second receiver module, for the task of reception server distribution;
Second sending module, for according to the environmental variance in the described task that receives, is distributed to the virtual environment that the described environmental variance that receives is corresponding by the described task received.
The device of 12. distributed tasks according to claim 11, is characterized in that, described first sending module sends authentication request to server.
The device of 13. 1 kinds of distributed tasks, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Each virtual environment on each computing machine is joined same dispatch network, and distributes unique environmental variance for each virtual environment on each computing machine; Wherein, virtual environment is that the quantity of the mobile terminal connected according to each computing machine is in a computer set up, for mobile terminal is modeled to computing machine;
Determine the virtual environment corresponding to task to be distributed;
According to the environmental variance of the described virtual environment determined, to the described virtual environment distributed tasks determined.
The device of 14. 1 kinds of distributed tasks, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Send connection request to server, described request is used for each virtual environment to join by the same dispatch network of server construction, and virtual environment sets up, for mobile terminal is modeled to computing machine according to the quantity of each locally-attached mobile terminal;
Reception server is the unique environment variable that each virtual environment is distributed;
The task of reception server distribution;
According to the environmental variance in the described task received, the described task received is distributed to the virtual environment that the described environmental variance that receives is corresponding.
CN201410370120.0A 2014-07-30 2014-07-30 Task distribution method and device Pending CN105335210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410370120.0A CN105335210A (en) 2014-07-30 2014-07-30 Task distribution method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410370120.0A CN105335210A (en) 2014-07-30 2014-07-30 Task distribution method and device

Publications (1)

Publication Number Publication Date
CN105335210A true CN105335210A (en) 2016-02-17

Family

ID=55285769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410370120.0A Pending CN105335210A (en) 2014-07-30 2014-07-30 Task distribution method and device

Country Status (1)

Country Link
CN (1) CN105335210A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339260A (en) * 2016-08-19 2017-01-18 北京小米移动软件有限公司 Task allocation method and device for Jenkins platform
CN108062254A (en) * 2017-12-12 2018-05-22 腾讯科技(深圳)有限公司 Job processing method, device, storage medium and equipment
CN110472413A (en) * 2019-07-26 2019-11-19 Oppo广东移动通信有限公司 Device management method, device, storage medium and electronic equipment based on jenkins
CN111857861A (en) * 2020-01-19 2020-10-30 苏州浪潮智能科技有限公司 Jenkins task management method, system, terminal and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521899A (en) * 2009-03-31 2009-09-02 大连海事大学 System and method for on-computer test of mobile applications
CN103645988A (en) * 2013-12-24 2014-03-19 哈尔滨工业大学 Universal distributed test system framework

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521899A (en) * 2009-03-31 2009-09-02 大连海事大学 System and method for on-computer test of mobile applications
CN103645988A (en) * 2013-12-24 2014-03-19 哈尔滨工业大学 Universal distributed test system framework

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CHRISTOPHER ORR: "Android Emulator插件", 《维基百科(HTTPS://WIKI.JENKINS.IO/PAGES/VIEWPAGE.ACTION?PAGEID=57181910)》 *
CHRISTOPHER ORR: "安卓模拟器插件", 《HTTPS://WIKI.JENKINS.IO/PAGES/VIEWPAGE.ACTION?PAGEID=57181910》 *
小小: "Jenkins使用管理节点", 《新浪博客(HTTP://BLOG.SINA.COM.CN/S/BLOG_87F0F17E0101IQ8A.HTML)》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339260A (en) * 2016-08-19 2017-01-18 北京小米移动软件有限公司 Task allocation method and device for Jenkins platform
CN108062254A (en) * 2017-12-12 2018-05-22 腾讯科技(深圳)有限公司 Job processing method, device, storage medium and equipment
CN110472413A (en) * 2019-07-26 2019-11-19 Oppo广东移动通信有限公司 Device management method, device, storage medium and electronic equipment based on jenkins
CN110472413B (en) * 2019-07-26 2021-06-01 Oppo广东移动通信有限公司 Jenkins-based equipment management method and device, storage medium and electronic equipment
CN111857861A (en) * 2020-01-19 2020-10-30 苏州浪潮智能科技有限公司 Jenkins task management method, system, terminal and storage medium
CN111857861B (en) * 2020-01-19 2022-07-08 苏州浪潮智能科技有限公司 Jenkins task management method, system, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN108833101B (en) Data transmission method of Internet of things equipment, internet of things equipment and authentication platform
US10033717B2 (en) Terminal single sign-on configuration, authentication method, and system, and application service system thereof
CN108632056B (en) Intelligent equipment network configuration method and system
US10812974B2 (en) Virtual desktop client connection continuity
CN108134789B (en) Method for synchronizing data between devices through cloud and cloud server
CN105099985A (en) Login method and device of multiple applications
WO2016150327A1 (en) Terminal remote assistance method, device and system
EP3602997B1 (en) Mutual authentication system
US9401905B1 (en) Transferring soft token authentication capabilities to a new device
CN105468462B (en) Method and system for interprocess communication identity verification and communication between application software
CN105335210A (en) Task distribution method and device
WO2016000462A1 (en) User information sharing method, device and system
CN112566113B (en) Key generation and terminal network distribution method, device and equipment
CN105049280B (en) The interface Behavior modeling test macro and method of Business Management Platform
CN111881486B (en) Multi-party data backup method, device and system based on block chain
CN108306793A (en) Smart machine, intelligent domestic gateway, the method and system for establishing connection
CN105530309A (en) IoT control platform and implementation method thereof
CN114500351A (en) Network performance test method, device, equipment and storage medium
CN111193699B (en) Method and device for detecting security vulnerability of ZigBee device
CN104753927A (en) Unified verification method and device
KR101669267B1 (en) A method and a system for establishing a communication channel between a predetermined number of selected devices and a device and a server arranged for use in the system
CN115865705A (en) Multi-party federal learning system, method, equipment and medium based on supervision mechanism
EP3833153B1 (en) Network connection methods and devices
CN105187511A (en) Method and device for logging applications on multiple terminals
CN105959323A (en) Identity authentication system, method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160217

RJ01 Rejection of invention patent application after publication