CN107689894A - The method and system of novel maintenance and Dynamical Deployment - Google Patents

The method and system of novel maintenance and Dynamical Deployment Download PDF

Info

Publication number
CN107689894A
CN107689894A CN201710930166.7A CN201710930166A CN107689894A CN 107689894 A CN107689894 A CN 107689894A CN 201710930166 A CN201710930166 A CN 201710930166A CN 107689894 A CN107689894 A CN 107689894A
Authority
CN
China
Prior art keywords
intelligent terminal
plug
instruction
novel maintenance
central 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
CN201710930166.7A
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.)
Yonyou Network Technology Co Ltd
Original Assignee
Yonyou Network Technology 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 Yonyou Network Technology Co Ltd filed Critical Yonyou Network Technology Co Ltd
Priority to CN201710930166.7A priority Critical patent/CN107689894A/en
Publication of CN107689894A publication Critical patent/CN107689894A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention is proposed for intelligent terminal, the method for the novel maintenance of server and Dynamical Deployment, for intelligent terminal, the system of the novel maintenance of server and Dynamical Deployment, computer equipment, computer-readable recording medium.The method of novel maintenance and Dynamical Deployment, for intelligent terminal, method includes:Link order is sent to central server to connect to establish with central server, produce control communication port and service communication port based on default agreement;By controlling communication port to receive the control instruction that central server is sent, and control instruction is performed to carry out novel maintenance operation;And the plug-in services sent by communication for service channel reception central server instruct, and plug-in services instruction is performed to carry out the Dynamical Deployment operation to plug-in unit.The present invention establishes reliable bidirectional real-time, ensure that service is independent of each other with terminal control, realizes novel maintenance, online Dynamical Deployment and the real-time monitoring to intelligent terminal.

Description

