CN102215242A - Server-to-client based event response method and system thereof - Google Patents

Server-to-client based event response method and system thereof Download PDF

Info

Publication number
CN102215242A
CN102215242A CN2010101465370A CN201010146537A CN102215242A CN 102215242 A CN102215242 A CN 102215242A CN 2010101465370 A CN2010101465370 A CN 2010101465370A CN 201010146537 A CN201010146537 A CN 201010146537A CN 102215242 A CN102215242 A CN 102215242A
Authority
CN
China
Prior art keywords
server
exception
client
service request
test
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
CN2010101465370A
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN2010101465370A priority Critical patent/CN102215242A/en
Publication of CN102215242A publication Critical patent/CN102215242A/en
Pending legal-status Critical Current

Links

Images

Abstract

A server-to-client based event response method and system thereof are used to carry out various exception tests on servers in the storage area network. The test method comprises the following steps: a client sends a service request to a server; the server calls a providing adapter; the providing adapter confirms whether the simulation function of the server is opened from an exception management module; if so, an exception message of the exception management module is sent to the server; and the server generates an abnormal signal according to the exception message and responses the abnormal signal to the client. The server-to-client based method and system provided by the invention can execute all abnormal exception tests on the server and return the tested results to the client, so the round-trip time of the test procedure between the server and the client can be shortened and the test efficiency can be further accelerated integrally.

Description

