CN104615493A - Cross-platform server-side mode recognition tool and method - Google Patents
Cross-platform server-side mode recognition tool and method Download PDFInfo
- Publication number
- CN104615493A CN104615493A CN201510017819.3A CN201510017819A CN104615493A CN 104615493 A CN104615493 A CN 104615493A CN 201510017819 A CN201510017819 A CN 201510017819A CN 104615493 A CN104615493 A CN 104615493A
- Authority
- CN
- China
- Prior art keywords
- module
- server mode
- mode identification
- operating system
- basic
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 20
- 230000002452 interceptive effect Effects 0.000 claims description 46
- 238000004891 communication Methods 0.000 claims description 24
- 238000012360 testing method Methods 0.000 claims description 6
- 230000006870 function Effects 0.000 claims description 4
- 238000003909 pattern recognition Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 claims description 3
- 230000005012 migration Effects 0.000 abstract description 12
- 238000013508 migration Methods 0.000 abstract description 9
- 230000003993 interaction Effects 0.000 abstract 1
- 230000008859 change Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000004807 localization Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a cross-platform server-side mode recognition tool and a method, which comprises the following modules: a base module; an interaction module; an operating system identification module; and a server-side mode identification module. Compared with the prior art, the cross-platform server-side mode recognition tool and the cross-platform server-side mode recognition method can be operated on various server platforms without secondary compiling, recognize the side modes of the server platforms, output graphical interface results or character interface results, can be operated on various servers and operating system platforms, recognize the side modes of the platforms, CPU and operating system information, display the side modes, the CPU and the operating system information through different interfaces according to the current operating environment, provide guidance for cross-platform migration of application programs, and improve the efficiency of migration work of the application programs.
Description
Technical field
The present invention relates to computer information technology field, specifically a kind of practical, cross-platform Server Mode identification facility and method.
Background technology
Along with the high speed development of domestic information technology and the change of international IT market general layout, China's Information System configuration is faced with huge change.On the one hand, hardware research and development ability domestic over nearly 10 years is in chip-scale, plate level and system-levelly all have significant progress, Software for Design ability has in operating system, basic software and application software and develops fast, under the overall situation of national security, increasing infosystem is tended to use from major product; On the other hand, performance and the stability of X86 system are more and more higher, and IBM has opened POWER architecture under the major premise of the minicomputer market shrink, and ARM also has a mind to march generic server market simultaneously, makes the diversification more of information technoloy equipment market.Therefore within following long period of time, domestic IT system construction is faced with the change of production domesticization and diversification, being embodied in is increasing cross-platform migration work at concrete Information System configuration and practice level, comprises database cross platform migration and the cross-platform migration of application program.
For the cross-platform migration of application program, especially based on the migration of C, C++, Fortran program, one very real and frequently problem be that end pattern is inconsistent, namely the source platform of program to be moved is not identical with the end pattern of target platform.End pattern is inconsistent can not cause the application program after moving to run, but operation result mistake can be caused, and its operation result mistake caused does not have singularity, greatly increases the complexity of localization of fault, and then greatly reduce the efficiency of application program migration work.Based on this, the invention provides a kind of cross-platform Server Mode identification facility and method, various server and operating system platform can be run on, identify the end pattern (Endian) of this platform and CPU and operation system information, for the cross-platform migration of application program provides guidance, thus improve the efficiency of application program migration work.
Summary of the invention
Technical assignment of the present invention is for above weak point, provides a kind of practical, cross-platform Server Mode identification facility and method.
A cross-platform Server Mode identification facility, its concrete structure comprises basic module, interactive module, operating system identification module, Server Mode identification module, wherein:
Basic module is as the basic framework of interactive module, operating system identification module, Server Mode identification module, cross-platform operation function is provided, this basic module is connected with interactive module communication port, operating system identification module communication port, Server Mode identification module communication port respectively by three communication port, and is called described interactive module, operating system identification module, Server Mode identification module by self communication port;
Server Mode identification module comprises recognin module and communicator module two parts, and communicator module is developed based on JAVA language, connects basic module communication, and calls recognin module; Recognin module is developed based on C language, for the set of binary file compiled under different operating system, the operation system information that communicator module is sent by basic module, calls binary file corresponding in recognin module, realizes cross-platform Server Mode identification.
Described basic module calls interactive module and operating system identification module after loading; After receiving the recognition result of operating system identification module, result is sent to interactive module and Server Mode identification module; After receiving the recognition result of Server Mode identification module, result is sent to interactive module.
Described interactive module is developed based on JAVA language, and after receiving basic module call request, detect current operating environment, this running environment comprises character, figure; Corresponding display interface is called according to running environment testing result; Show the CPU information, operation system information and the Server Mode information that are pushed by the basic module of self communication port accepts.
Described operating system identification module is developed based on JAVA language, after receiving basic module call request; Identify current C PU information and identifying operation system information, the CPU information recognized, operation system information are sent to basic module.
The communicator module of described Server Mode identification module after receiving the operating system recognition result that basic module sends, according to binary file corresponding in the recognin module of call by result Server Mode identification module; Binary file corresponding in recognin module completes Server Mode identification, and recognition result is fed back to the communicator module of Server Mode identification module; Server Mode recognition result is sent to basic module by communicator module.
Based on a Server Mode recognition methods for above-mentioned instrument, its specific implementation process is:
First basic module is loaded;
Basic module calls interactive module, operating system identification module and Server Mode identification module;
Interactive module detects current operating environment, and this running environment comprises character, figure;
Interactive module calls corresponding display interface according to running environment testing result, and this display interface comprises character, figure;
Operating system identification module identification current C PU information and operation system information, this CPU information comprises CPU brand, model, dominant frequency, check figure, Thread Count; Operation system information comprises OS Type, brand, operating system version, kernel version;
The CPU information recognized, operation system information are sent to basic module by operating system identification module;
The CPU information that operating system identification module recognizes by basic module, operation system information are sent to the communicator module of interactive module and Server Mode identification module;
Interactive module display CPU and operation system information;
After the communicator module of Server Mode identification module receives the operating system recognition result that basic module sends, according to binary file corresponding in the recognin module of call by result Server Mode identification module;
Binary file corresponding in the recognin module of Server Mode identification module completes Server Mode identification, recognition result is fed back to the communicator module of Server Mode identification module;
Server Mode recognition result is sent to basic module by the communicator module of Server Mode identification module;
Server Mode recognition result is sent to interactive module by basic module;
Interactive module display server end pattern recognition result.
A kind of cross-platform Server Mode identification facility of the present invention and method, have the following advantages:
A kind of cross-platform Server Mode identification facility of this invention and method can run on various server and operating system platform, identify the end pattern (Endian) of this platform and CPU and operation system information, for the cross-platform migration of application program provides guidance, reduce the complicacy of localization of fault, improve the efficiency of application program migration work, its cross-platform characteristic has filled up domestic blank, practical, is easy to promote.
Accompanying drawing explanation
Accompanying drawing 1 is Server Mode identification facility software architecture figure of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
The present invention proposes a kind of cross-platform Server Mode identification facility and method, without secondary compilation run in many services applicator platform, can identify the end pattern of this server platform, and output pattern interface result or textual interface result.
As shown in Figure 1, its concrete structure comprises basic module, interactive module, operating system identification module, Server Mode identification module, wherein:
Described basic module is developed based on JAVA language completely, as described interactive module, operating system identification module, the basic framework of Server Mode identification module, cross-platform operation function is provided, basic module first communication port is connected with interactive module communication port, basic module second communication port is connected with operating system identification module communication port, basic module third communication port is connected with Server Mode identification module communication port, described basic module is by self communication port and described interactive module, operating system identification module, Server Mode identification module communicates, described basic module passes through self communication port to described interactive module, operating system identification module, Server Mode identification module calls.
Described basic module working method is as follows:
1), first described a kind of cross-platform Server Mode identification facility loads basic module after starting;
2), basic module calls interactive module and operating system identification module immediately after having loaded;
3), after basic module receives the recognition result of operating system identification module, result is sent to interactive module and Server Mode identification module;
4), after basic module receives the recognition result of Server Mode identification module, result is sent to interactive module.
Described interactive module is completely based on JAVA language exploitation, and working method is as follows:
1) basic module call request, is received;
2), detect current operating environment, this running environment comprises character, figure;
3), according to running environment testing result call corresponding display interface, this display interface comprises character, figure;
4) the CPU information, operation system information and the Server Mode information that are pushed by the basic module of self communication port accepts, is shown.
Described operating system identification module is completely based on JAVA language exploitation, and working method is as follows:
1) basic module call request, is received;
2), identify current C PU information, include but not limited to brand, model, dominant frequency, check figure, Thread Count etc.;
3), identifying operation system information, include but not limited to type, brand, operating system version, kernel version etc.;
4), the CPU information recognized, operation system information are sent to basic module.
Described Server Mode identification module, based on JAVA and C language mixed developing, comprises two submodules, is respectively communicator module and recognin module.
Described communicator module is developed based on JAVA, realizes following function: connect above-mentioned basic module communication; Call described recognin module.
Described recognin module is developed based on C language, it is the set of the binary file compiled under different operating system, the operation system information that described communicator module sends according to basic module, calls binary file corresponding in recognin module, realizes cross-platform Server Mode identification.
Described Server Mode identification module working method is as follows:
1), after the communicator module of Server Mode identification module receives the operating system recognition result that basic module sends, according to binary file corresponding in the recognin module of call by result Server Mode identification module;
2) binary file corresponding in the recognin module of, Server Mode identification module completes the communicator module that recognition result is fed back to Server Mode identification module by Server Mode identification;
3), Server Mode recognition result is sent to basic module by the communicator module of Server Mode identification module.
Based on a Server Mode recognition methods for above-mentioned instrument, its specific implementation process is:
First basic module is loaded;
Basic module calls interactive module, operating system identification module and Server Mode identification module;
Interactive module detects current operating environment, and this running environment comprises character, figure;
Interactive module calls corresponding display interface according to running environment testing result, and this display interface comprises character, figure;
Operating system identification module identification current C PU information and operation system information, this CPU information comprises CPU brand, model, dominant frequency, check figure, Thread Count; Operation system information comprises OS Type, brand, operating system version, kernel version;
The CPU information recognized, operation system information are sent to basic module by operating system identification module;
The CPU information that operating system identification module recognizes by basic module, operation system information are sent to the communicator module of interactive module and Server Mode identification module;
Interactive module display CPU and operation system information;
After the communicator module of Server Mode identification module receives the operating system recognition result that basic module sends, according to binary file corresponding in the recognin module of call by result Server Mode identification module;
Binary file corresponding in the recognin module of Server Mode identification module completes Server Mode identification, recognition result is fed back to the communicator module of Server Mode identification module;
Server Mode recognition result is sent to basic module by the communicator module of Server Mode identification module;
Server Mode recognition result is sent to interactive module by basic module;
Interactive module display server end pattern recognition result.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; claims of any a kind of cross-platform Server Mode identification facility according to the invention and the those of ordinary skill of any described technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.
Claims (6)
1. a cross-platform Server Mode identification facility, is characterized in that, its concrete structure comprises basic module, interactive module, operating system identification module, Server Mode identification module, wherein:
Basic module is as the basic framework of interactive module, operating system identification module, Server Mode identification module, cross-platform operation function is provided, this basic module is connected with interactive module communication port, operating system identification module communication port, Server Mode identification module communication port respectively by three communication port, and is called described interactive module, operating system identification module, Server Mode identification module by self communication port;
Server Mode identification module comprises recognin module and communicator module two parts, and communicator module is developed based on JAVA language, connects basic module communication, and calls recognin module; Recognin module is developed based on C language, for the set of binary file compiled under different operating system, the operation system information that communicator module is sent by basic module, calls binary file corresponding in recognin module, realizes cross-platform Server Mode identification.
2. a kind of cross-platform Server Mode identification facility according to claim 1, it is characterized in that, described basic module calls interactive module and operating system identification module after loading; After receiving the recognition result of operating system identification module, result is sent to interactive module and Server Mode identification module; After receiving the recognition result of Server Mode identification module, result is sent to interactive module.
3. a kind of cross-platform Server Mode identification facility according to claim 1, it is characterized in that, described interactive module is developed based on JAVA language, after receiving basic module call request, detect current operating environment, this running environment comprises character, figure; Corresponding display interface is called according to running environment testing result; Show the CPU information, operation system information and the Server Mode information that are pushed by the basic module of self communication port accepts.
4. a kind of cross-platform Server Mode identification facility according to claim 1, it is characterized in that, described operating system identification module is developed based on JAVA language, after receiving basic module call request; Identify current C PU information and identifying operation system information, the CPU information recognized, operation system information are sent to basic module.
5. a kind of cross-platform Server Mode identification facility according to claim 1, it is characterized in that, the communicator module of described Server Mode identification module after receiving the operating system recognition result that basic module sends, according to binary file corresponding in the recognin module of call by result Server Mode identification module; Binary file corresponding in recognin module completes Server Mode identification, and recognition result is fed back to the communicator module of Server Mode identification module; Server Mode recognition result is sent to basic module by communicator module.
6., based on a Server Mode recognition methods for the arbitrary described instrument of claim 1-5, its specific implementation process is:
First basic module is loaded;
Basic module calls interactive module, operating system identification module and Server Mode identification module;
Interactive module detects current operating environment, and this running environment comprises character, figure;
Interactive module calls corresponding display interface according to running environment testing result, and this display interface comprises character, figure;
Operating system identification module identification current C PU information and operation system information, this CPU information comprises CPU brand, model, dominant frequency, check figure, Thread Count; Operation system information comprises OS Type, brand, operating system version, kernel version;
The CPU information recognized, operation system information are sent to basic module by operating system identification module;
The CPU information that operating system identification module recognizes by basic module, operation system information are sent to the communicator module of interactive module and Server Mode identification module;
Interactive module display CPU and operation system information;
After the communicator module of Server Mode identification module receives the operating system recognition result that basic module sends, according to binary file corresponding in the recognin module of call by result Server Mode identification module;
Binary file corresponding in the recognin module of Server Mode identification module completes Server Mode identification, recognition result is fed back to the communicator module of Server Mode identification module;
Server Mode recognition result is sent to basic module by the communicator module of Server Mode identification module;
Server Mode recognition result is sent to interactive module by basic module;
Interactive module display server end pattern recognition result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510017819.3A CN104615493A (en) | 2015-01-14 | 2015-01-14 | Cross-platform server-side mode recognition tool and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510017819.3A CN104615493A (en) | 2015-01-14 | 2015-01-14 | Cross-platform server-side mode recognition tool and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104615493A true CN104615493A (en) | 2015-05-13 |
Family
ID=53149949
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510017819.3A Pending CN104615493A (en) | 2015-01-14 | 2015-01-14 | Cross-platform server-side mode recognition tool and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104615493A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106357620A (en) * | 2016-08-27 | 2017-01-25 | 浙江远望信息股份有限公司 | Method of intelligent recognition of servers |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101630251A (en) * | 2009-08-05 | 2010-01-20 | 中国船舶重工集团公司第七○九研究所 | Graphical interfaces development method and system of cross-desktop and embedded system |
CN102521035A (en) * | 2011-11-25 | 2012-06-27 | 浪潮电子信息产业股份有限公司 | Identifying method of virtual machine in migration process |
CN103109271A (en) * | 2012-08-30 | 2013-05-15 | 华为技术有限公司 | Inter-platform application migration realization method and system |
CN104049970A (en) * | 2014-05-29 | 2014-09-17 | 汉柏科技有限公司 | Automatic identifying method and system for framework and platform at user mode |
-
2015
- 2015-01-14 CN CN201510017819.3A patent/CN104615493A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101630251A (en) * | 2009-08-05 | 2010-01-20 | 中国船舶重工集团公司第七○九研究所 | Graphical interfaces development method and system of cross-desktop and embedded system |
CN102521035A (en) * | 2011-11-25 | 2012-06-27 | 浪潮电子信息产业股份有限公司 | Identifying method of virtual machine in migration process |
CN103109271A (en) * | 2012-08-30 | 2013-05-15 | 华为技术有限公司 | Inter-platform application migration realization method and system |
CN104049970A (en) * | 2014-05-29 | 2014-09-17 | 汉柏科技有限公司 | Automatic identifying method and system for framework and platform at user mode |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106357620A (en) * | 2016-08-27 | 2017-01-25 | 浙江远望信息股份有限公司 | Method of intelligent recognition of servers |
CN106357620B (en) * | 2016-08-27 | 2019-04-26 | 浙江远望信息股份有限公司 | A kind of intelligent identification Method of server apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102789413B (en) | A kind of debug system of concurrent program and method | |
CN103312850B (en) | A kind of mobile phone automatized test macro and method of work | |
US20150227449A1 (en) | Method and device for developing, compiling and debugging | |
CN103729292A (en) | Cross-host cross-platform remote command invoking method and system | |
CN107203401B (en) | Front-end project construction method, device and system | |
CN103488513B (en) | Equipment plug and play general drive method | |
CN105183476B (en) | A kind of construction method and device of cross-platform program | |
CN103279631B (en) | The Java code review method of Design Mode guidance | |
CN103294599B (en) | A kind of embedded software cross-beta method based on cloud | |
CN103927256A (en) | Method for controlling multiple Android devices | |
CN102708051B (en) | The method and system of program continuous integrating | |
CN103279846A (en) | Project acceptance method and system based on BIM model | |
CN104503898A (en) | Method and system for checking embedded software debugging parameter in real time | |
CN108427640A (en) | A method of debugging driver under User space | |
CN1627254A (en) | Method for debuging embedded system and equipment | |
CN105740139A (en) | Virtual environment based embedded software debugging method | |
CN113360144A (en) | Auxiliary processing method, device, storage medium and program product for software development | |
CN101819552A (en) | Method for improving debugging speed during process of system development | |
CN104572102A (en) | Method for solving Chinese messy codes in JAVA | |
CN104615493A (en) | Cross-platform server-side mode recognition tool and method | |
CN111240658B (en) | Console implementation method and terminal based on Unity engine | |
CN113590217A (en) | Function management method and device based on engine, electronic equipment and storage medium | |
CN203894744U (en) | Cross-host and cross-platform remote order calling system | |
CN110968566A (en) | Migration tool-based domestic application system migration method | |
CN103150255A (en) | Method and device for testing script |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150513 |
|
WD01 | Invention patent application deemed withdrawn after publication |