The method and system of novel maintenance and Dynamical Deployment
Technical field
The present invention relates to service system technical field, in particular to a kind of novel maintenance for intelligent terminal and The method and system of Dynamical Deployment, the method and system of the novel maintenance by server and Dynamical Deployment, computer equipment, based on Calculation machine readable storage medium storing program for executing.
Background technology
With the increasingly in-depth of Internet era, the informationization of large-scale conglomerate, the compartmentalization of large-scale data center, mix The structure of cloud service is closed, all suffers from the problem of Distributed Services are administered:(1) service arrangement deployment inconvenience, when certain end in system When end needs to dispose new service, generally require to shut down deployment and implement personnel to carry out execute-in-place.(2) can not ensure to service High Availabitity, when terminal when needing to carry out service change (dispose, unload, upgrade some service), it is necessary to shut down deployment, therefore Cause other services unavailable.(3) system upgrade inconvenience, when system needs upgrading terminals, it is necessary to implement personnel or team enters Row field conduct.(4) O&M poor in timeliness, often due to implementation cost causes O&M not in time after pinpointing the problems.
The content of the invention
It is contemplated that at least solves one of technical problem present in prior art or correlation technique.
Therefore, one side of the invention is to propose a kind of side of the novel maintenance for intelligent terminal and Dynamical Deployment Method.
The second aspect of the invention is to propose a kind of system of the novel maintenance for intelligent terminal and Dynamical Deployment.
The third aspect of the invention is to propose a kind of method of the novel maintenance for server and Dynamical Deployment.
The fourth aspect of the invention is to propose a kind of system of the novel maintenance for server and Dynamical Deployment.
The fifth aspect of the invention is to propose a kind of computer equipment.
The sixth aspect of the invention is to propose a kind of computer-readable recording medium.
In view of this, according to an aspect of the present invention, it is proposed that a kind of method of novel maintenance and Dynamical Deployment, be used for Intelligent terminal, it is characterised in that method includes:Link order is sent with genuinely convinced with central server based on default agreement Business device establishes connection, produces control communication port and service communication port;Sent out by controlling communication port to receive central server The control instruction sent, and control instruction is performed to carry out novel maintenance operation;And by genuinely convinced in communication for service channel reception The plug-in services that device is sent of being engaged in instruct, and perform plug-in services instruction to carry out the Dynamical Deployment operation to plug-in unit.
The method of novel maintenance and Dynamical Deployment provided by the invention, for intelligent terminal, based on default agreement in Central server sends link order, and central server establishes long connection after link order is received, with intelligent terminal, penetrates fire prevention Wall, establish control communication port and service two kinds of passages of communication port so that plug-in services are isolated with the control of intelligent terminal, and two Person is independent of each other, and realizes reliable bidirectional real-time;Intelligent terminal is sent out by controlling communication port to receive central server The control instruction sent, its novel maintenance is operated according to the service of control instruction implementation center, so realize novel maintenance behaviour Make;The plug-in services that intelligent terminal is sent by communication for service channel reception central server are instructed, and central server is based on The various ways management service plug-in units such as http services, ftp services, maven warehouses, ensure that terminal obtains the height of service plug passage It can use, and with controlling the command channel of intelligent terminal to isolate, ensure that plug-in unit obtains and be independent of each other with terminal control, intelligent terminal is held Row plug-in services order, realizes online Dynamical Deployment.
According to the method for the above-mentioned novel maintenance and Dynamical Deployment of the present invention, there can also be following technical characteristic:
In the above-mentioned technical solutions, it is preferable that control instruction comprises at least:Instruction of restarting, terminal staging instruction, daily record are received Collect instruction, out code, condition monitoring instruction;Service order comprises at least:Service plug management instruction, terminating card management refer to Order.
In the technical scheme, the control instruction of intelligent terminal for reception includes instruction of restarting, terminal staging instruction, daily record receipts Collect instruction, out code, condition monitoring instruction, realize that the Version Control of terminal, the example of terminal count, eventually by control instruction The restarting of end, the edition upgrading of terminal, the closing of terminal, daily record crawl, real-time status collection, Parameter analysis and early warning.Intelligence The service order that terminal receives includes service plug management instruction, terminating card management instructs, and is realized and serviced by service order The Version Control of plug-in unit, plug-in unit acquisition service, terminating card portion are provided using maven warehouses, ftp or http Server modes Administration, terminating card unloading, terminating card upgrading.
In any of the above-described technical scheme, it is preferable that preset protocol is the full-duplex communication based on transmission control protocol TCP WebSocket agreements.
In the technical scheme, in many cases, private network or provided with unidirectional fire wall, moreover, private network is to public affairs There are network development IP and port to easily cause safety problem, but preset protocol is the full duplex based on transmission control protocol TCP Communicate WebSocket agreements, and the agreement makes intelligent terminal actively establish connection to central server, and keeps session, makes data Message can be transmitted with two-way equity, so as to the real-time connection of equity.
In any of the above-described technical scheme, it is preferable that perform control instruction to carry out novel maintenance operation and perform plug-in unit After service order is to carry out the Dynamical Deployment operation to plug-in unit, in addition to:The log collection that central server is sent is received to refer to Order, the operation information of record novel maintenance operation to generate basic daily record, believe by the operation for recording the Dynamical Deployment operation to plug-in unit Breath records basic operation information to generate system journal to generate business diary, and by basic daily record, business diary, system day Will is uploaded to central server.
In the technical scheme, the log collection instruction of intelligent terminal for reception and implementation center's server transmission, daily record is received Mode set is divided into basic daily record, business diary, system journal.System journal record intelligent terminal starts and basic operation information; The execution information of basic log recording novel maintenance operation;Business diary records the execution information of service plug.Daily record uses day Phase is cut, and the daily record of the previous day is compressed upload after integral cutting.In this way, realize log collection.
In any of the above-described technical scheme, it is preferable that receive the condition monitoring instruction that central server is sent, collection is real-time The real time status information of running environment parameter and/or intelligent terminal, and by run-time environment parameter and/or the reality of intelligent terminal When status information send to central server so that central server carry out condition monitoring.
In the technical scheme, when intelligent terminal for reception and the condition monitoring instruction of implementation center's server transmission, use JNI (Java local interfaces) technology collection system run-time environment parameter information, needed to record intelligent terminal according to system Real time status information, the collection of both information can be timed collection with sample clock generator, when intelligent terminal and center service When device connection status is good, central server is directly uploaded to, connection status is bad, by persistence in local, until in real time Uploaded during good connection in batch, ensure that uploading speed, avoided upload failure, finally realize condition monitoring.
In any of the above-described technical scheme, it is preferable that detection in real time and the connection status of central server, in connection status During to disconnect and/or connect time-out, send link order and be connected with being re-established with central server.
In the technical scheme, under the conditions of public network, there is network jitter, congestion in duration, and it is unexpected to easily cause communication Interrupt, intelligent terminal detection in real time and the connection status of central server, when connection status is disconnects and/or connects overtime, Send link order to be connected to re-establish with central server, pass through when passing through broken string and when connection status is " seemingly-dead " Reconnection, it ensure that the High Availabitity connected in real time.
According to the second aspect of the invention, it is proposed that a kind of novel maintenance of intelligent terminal and the system of Dynamical Deployment, For intelligent terminal, including:Link block, for based on default agreement to central server send link order with center Server establishes connection, produces control communication port and service communication port;First execution module, for by controlling communication logical Road receives the control instruction that central server is sent, and performs control instruction to carry out novel maintenance operation;And second perform Module, for the plug-in services instruction sent by communication for service channel reception central server, and perform plug-in services instruction To carry out the Dynamical Deployment operation to plug-in unit.
The novel maintenance of intelligent terminal provided by the invention and the system of Dynamical Deployment, for intelligent terminal, link block Link order is sent to central server based on default agreement, central server is after link order is received, with intelligent terminal Long connection is established, firewall-penetrating, establishes control communication port and service two kinds of passages of communication port so that plug-in services and intelligence The control isolation of energy terminal, both are independent of each other, and realize reliable bidirectional real-time;Intelligent terminal is by controlling communication logical Road receives the control instruction that central server is sent, and the first execution module is serviced to the long-range of its according to control instruction implementation center O&M operates, and so realizes novel maintenance operation;Second execution module is sent out by communication for service channel reception central server The plug-in services instruction sent, central server are based on the various ways management services such as http services, ftp services, maven warehouses and inserted Part, ensure that terminal obtains the High Availabitity of service plug passage, and with controlling the command channel of intelligent terminal to isolate, ensure that plug-in unit obtains Take and be independent of each other with terminal control, perform plug-in services order in intelligent terminal, realize online Dynamical Deployment.
According to the novel maintenance of above-mentioned intelligent terminal and the system of Dynamical Deployment of the present invention, there can also be following technology Feature:
In the above-mentioned technical solutions, it is preferable that control instruction comprises at least:Instruction of restarting, terminal staging instruction, daily record are received Collect instruction, out code, condition monitoring instruction;Service order comprises at least:Service plug management instruction, terminating card management refer to Order.
In the technical scheme, the control instruction of intelligent terminal for reception includes instruction of restarting, terminal staging instruction, daily record receipts Collect instruction, out code, condition monitoring instruction, realize that the Version Control of terminal, the example of terminal count, eventually by control instruction The restarting of end, the edition upgrading of terminal, the closing of terminal, daily record crawl, real-time status collection, Parameter analysis and early warning.Intelligence The service order that terminal receives includes service plug management instruction, terminating card management instructs, and is realized and serviced by service order The Version Control of plug-in unit, plug-in unit acquisition service, terminating card portion are provided using maven warehouses, ftp or http Server modes Administration, terminating card unloading, terminating card upgrading.
In any of the above-described technical scheme, it is preferable that preset protocol is the full-duplex communication based on transmission control protocol TCP WebSocket agreements.
In the technical scheme, in many cases, private network or provided with unidirectional fire wall, moreover, private network is to public affairs There are network development IP and port to easily cause safety problem, but preset protocol is the full duplex based on transmission control protocol TCP Communicate WebSocket agreements, and the agreement makes intelligent terminal actively establish connection to central server, and keeps session, makes data Message can be transmitted with two-way equity, so as to the real-time connection of equity.
In any of the above-described technical scheme, it is preferable that the 3rd execution module, for recording the operation letter of novel maintenance operation Breath records the operation information of the Dynamical Deployment operation to plug-in unit to generate business diary, records basis fortune to generate basic daily record Basic daily record, business diary, system journal are uploaded to central server by row information to generate system journal.
In the technical scheme, the daily record that the 3rd execution module of intelligent terminal is received and implementation center's server is sent is received Collection instruction, log collection mode are divided into basic daily record, business diary, system journal.System journal record intelligent terminal start and Basic operation information;The execution information of basic log recording novel maintenance operation;Business diary record service plug performs letter Breath.Daily record is cut using the date, and the daily record of the previous day is compressed upload after integral cutting.In this way, realize daily record Collect.
In any of the above-described technical scheme, it is preferable that the 4th execution module is used for the state for receiving central server transmission Monitoring instruction, gathers the real time status information of run-time environment parameter and/or intelligent terminal, and by run-time environment parameter And/or real time status information is sent to central server, so that central server carries out condition monitoring.
In the technical scheme, when the state that the 4th execution module of intelligent terminal is received and implementation center's server is sent Monitoring instruction, using JNI (Java local interfaces) technology collection system run-time environment parameter information, needs to remember according to system The real time status information of intelligent terminal is recorded, the collection of both information can be timed collection with sample clock generator, when intelligent end When end and good central server connection status, central server is directly uploaded to, connection status is bad, by persistence at this Ground, until being uploaded during real-time good connection in batch, uploading speed is ensure that, avoid upload failure, finally realize Condition monitoring.
In any of the above-described technical scheme, it is preferable that reconnection module, for detecting the connection shape with central server in real time State, when connection status is disconnects and/or connect overtime, send link order and be connected with being re-established with central server.
In the technical scheme, under the conditions of public network, there is network jitter, congestion in duration, and it is unexpected to easily cause communication Interrupt, the real-time detection of reconnection module of intelligent terminal and the connection status of central server, be to disconnect and/or connect in connection status When connecing time-out, send link order and be connected with being re-established with central server, when passing through broken string and when connection status is " false By reconnection when extremely ", the High Availabitity connected in real time ensure that.
According to the third aspect of the present invention, the invention provides a kind of method of novel maintenance and Dynamical Deployment, it is used for Server, including:Intelligent terminal is received based on the link order that default agreement is sent to establish connection control with intelligent terminal Communication port and service communication port;By controlling communication port to send control instruction to intelligent terminal, so that intelligent terminal is held Row control instruction is to carry out novel maintenance operation;And the plug-in services sent by communication for service passage were instructed to intelligent end End, so that intelligent terminal performs plug-in services instruction to carry out the Dynamical Deployment operation to plug-in unit.
The method of novel maintenance and Dynamical Deployment provided by the invention, for server, intelligent terminal is based on default association Discuss to server and send link order, server establishes long connection after link order is received, with intelligent terminal, penetrates fire prevention Wall, establish control communication port and service two kinds of passages of communication port so that plug-in services are isolated with the control of intelligent terminal, and two Person is independent of each other, and realizes reliable bidirectional real-time;Server by control communication port receive send control instruction, Intelligent terminal operates according to control instruction execute server to its novel maintenance, so realizes novel maintenance operation;Service The plug-in services that device is sent by communication for service passage instruct, and it is more that server is based on http services, ftp services, maven warehouses etc. Kind mode management service plug-in unit, ensure that terminal obtains the High Availabitity of service plug passage, and with controlling the order of intelligent terminal to lead to Road isolates, and ensures that plug-in unit obtains and is independent of each other with terminal control, intelligent terminal performs plug-in services order, realizes online dynamic Deployment.
According to the method for the above-mentioned novel maintenance and Dynamical Deployment of the present invention, there can also be following technical characteristic:
In the above-mentioned technical solutions, it is preferable that control instruction comprises at least:Instruction of restarting, terminal staging instruction, daily record are received Collect instruction, out code, condition monitoring instruction;Service order comprises at least:Service plug management instruction, terminating card management refer to Order.
In the technical scheme, the control instruction that server is sent includes instruction of restarting, terminal staging instruction, log collection Instruction, out code, condition monitoring instruction, Version Control, example statistics, the terminal of terminal of terminal are realized by control instruction Restart, the edition upgrading of terminal, the closing of terminal, daily record crawl, real-time status collection, Parameter analysis and early warning.Service refers to Order includes service plug management instruction, terminating card management instruction, realizes the Version Control of service plug by service order, adopts Plug-in unit acquisition service is provided with maven warehouses, ftp or http Server modes, terminating card is disposed, terminating card unloads, eventually Hold plug-in unit upgrading.
In any of the above-described technical scheme, it is preferable that preset protocol is the full-duplex communication based on transmission control protocol TCP WebSocket agreements.
In the technical scheme, in many cases, private network or provided with unidirectional fire wall, moreover, private network is to public affairs There are network development IP and port to easily cause safety problem, but preset protocol is the full duplex based on transmission control protocol TCP Communicate WebSocket agreements, and the agreement makes intelligent terminal actively establish connection to central server, and keeps session, makes data Message can be transmitted with two-way equity, so as to the real-time connection of equity.
In the above-mentioned technical solutions, it is preferable that by controlling communication port to send control instruction to intelligent terminal and lead to The plug-in services for crossing the transmission of communication for service passage are instructed to intelligent terminal, in addition to:Log collection is sent to instruct to intelligence Terminal, so that the operation information of intelligent terminal record novel maintenance operation is to generate basic daily record, record to the dynamic state part of plug-in unit The operation information of operation is affixed one's name to generate business diary, record basic operation information to generate system journal;Receive intelligent terminal hair Basic daily record, business diary, the system journal sent.
In the technical scheme, server sends log collection instruction, intelligent terminal for reception and implementation center's server hair The log collection instruction sent, log collection mode are divided into basic daily record, business diary, system journal.System journal record intelligence Terminal starts and basic operation information;The execution information of basic log recording novel maintenance operation;Business diary record service is inserted The execution information of part.Daily record is cut using the date, and the daily record of the previous day is compressed upload after integral cutting.In this way, Realize log collection.
In any of the above-described technical scheme, it is preferable that send condition monitoring and instruct to intelligent terminal, so that intelligent terminal is adopted Collect the real time status information of run-time environment parameter and/or intelligent terminal;Receive the run-time environment that intelligent terminal is sent The real time status information of parameter and/or intelligent terminal.
In the technical scheme, server sends condition monitoring instruction, intelligent terminal for reception and implementation center's server hair The condition monitoring instruction sent, using JNI (Java local interfaces) technology collection system run-time environment parameter information, according to being System needs to record the real time status information of intelligent terminal, and the collection of both information can be timed collection with sample clock generator, When intelligent terminal and server connection state are good, directly upload onto the server, connection status is bad, by persistence at this Ground, until being uploaded during real-time good connection in batch, uploading speed is ensure that, avoid upload failure, finally realize Condition monitoring.
According to the fourth aspect of the present invention, the invention provides the system of a kind of novel maintenance and Dynamical Deployment, it is used for Server, including:Link block, for receive intelligent terminal based on the link order that default agreement is sent with intelligent terminal Establish connection control communication port and service communication port;Control module, for by controlling communication port to send control instruction To intelligent terminal, so that intelligent terminal performs control instruction to carry out novel maintenance operation;And deployment module, for passing through clothes The plug-in services that business communication port is sent are instructed to intelligent terminal, so that intelligent terminal performs plug-in services instruction to carry out to inserting The Dynamical Deployment operation of part.
The system of novel maintenance and Dynamical Deployment provided by the invention, for server, intelligent terminal is based on default association To discuss to server and send link order, the link block of server establishes long connection after link order is received, with intelligent terminal, Firewall-penetrating, establish control communication port and service two kinds of passages of communication port so that the control of plug-in services and intelligent terminal System isolation, both are independent of each other, and realize reliable bidirectional real-time;The control module of server is by controlling communication port The control instruction sent is received, intelligent terminal is operated to its novel maintenance according to control instruction execute server, so realized Novel maintenance operation;The plug-in services that the deployment module of server is sent by communication for service passage are instructed, and server is based on The various ways management service plug-in units such as http services, ftp services, maven warehouses, ensure that terminal obtains the height of service plug passage It can use, and with controlling the command channel of intelligent terminal to isolate, ensure that plug-in unit obtains and be independent of each other with terminal control, intelligent terminal is held Row plug-in services order, realizes online Dynamical Deployment.
According to the system of the above-mentioned novel maintenance and Dynamical Deployment of the present invention, there can also be following technical characteristic:
In the above-mentioned technical solutions, it is preferable that control instruction comprises at least:Instruction of restarting, terminal staging instruction, daily record are received Collect instruction, out code, condition monitoring instruction;Service order comprises at least:Service plug management instruction, terminating card management refer to Order.
In the technical scheme, the control instruction that server is sent includes instruction of restarting, terminal staging instruction, log collection Instruction, out code, condition monitoring instruction, Version Control, example statistics, the terminal of terminal of terminal are realized by control instruction Restart, the edition upgrading of terminal, the closing of terminal, daily record crawl, real-time status collection, Parameter analysis and early warning.Service refers to Order includes service plug management instruction, terminating card management instruction, realizes the Version Control of service plug by service order, adopts Plug-in unit acquisition service is provided with maven warehouses, ftp or http Server modes, terminating card is disposed, terminating card unloads, eventually Hold plug-in unit upgrading.
In any of the above-described technical scheme, it is preferable that preset protocol is the full-duplex communication based on transmission control protocol TCP WebSocket agreements.
In the technical scheme, in many cases, private network or provided with unidirectional fire wall, moreover, private network is to public affairs There are network development IP and port to easily cause safety problem, but preset protocol is the full duplex based on transmission control protocol TCP Communicate WebSocket agreements, and the agreement makes intelligent terminal actively establish connection to central server, and keeps session, makes data Message can be transmitted with two-way equity, so as to the real-time connection of equity.
In the above-mentioned technical solutions, it is preferable that log collection module, instructed for sending log collection to intelligent terminal, So that the operation information of intelligent terminal record novel maintenance operation is to generate basic daily record, record operates to the Dynamical Deployment of plug-in unit Operation information to generate business diary, record basic operation information to generate system journal;Log collection module, it is additionally operable to connect Receive basic daily record, business diary, system journal that intelligent terminal is sent.
In the technical scheme, the log collection module of server sends log collection instruction, and intelligent terminal for reception is simultaneously held The log collection instruction that row central server is sent, log collection mode are divided into basic daily record, business diary, system journal.System Log recording intelligent terminal of uniting starts and basic operation information;The execution information of basic log recording novel maintenance operation;Business The execution information of Logging Service plug-in unit.Daily record is cut using the date, and the daily record of the previous day is carried out after integral cutting Compression uploads.In this way, realize log collection.
In any of the above-described technical scheme, it is preferable that monitoring module, instructed for sending condition monitoring to intelligent end End, so that the real time status information of intelligent terminal collection run-time environment parameter and/or intelligent terminal;Monitoring module, It is additionally operable to receive the run-time environment parameter of intelligent terminal transmission and/or the real time status information of intelligent terminal.
In the technical scheme, the monitoring module of server sends condition monitoring instruction, and intelligent terminal for reception is simultaneously held The condition monitoring instruction that row central server is sent, using JNI (Java local interfaces) technology collection system run-time environment Parameter information, needed to record the real time status information of intelligent terminal according to system, the collection of both information can be with sampling timing Device is timed collection, when intelligent terminal and server connection state are good, directly uploads onto the server, connection status is not It is good, by persistence in local, until ensure that uploading speed in batch upload during real-time good connection, avoiding upload Failure, finally realizes condition monitoring.
According to the fifth aspect of the present invention, the invention provides a kind of computer equipment, including memory, processor and On a memory and the computer program that can run on a processor, during computing device computer program realization is as described above for storage In any technical scheme for intelligent terminal novel maintenance and Dynamical Deployment method the step of or any technology as described above In scheme for server novel maintenance and Dynamical Deployment method the step of.
Computer equipment provided by the invention, including memory, processor and storage are on a memory and can be in processor The computer program of upper operation, realize during computing device computer program in any technical scheme as described above and be used for intelligence eventually The step of method of the novel maintenance at end and Dynamical Deployment or the as described above long-range fortune for server in any technical scheme The step of method of peacekeeping Dynamical Deployment, therefore it is used for the novel maintenance of intelligent terminal and the method or use of Dynamical Deployment with this In server novel maintenance and Dynamical Deployment method whole beneficial effects, will not be repeated here.
According to the sixth aspect of the invention, the invention provides a kind of computer-readable recording medium, it is stored thereon with Computer program, realized when computer program is executed by processor in any technical scheme as described above and be used for the remote of intelligent terminal Novel maintenance for server in the step of method of Cheng Yunwei and Dynamical Deployment or as described above any technical scheme and dynamic The step of method of state deployment.
Computer-readable recording medium provided by the invention, is stored thereon with computer program, and computer program is processed Realized when device performs as described above in any technical scheme for intelligent terminal novel maintenance and Dynamical Deployment method step It is rapid or as described above in any technical scheme for server novel maintenance and Dynamical Deployment method the step of, therefore have This is used for the novel maintenance of intelligent terminal and the method for Dynamical Deployment or the novel maintenance for server and the side of Dynamical Deployment Whole beneficial effects of method, will not be repeated here.
The additional aspect and advantage of the present invention will become obvious in following description section, or the practice by the present invention Recognize.
Brief description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become in the description from combination accompanying drawings below to embodiment Substantially and it is readily appreciated that, wherein:
The method that Fig. 1 shows the novel maintenance and Dynamical Deployment for intelligent terminal of one embodiment of the present of invention Schematic flow sheet;
The method that Fig. 2 shows the novel maintenance and Dynamical Deployment for intelligent terminal of an alternative embodiment of the invention Schematic flow sheet;
Fig. 3 show one embodiment of the present of invention for the novel maintenance of intelligent terminal and the system of Dynamical Deployment Schematic block diagram;
Fig. 4 show one embodiment of the present of invention for server novel maintenance and Dynamical Deployment method stream Journey schematic diagram;
Fig. 5 shows showing for the novel maintenance of server and the system of Dynamical Deployment for one embodiment of the present of invention Meaning block diagram;
Fig. 6 shows the configuration diagram of the distribution service of the specific embodiment of the present invention;
Fig. 7 shows that the broken string of the specific embodiment of the present invention carrys out and connected the double shield of health status detection again Schematic diagram of mechanism;
Fig. 8 shows the schematic flow sheet of the distribution service remote upgrade of one embodiment of the present of invention;
Fig. 9 shows the principle schematic of the distribution service service plug upgrading of one embodiment of the present of invention;
Figure 10 shows the schematic block diagram of the computer equipment of one embodiment of the present of invention.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that aforementioned aspect of the present invention, feature and advantage Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also To be different from other modes described here using other to implement, therefore, protection scope of the present invention is not limited to following public affairs The limitation for the specific embodiment opened.
The embodiment of first aspect present invention, propose a kind of for the novel maintenance of intelligent terminal and the side of Dynamical Deployment Method, Fig. 1 show one embodiment of the present of invention for intelligent terminal novel maintenance and Dynamical Deployment method flow Schematic diagram:
Step 102, link order is sent to central server based on default agreement to connect to establish with central server, Produce control communication port and service communication port;
Step 104, by control communication port receive central server send control instruction, and perform control instruction with Novel maintenance operation is carried out, and the plug-in services sent by communication for service channel reception central server instruct, and perform Plug-in services instruction is operated with the Dynamical Deployment carried out to plug-in unit.
The novel maintenance and the method for Dynamical Deployment that the present embodiment provides, for intelligent terminal, based on default agreement to Central server sends link order, and central server establishes long connection after link order is received, with intelligent terminal, penetrates anti- Wall with flues, establish control communication port and service two kinds of passages of communication port so that plug-in services are isolated with the control of intelligent terminal, Both are independent of each other, and realize reliable bidirectional real-time;Intelligent terminal is by controlling communication port to receive central server The control instruction of transmission, its novel maintenance is operated according to the service of control instruction implementation center, so realizes novel maintenance Operation;The plug-in services that intelligent terminal is sent by communication for service channel reception central server are instructed, and central server is based on The various ways management service plug-in units such as http services, ftp services, maven warehouses, ensure that terminal obtains the height of service plug passage It can use, and with controlling the command channel of intelligent terminal to isolate, ensure that plug-in unit obtains and be independent of each other with terminal control, intelligent terminal is held Row plug-in services order, realizes online Dynamical Deployment.
The method that Fig. 2 shows the novel maintenance and Dynamical Deployment for intelligent terminal of an alternative embodiment of the invention Schematic flow sheet.The method of the novel maintenance and Dynamical Deployment includes:
Step 202, link order is sent to central server based on default agreement to connect to establish with central server, Produce control communication port and service communication port;
Step 204, by control communication port receive central server send control instruction, and perform control instruction with Novel maintenance operation is carried out, and the plug-in services sent by communication for service channel reception central server instruct, and perform Plug-in services instruction is operated with the Dynamical Deployment carried out to plug-in unit;
Step 206, receive central server send log collection instruction, record novel maintenance operation operation information with Basic daily record is generated, the operation information of the Dynamical Deployment operation to plug-in unit is recorded to generate business diary, records basis operation letter Basic daily record, business diary, system journal are uploaded to central server by breath to generate system journal;
Step 208, the condition monitoring instruction that central server is sent is received, gathers run-time environment parameter and/or intelligence The real time status information of energy terminal, and the real time status information of run-time environment parameter and/or intelligent terminal is sent into Central server, so that central server carries out condition monitoring;
Step 210, detection in real time and the connection status of central server, it is disconnection and/or connection time-out in connection status When, send link order and be connected with being re-established with central server.
In this embodiment, the control instruction of intelligent terminal for reception includes instruction of restarting, terminal staging instruction, log collection Instruction, out code, condition monitoring instruction, Version Control, example statistics, the terminal of terminal of terminal are realized by control instruction Restart, the edition upgrading of terminal, the closing of terminal, daily record crawl, real-time status collection, Parameter analysis and early warning.Intelligence is eventually The service order that end receives includes service plug management instruction, terminating card management instructs, and realizes that service is inserted by service order The Version Control of part, provided using maven warehouses, ftp or http Server modes plug-in unit obtain service, terminating card deployment, Terminating card unloading, terminating card upgrading.
In this embodiment, in many cases, private network or provided with unidirectional fire wall, moreover, private network is to publicly-owned Network development IP and port easily cause safety problem, but preset protocol is the full duplex based on transmission control protocol TCP leads to Believe WebSocket agreements, the agreement makes intelligent terminal actively establish connection to central server, and keeps session, makes datagram Text can be transmitted with two-way equity, so as to the real-time connection of equity.
In this embodiment, the log collection instruction that intelligent terminal for reception and implementation center's server are sent, log collection Mode is divided into basic daily record, business diary, system journal.System journal record intelligent terminal starts and basic operation information;Base The execution information of plinth log recording novel maintenance operation;Business diary records the execution information of service plug.Daily record uses the date Cut, the daily record of the previous day is compressed upload after integral cutting.In this way, realize log collection.
In this embodiment, when intelligent terminal for reception and the condition monitoring instruction of implementation center's server transmission, using JNI (Java local interfaces) technology collection system run-time environment parameter information, needed to record the real-time of intelligent terminal according to system Status information, the collection of both information can be timed collection with sample clock generator, when intelligent terminal and central server connect Connect state it is good when, be directly uploaded to central server, connection status is bad, by persistence in local, until connection in real time Uploaded when in good condition in batch, ensure that uploading speed, avoided upload failure, finally realize condition monitoring.
In this embodiment, under the conditions of due to public network, there is network jitter, congestion in duration, easily cause in communication accident It is disconnected, intelligent terminal detection in real time and the connection status of central server, when connection status is disconnects and/or connects overtime, hair Send link order to be connected to be re-established with central server, pass through weight when passing through broken string and when connection status is " seemingly-dead " Even, it ensure that the High Availabitity connected in real time.
The embodiment of second aspect of the present invention, propose a kind of for the novel maintenance of intelligent terminal and the system of Dynamical Deployment 300, Fig. 3 show one embodiment of the present of invention for the novel maintenance of intelligent terminal and the system 300 of Dynamical Deployment Schematic block diagram:
Link block 302, for based on default agreement to central server send link order with central server Connection is established, produces control communication port and service communication port;
First execution module 304, for receiving the control instruction of central server transmission by controlling communication port, and hold Row control instruction is to carry out novel maintenance operation;
Second execution module 306, the plug-in services for being sent by communication for service channel reception central server instruct, And plug-in services instruction is performed to carry out the Dynamical Deployment operation to plug-in unit;
3rd execution module 308, for recording the operation information of novel maintenance operation to generate basic daily record, record to inserting The operation information of the Dynamical Deployment operation of part records basic operation information to generate system journal, and incite somebody to action to generate business diary Basic daily record, business diary, system journal are uploaded to central server;
4th execution module 310, for receiving the acquisition instructions of central server transmission, collection run-time environment ginseng Number, and run-time environment parameter is sent to central server, so that central server collects running environment parameter;
Reconnection module 312, for detect in real time with the connection status of central server, connection status to disconnect and/or When connecting overtime, send link order and be connected with being re-established with central server.
The novel maintenance of intelligent terminal and the system 300 of Dynamical Deployment that the present embodiment provides, for intelligent terminal, connection Module 302 is based on default agreement and sends link order to central server, and central server is after link order is received, with intelligence Energy terminal establishes long connection, firewall-penetrating, establishes and controls communication port and service two kinds of passages of communication port so that plug-in unit takes Business is isolated with the control of intelligent terminal, and both are independent of each other, and realize reliable bidirectional real-time;Intelligent terminal passes through control Communication port receives the control instruction that central server is sent, and the first execution module 304 services according to control instruction implementation center Its novel maintenance is operated, so realizes novel maintenance operation;Second execution module 306 passes through communication for service channel reception The plug-in services instruction that central server is sent, central server are based on a variety of sides such as http services, ftp services, maven warehouses Formula management service plug-in unit, ensure terminal obtain service plug passage High Availabitity, and with control intelligent terminal command channel every From guarantee plug-in unit obtains to be independent of each other with terminal control, performs plug-in services order in intelligent terminal, realizes online dynamic state part Administration.
In this embodiment, the control instruction of intelligent terminal for reception includes instruction of restarting, terminal staging instruction, log collection Instruction, out code, condition monitoring instruction, Version Control, example statistics, the terminal of terminal of terminal are realized by control instruction Restart, the edition upgrading of terminal, the closing of terminal, daily record crawl, real-time status collection, Parameter analysis and early warning.Intelligence is eventually The service order that end receives includes service plug management instruction, terminating card management instructs, and realizes that service is inserted by service order The Version Control of part, provided using maven warehouses, ftp or http Server modes plug-in unit obtain service, terminating card deployment, Terminating card unloading, terminating card upgrading.
In this embodiment, in many cases, private network or provided with unidirectional fire wall, moreover, private network is to publicly-owned Network development IP and port easily cause safety problem, but preset protocol is the full duplex based on transmission control protocol TCP leads to Believe WebSocket agreements, the agreement makes intelligent terminal actively establish connection to central server, and keeps session, makes datagram Text can be transmitted with two-way equity, so as to the real-time connection of equity.
In this embodiment, the daily record that the 3rd execution module 308 of intelligent terminal is received and implementation center's server is sent Instruction is collected, log collection mode is divided into basic daily record, business diary, system journal.System journal record intelligent terminal starts And basic operation information;The execution information of basic log recording novel maintenance operation;Business diary records the execution of service plug Information.Daily record is cut using the date, and the daily record of the previous day is compressed upload after integral cutting.In this way, realize day Will is collected.
In this embodiment, when the shape that the 4th execution module 310 of intelligent terminal is received and implementation center's server is sent State monitoring instruction, using JNI (Java local interfaces) technology collection system run-time environment parameter information, according to system needs The real time status information of intelligent terminal is recorded, the collection of both information can be timed collection with sample clock generator, work as intelligence When terminal and good central server connection status, central server is directly uploaded to, connection status is bad, and persistence is existed It is local, until being uploaded during real-time good connection in batch, uploading speed is ensure that, avoids upload failure, it is final to realize Condition monitoring.
In this embodiment, under the conditions of due to public network, there is network jitter, congestion in duration, easily cause in communication accident It is disconnected, the detection in real time of reconnection module 312 of intelligent terminal and the connection status of central server, connection status to disconnect and/or When connecting overtime, send link order and be connected with being re-established with central server, when passing through broken string and when connection status is By reconnection when " seemingly-dead ", the High Availabitity connected in real time ensure that.
The embodiment of third aspect present invention, a kind of method for proposing novel maintenance and Dynamical Deployment for server, Fig. 4 show one embodiment of the present of invention for server novel maintenance and Dynamical Deployment method flow signal Figure:
Step 402, intelligent terminal is received to connect to establish with intelligent terminal based on the link order that default agreement is sent Control communication port and service communication port;
Step 404, by controlling communication port to send control instruction to intelligent terminal, so that intelligent terminal performs control and referred to Make to carry out novel maintenance operation;
Step 406, the plug-in services sent by communication for service passage are instructed to intelligent terminal, so that intelligent terminal performs Plug-in services instruction is operated with the Dynamical Deployment carried out to plug-in unit;
Step 408, send log collection to instruct to intelligent terminal, so that the operation of intelligent terminal record novel maintenance operation The operation information that information is to generate basic daily record, record operates to the Dynamical Deployment of plug-in unit is to generate business diary, record basis Operation information is to generate system journal;
Step 410, basic daily record, business diary, system journal that intelligent terminal is sent are received;
Step 412, send condition monitoring to instruct to intelligent terminal, so that intelligent terminal gathers run-time environment parameter And/or the real time status information of intelligent terminal;
Step 414, the run-time environment parameter of intelligent terminal transmission and/or the real-time status letter of intelligent terminal are received Breath.
The novel maintenance and the method for Dynamical Deployment that the present embodiment provides, for server, intelligent terminal is based on default Agreement sends link order to server, and server establishes long connection after link order is received, with intelligent terminal, penetrates fire prevention Wall, establish control communication port and service two kinds of passages of communication port so that plug-in services are isolated with the control of intelligent terminal, and two Person is independent of each other, and realizes reliable bidirectional real-time;Server by control communication port receive send control instruction, Intelligent terminal operates according to control instruction execute server to its novel maintenance, so realizes novel maintenance operation;Service The plug-in services that device is sent by communication for service passage instruct, and it is more that server is based on http services, ftp services, maven warehouses etc. Kind mode management service plug-in unit, ensure that terminal obtains the High Availabitity of service plug passage, and with controlling the order of intelligent terminal to lead to Road isolates, and ensures that plug-in unit obtains and is independent of each other with terminal control, intelligent terminal performs plug-in services order, realizes online dynamic Deployment.
In this embodiment, the control instruction that server is sent includes instruction of restarting, terminal staging instructs, log collection refers to Make, out code, condition monitoring instruction, the Version Control of terminal realized by control instruction, the example of terminal counts, terminal Restart, the edition upgrading of terminal, the closing of terminal, daily record crawl, real-time status collection, Parameter analysis and early warning.Service order Instructed including service plug management instruction, terminating card management, the Version Control of service plug is realized by service order, used Maven warehouses, ftp or http Server modes provide plug-in unit and obtain service, terminating card deployment, terminating card unloading, terminal Plug-in unit upgrades.
In this embodiment, in many cases, private network or provided with unidirectional fire wall, moreover, private network is to publicly-owned Network development IP and port easily cause safety problem, but preset protocol is the full duplex based on transmission control protocol TCP leads to Believe WebSocket agreements, the agreement makes intelligent terminal actively establish connection to central server, and keeps session, makes datagram Text can be transmitted with two-way equity, so as to the real-time connection of equity.
In this embodiment, server sends log collection instruction, intelligent terminal for reception and implementation center's server transmission Log collection instruction, log collection mode is divided into basic daily record, business diary, system journal.System journal record intelligence is eventually End starts and basic operation information;The execution information of basic log recording novel maintenance operation;Business diary records service plug Execution information.Daily record is cut using the date, and the daily record of the previous day is compressed upload after integral cutting.It is in this way, real Log collection is showed.
In this embodiment, server sends condition monitoring instruction, intelligent terminal for reception and implementation center's server transmission Condition monitoring instruction, using JNI (Java local interfaces) technology collection system run-time environment parameter information, according to system The real time status information of record intelligent terminal is needed, the collection of both information can be timed collection with sample clock generator, when When intelligent terminal and good server connection state, directly upload onto the server, connection status is bad, by persistence at this Ground, until being uploaded during real-time good connection in batch, uploading speed is ensure that, avoid upload failure, finally realize Condition monitoring.
The embodiment of fourth aspect present invention, propose it is a kind of for the novel maintenance of server and the system of Dynamical Deployment, Fig. 5 show one embodiment of the present of invention for server novel maintenance and Dynamical Deployment system schematic block diagram:
Link block 502, for receive intelligent terminal based on the link order that default agreement is sent with intelligent terminal Establish connection control communication port and service communication port;
Control module 504, for by control communication port send control instruction to intelligent terminal so that intelligent terminal is held Row control instruction is to carry out novel maintenance operation;
Deployment module 506, the plug-in services for being sent by communication for service passage are instructed to intelligent terminal, so that intelligence Terminal performs plug-in services instruction to carry out the Dynamical Deployment operation to plug-in unit;
Log collection module 508, instructed for sending log collection to intelligent terminal, so that the long-range fortune of intelligent terminal record Tie up the operation information of operation to generate basic daily record, operation information that record operates to the Dynamical Deployment of plug-in unit to be to generate business day Will, record basic operation information to generate system journal, be additionally operable to receive intelligent terminal send basic daily record, business diary, System journal;
Monitoring module 510, instructed for sending condition monitoring to intelligent terminal, so that intelligent terminal collection is transported in real time The real time status information of row ambient parameter and/or intelligent terminal, it is additionally operable to receive the run-time environment ginseng that intelligent terminal is sent The real time status information of number and/or intelligent terminal.
The novel maintenance and the system of Dynamical Deployment that the present embodiment provides, for server, intelligent terminal is based on default Agreement sends link order to server, and the link block 502 of server is established with intelligent terminal and grown after link order is received Connection, firewall-penetrating, establish control communication port and service two kinds of passages of communication port so that plug-in services and intelligent terminal Control isolation, both are independent of each other, and realize reliable bidirectional real-time;The control module 504 of server passes through control Communication port receives the control instruction sent, and intelligent terminal operates according to control instruction execute server to its novel maintenance, So realize novel maintenance operation;The plug-in services that the deployment module 506 of server is sent by communication for service passage instruct, Server is based on the various ways management service plug-in units such as http services, ftp services, maven warehouses, ensures that terminal obtains service and inserted The High Availabitity of part passage, and with controlling the command channel of intelligent terminal to isolate, ensure that plug-in unit obtains and be independent of each other with terminal control, Intelligent terminal performs plug-in services order, realizes online Dynamical Deployment.
In this embodiment, the control instruction that server is sent includes instruction of restarting, terminal staging instructs, log collection refers to Make, out code, condition monitoring instruction, the Version Control of terminal realized by control instruction, the example of terminal counts, terminal Restart, the edition upgrading of terminal, the closing of terminal, daily record crawl, real-time status collection, Parameter analysis and early warning.Service order Instructed including service plug management instruction, terminating card management, the Version Control of service plug is realized by service order, used Maven warehouses, ftp or http Server modes provide plug-in unit and obtain service, terminating card deployment, terminating card unloading, terminal Plug-in unit upgrades.
In this embodiment, in many cases, private network or provided with unidirectional fire wall, moreover, private network is to publicly-owned Network development IP and port easily cause safety problem, but preset protocol is the full duplex based on transmission control protocol TCP leads to Believe WebSocket agreements, the agreement makes intelligent terminal actively establish connection to central server, and keeps session, makes datagram Text can be transmitted with two-way equity, so as to the real-time connection of equity.
In this embodiment, the log collection module 508 of server sends log collection instruction, and intelligent terminal for reception is simultaneously held The log collection instruction that row central server is sent, log collection mode are divided into basic daily record, business diary, system journal.System Log recording intelligent terminal of uniting starts and basic operation information;The execution information of basic log recording novel maintenance operation;Business The execution information of Logging Service plug-in unit.Daily record is cut using the date, and the daily record of the previous day is carried out after integral cutting Compression uploads.In this way, realize log collection.
In this embodiment, the monitoring module 510 of server sends condition monitoring instruction, and intelligent terminal for reception is simultaneously held The condition monitoring instruction that row central server is sent, using JNI (Java local interfaces) technology collection system run-time environment Parameter information, needed to record the real time status information of intelligent terminal according to system, the collection of both information can be with sampling timing Device is timed collection, when intelligent terminal and server connection state are good, directly uploads onto the server, connection status is not It is good, by persistence in local, until ensure that uploading speed in batch upload during real-time good connection, avoiding upload Failure, finally realizes condition monitoring.
Illustrate the distribution service of a specific embodiment of the invention below with reference to Fig. 6 to Fig. 9.
As shown in fig. 6, the distribution service of the embodiment is mainly made up of two one's duties:A part is in cloud service The heart, a part is intelligent terminal.Wherein cloud service center, major responsibility have:(1) terminal O&M controls:Version Control, example system Count, restart, upgrade, close;(2) service plug management:Version Control, using maven warehouses, ftp or http Server modes Plug-in unit is provided and obtains service;(3) terminal-plug-in management:Plug-in unit deployment, plug-in unit unloading, plug-in unit upgrading.(4) SOT state of termination monitors: Daily record crawl, real-time status collection, Parameter analysis and early warning.The major responsibility of intelligent terminal has:(1) interface channel is established:Base Terminal control communications passage, communication for service passage are established in WebSocket agreements, it is ensured that O&M separates with service, ensures O&M Ability and the real-time High Availabitity of service ability;(2) plug-in component operation container:According to the control command of cloud service center, to service plug Carry out Dynamical Deployment, unloading, replacement.(3) system resource gathers:The systematic parameter of run-time environment is gathered, in cloud service The heart is collected.A set of achievable novel maintenance and Dynamical Deployment are complemented each other to form thus by intelligent terminal and cloud service center Plug-in type service system.
In many cases, private network or provided with unidirectional fire wall, moreover, private network develops IP and end to global network Mouth easily causes safety problem.Therefore, the present invention is based on WebSocket agreements, intelligent terminal is actively built to cloud service center Vertical connection, and session is kept, data message is transmitted with two-way equity, so as to the real-time connection of equity.Due to public network condition Under, there is network jitter, congestion in duration, easily cause communication accidental interruption, therefore, the height that the embodiment connects in real time for guarantee It can use, devise the double shield mechanism that broken string as shown in Figure 7 carrys out and connected health status detection again, when connection abnormal interrupt When disconnection reconnecting device can re-establish connection automatically;In addition, it is provided with connection health detector regular check intelligent terminal and clothes The connection status of business device, prevents torpor, seemingly-dead when connecting, and during not actuated disconnection reconnecting, connects health detector It can re-establish and be connected with the WebSocket of cloud service center.
Based on above-mentioned connection in real time, intelligent terminal can obtain terminal staging bag in time, and modification terminal configuration, Fig. 8 show The schematic flow sheet of the distribution service remote upgrade is gone out:
Step 802, terminal receives the upgrade command from cloud service center, uploads current version information;
Step 804, cloud service center contrast terminal versions, judge whether to perform upgrading, are then to enter step 806, otherwise Terminate;
Step 806, cloud service center sends AKU to terminal;
Step 808, terminal receives AKU and judges terminal operating environment system type;
Step 810, terminal selects to perform corresponding script according to system type;
Step 812, script is closed a terminal, and script decompression AKU, script is restarted terminal and exited;
Step 814, terminal uploads latest version information again after starting;
Step 816, cloud service center runs succeeded after confirming version information.
Pass through above-mentioned steps, it is ensured that the success of the distribution service remote upgrade.
The distribution service can realize Service Dynamic Deployment, so that service plug upgrades as an example, can be divided into three parts: Obtain redaction service plug;Unload early version service plug;Dispose redaction service plug.Distributed clothes as shown in Figure 9 The principle schematic of business system service plug-in unit upgrading, the distribution service are optimization performance, and intelligent gateway will use a variety of Mode obtains service plug, and acquisition modes and priority are as follows:Maven configurations are checked, it is then preferential to there are the private clothes of maven in configuration Obtained from the private clothes of maven, obtain failure and then obtained to next priority;FTP configurations are checked, privately owned FTP in configuration be present and match somebody with somebody Put, preferentially obtained from privately owned FTP, obtain failure and then obtained to next priority;Serviced to cloud service center and obtained by Http Take service plug.Unloading and deployment for service plug, its principle is as follows, and the present embodiment is realized using JAVA:During deployment, copy The classloader of shellfish main thread, using the classloader instantiating services plug-in units of copy, and record plug-in unit example with Classloader corresponding relations;During unloading, searched out according to the corresponding relation of plug-in unit example and classloader Classloader, plug-in unit example is destroyed, unload the resource of classloader loadings, discharge the classloader and complete Unloading.In this way, based on various ways management service plug-in units such as http services, ftp services, maven warehouses, ensure that terminal obtains clothes Be engaged in the High Availabitity of plug-in unit passage, and isolate with the command channel of cloud service center control intelligent terminal, ensure plug-in unit obtain with it is whole End control is independent of each other.
The embodiment of fifth aspect present invention, proposes a kind of computer equipment, and Figure 10 shows the implementation of the present invention The schematic block diagram of the computer equipment 1000 of example.Wherein, the computer equipment 1000 includes:
Memory 1002, processor 1004 and it is stored in the calculating that can be run on memory 1002 and on processor 1004 Machine program, processor 1004 are realized such as the long-range fortune for intelligent terminal in above-mentioned any embodiment when performing computer program The novel maintenance and Dynamical Deployment for server in the step of method of peacekeeping Dynamical Deployment or such as above-mentioned any embodiment Method the step of.
The computer equipment 1000 that the present embodiment provides, including memory 1002, processor 1004 and it is stored in memory On 1004 and the computer program that can be run on processor 1004, processor 1004 are realized as described above when performing computer program In any embodiment for intelligent terminal novel maintenance and Dynamical Deployment method the step of or such as above-mentioned any embodiment In for server novel maintenance and Dynamical Deployment method the step of, therefore with this be used for intelligent terminal long-range fortune The method of peacekeeping Dynamical Deployment or novel maintenance and whole beneficial effects of the method for Dynamical Deployment for server, herein not Repeat again.
The embodiment of sixth aspect present invention, there is provided a kind of computer-readable recording medium, be stored thereon with computer Program, realize when computer program is executed by processor as the novel maintenance in above-mentioned any embodiment for intelligent terminal with The step of method of Dynamical Deployment or as in above-mentioned any embodiment for the novel maintenance of server and the side of Dynamical Deployment The step of method.
The computer-readable recording medium that the present embodiment provides, is stored thereon with computer program, computer program is located Manage realize when device performs as in above-mentioned any embodiment for intelligent terminal novel maintenance and Dynamical Deployment method step It is rapid or such as the step of the method for the novel maintenance for being used for server in above-mentioned any embodiment and Dynamical Deployment, therefore with this Novel maintenance and the method for Dynamical Deployment for the novel maintenance of intelligent terminal and the method for Dynamical Deployment or for server Whole beneficial effects, will not be repeated here.
In the description of this specification, the description of term " one embodiment ", " some embodiments ", " specific embodiment " etc. Mean to combine at least one reality that specific features, structure, material or the feature that the embodiment or example describe are contained in the present invention Apply in example or example.In this manual, identical embodiment or reality are not necessarily referring to the schematic representation of above-mentioned term Example.Moreover, description specific features, structure, material or feature can in any one or more embodiments or example with Suitable mode combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (20)