Based on event response method and the system thereof of server to client
Technical field
The present invention is particularly to a kind of based on event response method and the system thereof of server to client about the response method and the system thereof of a kind of client and server.
Background technology
Storage management plan specification authentication (Storage Management Initiative, be called for short SMI-S) be that industry is in order to support common information model (Common Information Model, CIM) with phytyl in business administration (the Web-Based Enterprise Management of webpage, WBEM) a cover management interface of being developed, the user can more easily be managed store hardware and management software, allow the running of arranging in pairs or groups of the product of different vendor.For example the storage management plan specification authenticates the storage arrays scheme that can allow management software more can properly manage the subcontractor, allows the client can adopt a greater variety of subcontractor's management systems to manage the storage arrays that each tame manufacturer releases.
Effectively the storage LAN of the how tame manufacturer of management (Storage Area Network is called for short SAN) all is cardinal task for end user and integrator.With regard to storing LAN, the resource that can its topmost figures in the expression of value of the linen, as an equivalent, and consequently, as a thing that is value now integrated how tame manufacturer, so that shared these resources, thereby increase operation rate.Present situation is, the application system that a series of shortages that the storage LAN of how tame manufacturer need use how tame manufacturer to provide are coordinated is provided.In addition, these application systems shortages guarantee to improve constantly the required function of professional efficient, distributivity, fail safe and reliability.Therefore, high management cost has hindered end user's active adoption storage networking technology.Incompatible management application programming interface is dispersed throughout the storage LAN the inside of how tame manufacturer, has also hindered the end user to make one's options between how tame supplier when making up storage networking.
Please refer to shown in Figure 1ly, it is the structural representation of the storage LAN of known technology.Generally speaking, development company needs being connected of entity to test for the items of equipment (for example, server and the client that links to each other) that stores in the LAN 110 when testing.So, if the equipment of test will make at most that more the setting of hardware and environment is complicated more.
Summary of the invention
In view of above problem, it is a kind of based on the event response method of server to client that main purpose of the present invention is to provide, in order to server is carried out various exception tests.
For reaching above-mentioned purpose, the present invention is disclosed to be may further comprise the steps based on the event response method of server to client: user end to server sends service request; Provide adapter by server calls; By being provided, adapter confirms to the management by exception module whether the copying of server is unlocked; If the copying of server is unlocked, then the Exception Message with the management by exception module sends server to; Server produces abnormal signal according to Exception Message, and abnormal signal is replied to client.
Above-mentioned based on the event response method of server to client, wherein, send this service request and more comprise: to this management by exception module registration one simulation exceptional cast, in order to provide this service request corresponding unusual exception.
Above-mentioned based on the event response method of server to client, wherein, this client is sent and is more comprised before this service request and select this server.
Above-mentioned based on the event response method of server to client, wherein, this simulation exceptional cast comprises the exception test of exception test and Network Transmission of exception test, the storage facilities of exception test, the internal memory of CPU.
Above-mentioned based on the event response method of server to client, wherein, if the copying of this server is not unlocked, then calls a corresponding service provider according to this service request and handle, and the result that this service provider is finished is fed back to this client by this server.
The present invention proposes a kind of based on the emergency response system of server to client in addition, in order to server is carried out various exception tests.
For reaching above-mentioned purpose, the present invention is disclosed a kind ofly to be comprised based on the emergency response system of server to client: client, server and adapter is provided; Server receives this service request of client; After server received service request, server calls provided adapter, and by providing adapter to confirm to the management by exception module whether the copying of server is unlocked; If the copying of server is unlocked, then the exceptional cast according to the management by exception module sends server to.
Above-mentioned based on the emergency response system of server to client, wherein, this exceptional cast comprises the exception test of exception test and Network Transmission of exception test, the storage facilities of exception test, the internal memory of CPU.
Above-mentioned based on the emergency response system of server to client, wherein, if the copying of this server is not unlocked, then calls a corresponding service provider according to this service request and handle, and the result that this service provider is finished is fed back to this client by this server.
Above-mentioned based on the emergency response system of server to client, wherein, this provides adapter to comprise that a more unusual exception provides device, the kind of the unusual exception of its management.
The test that can on server, carry out every unusual exception to the event response method and the system thereof of client based on server provided by the present invention, and test result returned to client.Thus, can shorten the two-way time of the test process of server and client, and then accelerate whole testing efficiency.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is the configuration diagram of the storage LAN of known technology;
Fig. 2 is a structural representation of the present invention;
Fig. 3 is an operation workflow schematic diagram of the present invention.
Wherein, Reference numeral
110 store LAN
210 clients
220 servers
230 provide device
240 provide adapter
Embodiment
Below in conjunction with the drawings and specific embodiments technical solution of the present invention being described in detail, further understanding purpose of the present invention, scheme and effect, but is not the restriction as claims protection range of the present invention.
Please refer to shown in Figure 2ly, it is a structural representation of the present invention.Test macro to the unusual exception that stores LAN of the present invention comprises: client 210, server 220, device 230 is provided and adapter 240 is provided.Client 210 is in order to send a service request, this service request that server 220 receives from client 210.In the standard of storage management plan specification authentication, provide four types provide device 230 (four kinds provide device to be respectively: object provides device (instance provider), unite device (associationprovider) is provided, indicate provide device (indication provider) and method that device (recipe provider) is provided).And each provides device 230 in order to carry out corresponding service.
Therefore, server 220 provides device 230 accordingly by providing adapter 240 to call according to different service requests.Wherein, provide adapter 240 to be linked to server 220 and provide between the device 230.Provide adapter 240 to be server 220 and the intermediate layer that device 230 is provided, provide adapter 240 to have interface (port) and the behavior (behavior) identical with device 230 is provided.
Provide adapter 240 to comprise that more unusual exception provides device and management by exception module.Unusual exception provides the device record various unusual exceptions.Server 220 is according to the service request of client 210, and providing to select in the device with the corresponding unusual exception of service request for registered a plurality of unusual exceptions in server 220 provides device.And should unusual exception provide device by server 220 operation, give client 210 so as to producing a customized unusual message.
Provide the record that has carried out following field in the device for each unusual exception in unusual exception:
Identification field (Identifier): in order to the type of recording exceptional exception, this field has uniqueness;
Information field (Message): concrete descriptor unusually makes an exception;
Come source field (Origin): contain the object that unusual exception produces the source key message; And
Operation field (Operation): the concrete operations that produce unusual exception.
Wherein, source field and operation field can be specified the object and the corresponding operation thereof that will produce unusual exception exactly as keyword in the future.
The bookkeepings such as establishment, modification or deletion that the management by exception module makes an exception unusually in order to offer the developer.Make the developer to need abnormal information (information, identification and the action name that comprise event source, unusual exception) to the registration of management by exception module, and the particular content of unusual exception etc.
For clearly demonstrating overall operation process of the present invention, also please refer to shown in Figure 3ly, it is an operation workflow schematic diagram of the present invention.Method of testing to the unusual exception that stores LAN of the present invention may further comprise the steps:
Step S310: to management by exception module registration simulation exceptional cast;
Step S320: user end to server sends service request;
Step S330: provide adapter by server calls;
Step S340: by providing adapter to confirm to the management by exception module whether the copying of server is unlocked;
Step S350:, then call the operation that corresponding service provider carries out service request, and the result that service provider is finished is fed back to client if the copying of server is not unlocked;
Step S360: if the copying of server is unlocked, then the Exception Message with the management by exception module sends server to; And
Step S370: server produces abnormal signal according to Exception Message, and abnormal signal is replied to client.
For illustrating further running of the present invention, with following various unusual exceptions as an illustration, but be not only to limit to wherein said service and unusual kind.Is example at this with Open Pegasus, Open Pegasus is an open source code (open source) project, be used to realize the common information model (Distributed Management Task Force Common Information Model, DMTF CIM) and the business administration standard (WBEM) of distributed management task.And to management by exception module registration simulation exceptional cast.
Stage 1:
Client 210 is sent the requirement of obtaining the tabulation of volume memory device to server 220.Client executing is operated following instruction:
cimcli-l?https://192.168.47.16:5989-n?root/cimv2?ni“CIM_StorageVolume”
Wherein, each parameter meaning is: the address of-l (Location) given server;-n (Name Space) specifies NameSpace; Ni (Enumerate Instance Names) action name: the title of obtaining given instance; " CIM-_StorageVolume " operand: volume memory device.
Server 220 is searched according to the service request of being obtained and is had or not corresponding volume memory device, and the volume memory device that will find replies to client 210 with following message.
CIM_StorageVolume.SystemCreationClassName=CIM_System”,CreationClassName=”CIM_StorageVolume”,DeviceID=”971a17de-38e8-4c92-8dec-3b4e9f3f51c2”
CIM_StorageVolume.SystemCreationClassName=”CIM_System”,CreationClassName=”CIM_StorageVolume”,DeviceID=”5c94cf9f-c1cb-49c5-bdda-83eb53565238”
CIM_StorageVolume.SystemCreationClassName=”CIM_System”,CreationClassName=”CIM_StorageVolume”,DeviceID=”841f073e-4727-4346-b1b2-5570198c8b5c”
Stage 2:
Certain volume memory device in the client 210 desires deletion server 220.At first, server 220 is by RegisteredExceptionManager, and will make an exception unusually provides device to register, as follows:
Instance?of?RegisteredExceptioncode
{
Origin=“CIM_StorageVolume.SystemCreationClassName=”CIM_System”,
CreationClassName=”CIM_StorageVolume”,DeviceID=”
841f073e-4727-4346-b1b2-5570198c8b5c””;
Operation=“DeleteInstance”;
Identifier=" 0x000A "; The ID number of #exception
message=”Operation?failed,the?Volume?is?in?use.”;
};
Next, client 210 is sent the service request of deletion volume memory device to server 220:
cimcli-l?https://192.168.47.16:5989-n?root/cimv2?di“CIM_StorageVolume.SystemCreationClassName=”CIM_System”,CreationClassName=”CIM_StorageVolume”,DeviceID=”841f073e-4727-4346-b1b2-5570198c8b5c””
Wherein, each parameter meaning is: the address of-l (Location) given server;-n (Name Space) specifies NameSpace; Di (Enumerate Instance Names) action name: in order to the example of deletion appointment; " CIM_StorageVolume.SystemCreationClassName=" CIM_System ", CreationClassName=" CIM_StorageVolume ", DeviceID=" and 841f073e-4727-4346-b1b2-5570198c8b5c " ".
Because the service request of deletion volume memory device has corresponding unusual exception provides device.Therefore server 220 can produce corresponding abnormal signal, and this abnormal signal is replied to client 210.For example: client 210 can receive the abnormal information from server 220 " Operation failed, the Volume is inuse. ".
Provided by the present invention to the method for testing of the unusual exception that stores LAN and its system can carry out every unusual exception on server 220 test, and test result returned to client 210.Thus, can shorten the two-way time of the test process of server 220 and client 210, and then accelerate whole testing efficiency.