1. a kind of method of novel maintenance and Dynamical Deployment, for intelligent terminal, it is characterised in that methods described includes:
Link order is sent to central server to connect to establish with the central server, it is logical to produce control based on preset protocol Believe passage and service communication port;
The control instruction of the central server transmission is received by the control communication port, and performs the control and refers to Make to carry out novel maintenance operation;And
The plug-in services sent by central server described in the communication for service channel reception instruct, and perform the plug-in unit clothes Business instruction is operated with the Dynamical Deployment carried out to plug-in unit.
2. the method for novel maintenance according to claim 1 and Dynamical Deployment, it is characterised in that
The control instruction comprises at least:Instruction of restarting, terminal staging instruction, log collection instruction, out code, condition monitoring Instruction;
The service order comprises at least:Service plug management instruction, terminating card management instruction.
3. the method for novel maintenance according to claim 1 and Dynamical Deployment, it is characterised in that
The preset protocol is the full-duplex communication WebSocket agreements based on transmission control protocol TCP.
4. the method for novel maintenance according to claim 2 and Dynamical Deployment, it is characterised in that perform the control instruction After carrying out novel maintenance operation and perform the plug-in services instruction to carry out the Dynamical Deployment operation to plug-in unit, also wrap Include:
Receive the log collection instruction that the central server is sent, record the operation information of the novel maintenance operation with Basic daily record is generated, the operation information operated to the Dynamical Deployment of the plug-in unit is recorded to generate business diary, records base The basic daily record, the business diary, the system journal are uploaded to described by plinth operation information with generating system journal Central server.
5. the method for novel maintenance according to claim 2 and Dynamical Deployment, it is characterised in that also include:
The condition monitoring instruction that the central server is sent is received, gathers run-time environment parameter and/or the intelligence The real time status information of energy terminal, and the run-time environment parameter and/or the real time status information are sent to described Central server, so that the central server carries out condition monitoring.
6. the method for novel maintenance according to any one of claim 1 to 5 and Dynamical Deployment, it is characterised in that also wrap Include:
Detection in real time and the connection status of the central server, when the connection status is disconnects and/or connects overtime, hair The link order is sent to be connected to be re-established with the central server.
7. the system of a kind of novel maintenance and Dynamical Deployment, for intelligent terminal, it is characterised in that the system includes:
Link block, connected for sending link order to central server based on preset protocol with being established with the central server Connect, produce control communication port and service communication port;
First execution module, for receiving the control instruction of the central server transmission by the control communication port, and The control instruction is performed to carry out novel maintenance operation;And
Second execution module, the plug-in services for being sent by central server described in the communication for service channel reception refer to Order, and the plug-in services instruction is performed to carry out the Dynamical Deployment operation to plug-in unit.
8. the system of novel maintenance according to claim 7 and Dynamical Deployment, it is characterised in that
The control instruction comprises at least:Instruction of restarting, terminal staging instruction, log collection instruction, out code, condition monitoring Instruction;
The service order comprises at least:Service plug management instruction, terminating card management instruction.
9. the system of novel maintenance according to claim 7 and Dynamical Deployment, it is characterised in that
The preset protocol is the full-duplex communication WebSocket agreements based on transmission control protocol TCP.
10. the system of novel maintenance according to claim 8 and Dynamical Deployment, it is characterised in that also include:
3rd execution module, the operation information for recording the novel maintenance operation are recorded to described with generating basic daily record The operation information of the Dynamical Deployment operation of plug-in unit records basic operation information to generate system day to generate business diary Will, and the basic daily record, the business diary, the system journal are uploaded to the central server.
11. according to novel maintenance and the system of Dynamical Deployment described in claim 8, it is characterised in that also include:
4th execution module, the condition monitoring instruction sent for receiving the central server, gathers real time execution ring The real time status information of border parameter and/or the intelligent terminal, and by the run-time environment parameter and/or the real-time shape State information is sent to the central server, so that the central server carries out condition monitoring.
12. the system of the novel maintenance and Dynamical Deployment according to any one of claim 7 to 11, it is characterised in that also Including:
Reconnection module, for detect in real time with the connection status of the central server, the connection status to disconnect and/or When connecting overtime, send the link order and be connected with being re-established with the central server.
13. a kind of method of novel maintenance and Dynamical Deployment, for server, it is characterised in that methods described includes:
Receive intelligent terminal based on the link order that preset protocol is sent with intelligent terminal establish connection control communication port and Communication for service passage;
Control instruction is sent to the intelligent terminal by the control communication port, so that the intelligent terminal performs the control System is instructed to carry out novel maintenance operation;And
The plug-in services sent by the communication for service passage are instructed to the intelligent terminal, so that the intelligent terminal performs The plug-in services instruction is operated with the Dynamical Deployment carried out to plug-in unit.
14. the method for novel maintenance according to claim 13 and Dynamical Deployment, it is characterised in that passing through the control Communication port send control instruction to the intelligent terminal and by the communication for service passage send plug-in services instruct to After the intelligent terminal, in addition to:
Send log collection to instruct to the intelligent terminal, so that the intelligent terminal records the operation of the novel maintenance operation The operation information that information is to generate basic daily record, record operates to the Dynamical Deployment of the plug-in unit with generate business diary, Basic operation information is recorded to generate system journal;
Receive the basic daily record, the business diary, the system journal that the intelligent terminal is sent.
15. the method for the novel maintenance and Dynamical Deployment according to claim 13 or 14, it is characterised in that also include:
Send condition monitoring instruct to the intelligent terminal so that the intelligent terminal collection run-time environment parameter and/or The real time status information of the intelligent terminal;
Receive the run-time environment parameter and/or the real time status information that the intelligent terminal is sent.
16. the system of a kind of novel maintenance and Dynamical Deployment, for server, it is characterised in that the system includes:
Link block, controlled for receiving intelligent terminal based on the link order that preset protocol is sent with establishing connection with intelligent terminal Communication port processed and service communication port;
Control module, for sending control instruction to the intelligent terminal by the control communication port, so that the intelligence Terminal performs the control instruction to carry out novel maintenance operation;And
Deployment module, the plug-in services for being sent by the communication for service passage are instructed to the intelligent terminal, so that institute State intelligent terminal and perform the plug-in services instruction to carry out the Dynamical Deployment operation to plug-in unit.
17. the system of novel maintenance according to claim 16 and Dynamical Deployment, it is characterised in that also include:
Log collection module, instructed for sending log collection to the intelligent terminal, so that described in intelligent terminal record The operation information that the operation information of novel maintenance operation is to generate basic daily record, record operates to the Dynamical Deployment of plug-in unit is to generate Business diary, basic operation information is recorded to generate system journal;
The log collection module, it is additionally operable to receive the basic daily record, the business diary, institute of the intelligent terminal transmission State system journal.
18. the system of the novel maintenance and Dynamical Deployment according to claim 16 or 17, it is characterised in that also include:
Monitoring module, instructed for sending condition monitoring to the intelligent terminal, so that intelligent terminal collection is real-time The real time status information of running environment parameter and/or the intelligent terminal;
The monitoring module, it is additionally operable to receive the run-time environment parameter and/or the institute that the intelligent terminal is sent State real time status information.
19. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, it is characterised in that realize such as claim 1 to 7 described in the computing device during computer program Any one of the method for novel maintenance and Dynamical Deployment the step of or as any one of claim 13 to 15 it is long-range The step of method of O&M and Dynamical Deployment.
20. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program When being executed by processor realize as any one of claim 1 to 7 the step of the method for novel maintenance and Dynamical Deployment or As any one of claim 13 to 15 the step of the method for novel maintenance and Dynamical Deployment.
CN201710930166.7A 2017-10-09 2017-10-09 The method and system of novel maintenance and Dynamical Deployment Pending CN107689894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710930166.7A CN107689894A (en) 2017-10-09 2017-10-09 The method and system of novel maintenance and Dynamical Deployment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710930166.7A CN107689894A (en) 2017-10-09 2017-10-09 The method and system of novel maintenance and Dynamical Deployment