Claims (9)

1. one kind based on the event response method of server to client, and it is characterized in that in order to server is carried out various exception tests this response method comprises the following steps:
One client is sent a service request to a server;
Provide adapter by this server calls one;
Provide adapter to confirm to a management by exception module whether the copying of this server is unlocked by this;
If the copying of this server is unlocked, then the Exception Message with this management by exception module sends this server to; And
This server produces an abnormal signal according to this Exception Message, and this abnormal signal is replied to this client.
2. as claimed in claim 1ly it is characterized in that, send this service request and more comprise based on the event response method of server to client:
To this management by exception module registration one simulation exceptional cast, in order to provide this service request corresponding unusual exception.
3. as claimed in claim 1ly it is characterized in that this client is sent and more comprised before this service request and select this server based on the event response method of server to client.
4. as claimed in claim 2 based on the event response method of server to client, it is characterized in that this simulation exceptional cast comprises the exception test of CPU, the exception test of internal memory, the exception test of storage facilities and the exception test of Network Transmission.
5. as claimed in claim 1 based on the event response method of server to client, it is characterized in that, if the copying of this server is not unlocked, then call a corresponding service provider according to this service request and handle, and the result that this service provider is finished is fed back to this client by this server.
6. one kind based on the emergency response system of server to client, and it is characterized in that in order to server is carried out various exception tests this test macro comprises:
One client is in order to send a service request;
One server receives this service request from this client; And
One provides adapter, after this server receives this service request, this provides adapter this server calls, and provide adapter to confirm to a management by exception module whether the copying of this server is unlocked by this, if the copying of this server is unlocked, then each exceptional cast according to this management by exception module sends this server to.
7. as claimed in claim 6ly it is characterized in that this exceptional cast comprises the exception test of exception test and Network Transmission of exception test, the storage facilities of exception test, the internal memory of CPU based on the emergency response system of server to client.
8. as claimed in claim 6 based on the emergency response system of server to client, it is characterized in that, if the copying of this server is not unlocked, then call a corresponding service provider according to this service request and handle, and the result that this service provider is finished is fed back to this client by this server.
9. as claimed in claim 6ly it is characterized in that this provides adapter to comprise that a more unusual exception provides device, the kind of the unusual exception of its management based on the emergency response system of server to client.
CN2010101465370A 2010-04-09 2010-04-09 Server-to-client based event response method and system thereof Pending CN102215242A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101465370A CN102215242A (en) 2010-04-09 2010-04-09 Server-to-client based event response method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101465370A CN102215242A (en) 2010-04-09 2010-04-09 Server-to-client based event response method and system thereof