Publications (1)

Publication Number Publication Date
CN107689894A true CN107689894A (en) 2018-02-13

Family

ID=61154256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710930166.7A Pending CN107689894A (en) 2017-10-09 2017-10-09 The method and system of novel maintenance and Dynamical Deployment

Country Status (1)

Country Link
CN (1) CN107689894A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213320A (en) * 2019-01-02 2019-09-06 腾讯科技(深圳)有限公司 Method, apparatus, electronic equipment and the computer readable storage medium of communication connection
CN110278092A (en) * 2018-03-13 2019-09-24 成都市共维科技有限公司 Router long-range control method and system based on MQTT agreement
CN110413308A (en) * 2019-07-30 2019-11-05 深圳前海微众银行股份有限公司 Software O&M method, apparatus, equipment and computer storage medium
CN110581868A (en) * 2018-06-07 2019-12-17 北京怡合春天科技有限公司 Intelligent terminal governance scheme
CN111176959A (en) * 2019-12-30 2020-05-19 中国建设银行股份有限公司 Early warning method, system and storage medium for cross-domain application server
CN111181749A (en) * 2018-11-09 2020-05-19 阿里巴巴集团控股有限公司 Operation and maintenance method and device for equipment in local area network and electronic equipment
CN111193758A (en) * 2018-11-15 2020-05-22 西安诺瓦星云科技股份有限公司 Display management system and maintenance method thereof
CN111581256A (en) * 2020-05-08 2020-08-25 南方电网科学研究院有限责任公司 Interaction method and system for application program of intelligent measurement terminal
CN111966381A (en) * 2020-08-24 2020-11-20 宝牧科技(天津)有限公司 Light business terminal health detection system and method
CN112085229A (en) * 2020-09-09 2020-12-15 北京华胜天成科技股份有限公司 Operation and maintenance method and device, computer equipment and storage medium
CN112269646A (en) * 2020-10-26 2021-01-26 常州微亿智造科技有限公司 Remote operation control system and method for automatic operation and maintenance task deployment
CN113759394A (en) * 2021-07-26 2021-12-07 广州南方卫星导航仪器有限公司 GNSS receiver remote maintenance system, method and storage medium
CN115334151A (en) * 2022-08-16 2022-11-11 钛信(上海)信息科技有限公司 Cross-regional network remote host access method and system
CN116032991A (en) * 2022-12-27 2023-04-28 中国联合网络通信集团有限公司 Equipment control method, device, server and storage medium
CN116055227A (en) * 2023-03-31 2023-05-02 北京国信会视科技有限公司 Intelligent terminal management and control method, system and device based on android device online security

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391747A (en) * 2014-09-03 2016-03-09 苏州派尔网络科技有限公司 Cloud intelligent equipment management method
CN105791005A (en) * 2016-02-25 2016-07-20 深圳市共进电子股份有限公司 Transmission control protocol (TCP) connection based method and apparatus for implementing remote operation and maintenance management
CN106161130A (en) * 2015-04-14 2016-11-23 阿里巴巴集团控股有限公司 The performance monitoring device of sing on web Socket agreement, system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391747A (en) * 2014-09-03 2016-03-09 苏州派尔网络科技有限公司 Cloud intelligent equipment management method
CN106161130A (en) * 2015-04-14 2016-11-23 阿里巴巴集团控股有限公司 The performance monitoring device of sing on web Socket agreement, system and method
CN105791005A (en) * 2016-02-25 2016-07-20 深圳市共进电子股份有限公司 Transmission control protocol (TCP) connection based method and apparatus for implementing remote operation and maintenance management

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278092A (en) * 2018-03-13 2019-09-24 成都市共维科技有限公司 Router long-range control method and system based on MQTT agreement
CN110581868A (en) * 2018-06-07 2019-12-17 北京怡合春天科技有限公司 Intelligent terminal governance scheme
CN111181749A (en) * 2018-11-09 2020-05-19 阿里巴巴集团控股有限公司 Operation and maintenance method and device for equipment in local area network and electronic equipment
CN111193758A (en) * 2018-11-15 2020-05-22 西安诺瓦星云科技股份有限公司 Display management system and maintenance method thereof
CN110213320A (en) * 2019-01-02 2019-09-06 腾讯科技(深圳)有限公司 Method, apparatus, electronic equipment and the computer readable storage medium of communication connection
CN110213320B (en) * 2019-01-02 2021-11-02 腾讯科技(深圳)有限公司 Communication connection method and device, electronic equipment and computer readable storage medium
CN110413308A (en) * 2019-07-30 2019-11-05 深圳前海微众银行股份有限公司 Software O&M method, apparatus, equipment and computer storage medium
CN110413308B (en) * 2019-07-30 2023-06-09 深圳前海微众银行股份有限公司 Software operation and maintenance method, device, equipment and computer storage medium
CN111176959A (en) * 2019-12-30 2020-05-19 中国建设银行股份有限公司 Early warning method, system and storage medium for cross-domain application server
CN111176959B (en) * 2019-12-30 2023-11-14 中国建设银行股份有限公司 Early warning method, system and storage medium of cross-domain application server
CN111581256A (en) * 2020-05-08 2020-08-25 南方电网科学研究院有限责任公司 Interaction method and system for application program of intelligent measurement terminal
CN111581256B (en) * 2020-05-08 2023-08-04 南方电网科学研究院有限责任公司 Interaction method and system for intelligent measurement terminal application program
CN111966381A (en) * 2020-08-24 2020-11-20 宝牧科技(天津)有限公司 Light business terminal health detection system and method
CN112085229A (en) * 2020-09-09 2020-12-15 北京华胜天成科技股份有限公司 Operation and maintenance method and device, computer equipment and storage medium
CN112085229B (en) * 2020-09-09 2024-04-02 北京华胜天成科技股份有限公司 Operation and maintenance method, device, computer equipment and storage medium
CN112269646A (en) * 2020-10-26 2021-01-26 常州微亿智造科技有限公司 Remote operation control system and method for automatic operation and maintenance task deployment
CN113759394A (en) * 2021-07-26 2021-12-07 广州南方卫星导航仪器有限公司 GNSS receiver remote maintenance system, method and storage medium
CN115334151A (en) * 2022-08-16 2022-11-11 钛信(上海)信息科技有限公司 Cross-regional network remote host access method and system
CN115334151B (en) * 2022-08-16 2024-05-10 钛信(上海)信息科技有限公司 Cross-regional network remote host access method and system
CN116032991A (en) * 2022-12-27 2023-04-28 中国联合网络通信集团有限公司 Equipment control method, device, server and storage medium
CN116055227A (en) * 2023-03-31 2023-05-02 北京国信会视科技有限公司 Intelligent terminal management and control method, system and device based on android device online security

Similar Documents

Publication Publication Date Title
CN107689894A (en) The method and system of novel maintenance and Dynamical Deployment
CN102480749B (en) Method, device and system for remotely collecting host process information
CN102752131B (en) Task-driven based power telecommunication network data acquisition method
CN108965256A (en) A kind of system and method remotely managing embedded device based on SSH reverse tunnel
CN108712301A (en) A kind of adjustment method and debugging system of terminal device
CN113630372A (en) Cloud edge coordination system for edge computing
CN105138398B (en) SOCKET communication and management of process general-purpose platform and method under synchronous communication mode
CN106412639A (en) Smart television remote debugging method and smart television remote debugging system
CN1983969A (en) System and realization for re-directing interface network
CN103778049A (en) Embedded system development log system
CN108984466A (en) The exchange method of BMC and server OS, system
CN103138985B (en) A kind of supporting network business host processes control method and system
CN102270168A (en) Method for automatically detecting serial port information
US7424525B2 (en) Managing headless computer systems
CN111953542B (en) System for guaranteeing stable operation of gateway
CN115515169A (en) Data forwarding method of industrial data acquisition gateway
CN106843963A (en) The device and method of automatic deployment JAVA application programs in K UX operating systems
JP2007288579A (en) Base station log collection apparatus, collection method of log of base station, and computer program
CN102316116B (en) System for supporting multiple platform network communication processing and method thereof
CN114328353B (en) WEB interactive serial port communication architecture
CN114691364A (en) Future community digital twin engine flexible deployment system
CN114803749B (en) Elevator car display screen resource offline updating system based on UDP protocol and FTP transmission
CN210807315U (en) Gateway applied to monitoring system
CN106982211A (en) The method and device of information of mobile terminal is extracted in net
CN100403688C (en) Business data packet tracing realizing method

Legal Events

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

Application publication date: 20180213