Publications (1)

Publication Number Publication Date
CN102215242A true CN102215242A (en) 2011-10-12

Family

ID=44746372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101465370A Pending CN102215242A (en) 2010-04-09 2010-04-09 Server-to-client based event response method and system thereof

Country Status (1)

Country Link
CN (1) CN102215242A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302836A (en) * 2015-05-12 2017-01-04 腾讯科技(深圳)有限公司 A kind of service connection method, client and system
CN106681922A (en) * 2016-12-27 2017-05-17 广州唯品会信息科技有限公司 Simulation server response method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509016A (en) * 2002-12-19 2004-06-30 ��ʽ����Ntt����Ħ Agreement test system and method thereof
CN1988482A (en) * 2006-12-22 2007-06-27 华为技术有限公司 Method and system for realizing automatic detection for simple network managing protocol agent
US20070162567A1 (en) * 2006-01-12 2007-07-12 Yi Ding Managing network-enabled devices
CN101008904A (en) * 2006-01-26 2007-08-01 西门子通信技术(北京)有限公司 Method for simulating multimedia subsystem based on IP

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509016A (en) * 2002-12-19 2004-06-30 ��ʽ����Ntt����Ħ Agreement test system and method thereof
US20070162567A1 (en) * 2006-01-12 2007-07-12 Yi Ding Managing network-enabled devices
CN101008904A (en) * 2006-01-26 2007-08-01 西门子通信技术(北京)有限公司 Method for simulating multimedia subsystem based on IP
CN1988482A (en) * 2006-12-22 2007-06-27 华为技术有限公司 Method and system for realizing automatic detection for simple network managing protocol agent

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302836A (en) * 2015-05-12 2017-01-04 腾讯科技(深圳)有限公司 A kind of service connection method, client and system
CN106302836B (en) * 2015-05-12 2021-07-13 腾讯科技(深圳)有限公司 Service connection method, client and system
CN106681922A (en) * 2016-12-27 2017-05-17 广州唯品会信息科技有限公司 Simulation server response method and system

Similar Documents

Publication Publication Date Title
CN110546606B (en) Tenant upgrade analysis system and method
US9413604B2 (en) Instance host configuration
EP3399417A1 (en) Systems and methods for blueprint-based cloud management
US7730183B2 (en) System and method for generating virtual networks
US9256412B2 (en) Scheduled and quarantined software deployment based on dependency analysis
AU2014209611B2 (en) Instance host configuration
US20130254761A1 (en) Granular application sessions tagging
CN104272259B (en) System and method for supporting the route based on version in transaction middleware machine environment
US8966025B2 (en) Instance configuration on remote platforms
CN107241315B (en) Access method and device of bank gateway interface and computer readable storage medium
US20060095435A1 (en) Configuring and deploying portable application containers for improved utilization of server capacity
US10140638B2 (en) Providing information technology resiliency in a cloud-based services marketplace
CN110659206A (en) Simulation architecture establishing method, device, medium and electronic equipment based on microservice
US8521861B2 (en) Migrating device management between object managers
US8166143B2 (en) Methods, systems and computer program products for invariant representation of computer network information technology (IT) managed resources
US9830173B1 (en) Proxy simulation service for testing stateless systems
CN111045928B (en) Interface data testing method, device, terminal and storage medium
CN102215242A (en) Server-to-client based event response method and system thereof
US20170108852A1 (en) Middleware architecture for validating and controlling manufacturing processes
US11748686B1 (en) Automated onboarding service
US7956737B2 (en) Method and apparatus for network service assurance
Rukkas et al. Distributed datastores: Towards probabilistic approach for estimation of reliability
US20200099788A1 (en) Context data management interface for contact center
CN111125232A (en) Method and device for accessing public cloud asset information
CN102201945A (en) Testing system for simulating storage area network

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: 20111012

WD01 Invention patent application deemed withdrawn after publication