CN103532930B - A kind of operation system Extended Protocol of Based on Distributed - Google Patents

A kind of operation system Extended Protocol of Based on Distributed Download PDF

Info

Publication number
CN103532930B
CN103532930B CN201310428795.1A CN201310428795A CN103532930B CN 103532930 B CN103532930 B CN 103532930B CN 201310428795 A CN201310428795 A CN 201310428795A CN 103532930 B CN103532930 B CN 103532930B
Authority
CN
China
Prior art keywords
parameter
storing
resource
lock
role
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.)
Active
Application number
CN201310428795.1A
Other languages
Chinese (zh)
Other versions
CN103532930A (en
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.)
WANDA INFORMATION CO Ltd
Original Assignee
WANDA INFORMATION 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 WANDA INFORMATION CO Ltd filed Critical WANDA INFORMATION CO Ltd
Priority to CN201310428795.1A priority Critical patent/CN103532930B/en
Publication of CN103532930A publication Critical patent/CN103532930A/en
Application granted granted Critical
Publication of CN103532930B publication Critical patent/CN103532930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to the Extended Protocol of a kind of Based on Distributed operation system, protocol extension HTTP1.1 and upper release protocol, add semantic commands, it is achieved the extension of Based on Distributed operation system.This agreement has a storage Resource Commands, has one to obtain Resource Commands, has one to obtain resource lock order, has a release resource lock order, has one by the Resource Calculation order of User Defined algorithm.The invention provides a kind of application layer protocol carrying Distributed Calculation semanteme.The present invention extends http protocol 1.1 and above version, increases new function;Both make use of existing protocol, it also avoid the formulation more large order such as standard software storehouse and api interface.

Description

A kind of operation system Extended Protocol of Based on Distributed
Technical field
The present invention relates to the Extended Protocol of a kind of Based on Distributed business.
Background technology
In cloud computing environment, major part request is transmitted based on HTTP application layer protocol, and such application is advised Model is for being fit closely from the point of view of the outside system accessed of www mode.But change into call between built-in system and just cannot embody Go out the functional characteristic of distributed system, need back-end server layer adaptive.This can increase the difficulty of backstage resource allocation and become This.If it is a kind of that have guidance quality to provide in terms of protocol layer, if the protocol contents of lightweight gives back-end server enlightenment, More targeted raising can be obtained in terms of server work efficiency.
Summary of the invention
It is an object of the invention to provide one and utilize underlying computer cluster resource to greatest extent, improve the backstage utilization of resources The application layer protocol of efficiency.
In order to achieve the above object, the technical scheme is that the operation system providing a kind of Based on Distributed extends Agreement, it is characterised in that:
When storing resource, the steps include:
The first step, the request of initiation storage resource: definition protocol massages head, this protocol massages head at least includes parameter Store, parameter slot and parameter role, parameter store is for the method for storage resource, and parameter slot is used for storing participation Storage resource number, parameter role is used for storing role's title, for safety certification;
Second step, server end return response to client, and this response at least includes parameter resourceID, parameter StatusCode and parameter statusDesc, parameter resourcelD is for resource id of storage, parameter statusCode For storing return code, parameter statusDesc is used for storing return code and describes;
When obtaining resource, the steps include:
The first step, initiation obtain the request of specific resources: definition protocol massages head, this protocol massages head at least includes parameter Get, parameter type and parameter role, parameter get is for storing the method obtaining resource, and parameter type is used for storing resource and returns Type, parameter role is used for storing role's title, for safety certification;
Second step, server end return response to client, and this response at least includes parameter resourceID, parameter StatusCode and parameter statusDesc, parameter resourceID is for storing resource id of acquisition, parameter statusCode For storing return code, parameter statusDesc is used for storing return code and describes;
When obtaining resource lock, the steps include:
The first step, initiation obtain the request of resource lock: definition protocol massages head, this protocol massages head at least includes parameter Lock, parameter type and parameter role, parameter lock is for storing the method obtaining resource lock, when for read lock, parameter type Being 0, when for writing lock, parameter type is 1, and parameter role is used for storing role's title, for safety certification;
Second step, server end return response to client, and this response at least includes parameter resourceID, parameter StatusCode and parameter statusDesc, parameter resourceID is for storing resource id of resource lock, parameter StatusCode is used for storing return code, and parameter statusDesc is used for storing return code and describes;
When discharging resource lock, the steps include:
The first step, the request of initiation release resource lock: definition protocol massages head, this protocol massages head at least includes parameter Unlock, parameter type, parameter role and parameter resourceID, parameter unlock is used for the method storing release resource lock, When for read lock, parameter type is 0, and when for writing lock, parameter type is 1, and parameter role is used for storing role's title, for safety Certification uses, and parameter resourceID is the resource lock id of application before storage;
Second step, server end return response to client, and this response at least includes parameter resourceID, parameter StatusCode and parameter statusDesc, parameter resourceID is for storing resource id of resource lock, parameter StatusCode is used for storing return code, and parameter statusDesc is used for storing return code and describes;
When Resource Calculation, the steps include:
The first step, the request of initiation release resource lock: definition protocol massages head, this protocol massages head at least includes parameter Compute, parameter lock, parameter role, parameter type and parameter slot, parameter compute is used for storing method, when not locking Time, parameter lock is 0, and when locking, parameter lock is 1, and parameter role is used for storing role's title, for safety certification, Parameter type is for storing the calculating classification that system is supported, parameter slot is for storing the resource number participating in calculating, at message The formula that internal definition calculates, incoming parameter name and value;
Second step, server end return response to client, and this response at least includes parameter resourceID, parameter StatusCode and parameter statusDesc, parameter resourceID is for storing resource id of resource lock, parameter StatusCode is used for storing return code, and parameter statusDesc is used for storing return code and describes, and internal comprises calculating calculating Structure.
The invention provides a kind of application layer protocol carrying Distributed Calculation semanteme.The present invention extends http protocol 1.1 And above version, increase new function;Both make use of existing protocol, it also avoid formulation standard software storehouse and api interface etc. more Add large order.
Detailed description of the invention
For making the present invention become apparent, hereby it is described in detail below with preferred embodiment.
In http protocol 1.1 and above release protocol, existing method comprises GET, POST, PUT, DELETE etc., with the addition of Self-defining extended method, starting with classifying from the Method of extension HTTP illustrates each step:
1, storage resource
Step 1: initiate the request of storage resource: defining protocol massages head, below table is request header parameter:
Step 2: server end return to client response, return the parameter such as following table of response:
The return code of normal flow such as following table
2, resource is obtained
Step 1, initiation obtain the request of specific resources: defining protocol massages head, below table is request header parameter:
Step 2: server end return to client response, return the parameter declaration of response:
The return code of normal flow such as following table
3, obtain resource lock, needed to obtain relevant lock in advance before Resource Calculation:
Step 1: initiate to obtain the request of resource lock: defining protocol massages head, below table is request header parameter:
Step 2: server end return to client response, return the parameter declaration of response:
The return code of normal flow such as following table:
4, release resource lock, completes to need afterwards, at Resource Calculation, the lock that release is relevant:
Step 1, the request of initiation release resource lock: definition protocol massages head, below table is request header parameter:
Step 2: server end return to client response, return the parameter declaration of response:
The return code of normal flow such as following table:
5, Resource Calculation, for collecting that given data resource can carry out being correlated with, average polymerization calculates:
Step 1: initiate the request of release resource lock: defining protocol massages head, below table is request header parameter:
Except heading also needs to define the formula of calculating in body body, incoming parameter name and value, the value of output, All these contents use xml form to be described.Computing formula can but be not limited only to use JavaScript language describe. Background server resolves incoming computation requests, carries out correlation computations and is then back to result set.
Step 2: server end return to client response, return the parameter declaration of response:
Comprise the architecture of calculating in the return body of response, also use Xml form.
The return code of normal flow such as following table

Claims (1)

1. the operation system extended method of a Based on Distributed, it is characterised in that:
When storing resource, the steps include:
The first step, the request of initiation storage resource: definition protocol massages head, this protocol massages head at least includes parameter store, ginseng Number slot and parameter role, parameter store is for the method for storage resource, and parameter slot is used for storing participation storage resource Number, parameter role is used for storing role's title, for safety certification;
Second step, server end return response to client, and this response at least includes parameter resourceID, parameter StatusCode and parameter statusDesc, parameter resourceID is for resource id of storage, parameter statusCode For storing return code, parameter statusDesc is used for storing return code and describes;
When obtaining resource, the steps include:
The first step, initiate obtain specific resources request: definition protocol massages head, this protocol massages head at least include parameter get, Parameter type and parameter role, parameter get is for storing the method obtaining resource, and parameter type is used for storing resource and returns class Type, parameter role is used for storing role's title, for safety certification;
Second step, server end return response to client, and this response at least includes parameter resourceID, parameter StatusCode and parameter statusDesc, parameter resourceID is for storing resource id of acquisition, parameter statusCode For storing return code, parameter statusDesc is used for storing return code and describes;
When obtaining resource lock, the steps include:
The first step, initiate obtain resource lock request: definition protocol massages head, this protocol massages head at least include parameter lock, Parameter type and parameter role, parameter lock is for storing the method obtaining resource lock, and when for read lock, parameter type is 0, when During for writing lock, parameter type is 1, and parameter role is used for storing role's title, for safety certification;
Second step, server end return response to client, and this response at least includes parameter resourceID, parameter StatusCode and parameter statusDesc, parameter resourceID is for storing resource id of resource lock, parameter StatusCode is used for storing return code, and parameter statusDesc is used for storing return code and describes;
When discharging resource lock, the steps include:
The first step, the request of initiation release resource lock: definition protocol massages head, this protocol massages head at least includes parameter Unlock, parameter type, parameter role and parameter resourceID, parameter unlock is used for the method storing release resource lock, When for read lock, parameter type is 0, and when for writing lock, parameter type is 1, and parameter role is used for storing role's title, for safety Certification uses, and parameter resourceID is the resource lock id of application before storage;
Second step, server end return response to client, and this response at least includes parameter resourceID, parameter StatusCode and parameter statusDesc, parameter resourceID is for storing resource id of resource lock, parameter StatusCode is used for storing return code, and parameter statusDesc is used for storing return code and describes;
When Resource Calculation, the steps include:
The first step, the request of initiation release resource lock: definition protocol massages head, this protocol massages head at least includes parameter Compute, parameter lock, parameter role, parameter type and parameter slot, parameter compute is used for storing method, when not locking Time, parameter lock is 0, and when locking, parameter lock is 1, and parameter role is used for storing role's title, for safety certification, Parameter type is for storing the calculating classification that system is supported, parameter slot is for storing the resource number participating in calculating, at message The formula that internal definition calculates, incoming parameter name and value;
Second step, server end return response to client, and this response at least includes parameter resourceID, parameter StatusCode and parameter statusDesc, parameter resourceID is for storing resource id of resource lock, parameter StatusCode is used for storing return code, and parameter statusDesc is used for storing return code and describes, and internal comprises calculating calculating Structure.
CN201310428795.1A 2013-09-18 2013-09-18 A kind of operation system Extended Protocol of Based on Distributed Active CN103532930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310428795.1A CN103532930B (en) 2013-09-18 2013-09-18 A kind of operation system Extended Protocol of Based on Distributed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310428795.1A CN103532930B (en) 2013-09-18 2013-09-18 A kind of operation system Extended Protocol of Based on Distributed

Publications (2)

Publication Number Publication Date
CN103532930A CN103532930A (en) 2014-01-22
CN103532930B true CN103532930B (en) 2016-08-24

Family

ID=49934610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310428795.1A Active CN103532930B (en) 2013-09-18 2013-09-18 A kind of operation system Extended Protocol of Based on Distributed

Country Status (1)

Country Link
CN (1) CN103532930B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109842644B (en) * 2017-11-27 2021-11-19 中国电信股份有限公司 Parameter expansion method and system, cloud computing management platform assembly and user terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1196528A (en) * 1997-03-13 1998-10-21 摩托罗拉公司 System and method for delivery of information over narrow-band communications links
CN101119385A (en) * 2007-08-10 2008-02-06 深圳市深信服电子科技有限公司 Method for enhancing HTTP network velocity using WebPush
CN101729602A (en) * 2009-12-11 2010-06-09 北京工业大学 Method for acquiring P2P (peer-to-peer) video system program information

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7600030B2 (en) * 2005-08-31 2009-10-06 Microsoft Corporation Compounding of HTTP authoring protocol
US8010850B2 (en) * 2005-08-31 2011-08-30 Microsoft Corporation Client extended error handling

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1196528A (en) * 1997-03-13 1998-10-21 摩托罗拉公司 System and method for delivery of information over narrow-band communications links
CN101119385A (en) * 2007-08-10 2008-02-06 深圳市深信服电子科技有限公司 Method for enhancing HTTP network velocity using WebPush
CN101729602A (en) * 2009-12-11 2010-06-09 北京工业大学 Method for acquiring P2P (peer-to-peer) video system program information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HTTP Extensions for Distributed Authoring -- WEBDAV;Y. Goland等;《RFC2518,IETF》;19990228;第1-94页 *

Also Published As

Publication number Publication date
CN103532930A (en) 2014-01-22

Similar Documents

Publication Publication Date Title
US20220335214A1 (en) Device Identifier Dependent Operation Processing of Packet Based Data Communication
JP6479131B2 (en) Data annotation as a service for IOT systems
Ahmed et al. Integrating wireless sensor networks with cloud computing
CN106708917B (en) A kind of data processing method, device and OLAP system
WO2016127720A1 (en) Data interworking method and data interworking device
WO2016188099A1 (en) Account activity level based-system resources allocation method and device
CN110493304B (en) Edge computing system and transaction system
WO2020207024A1 (en) Authority management method and related product
JP2013533997A5 (en)
EP2781057A1 (en) Data distribution platform
US20120109851A1 (en) Providing Sensor-Application Services
CN103207920A (en) Parallel metadata acquisition system
CN101577705A (en) Multi-core paralleled network traffic load balancing method and system
Shaoshuai et al. MODM-based evaluation model of service quality in the Internet of Things
CN105430087A (en) Task role access control model for cloud computation
WO2017020716A1 (en) Method and device for data access control
CN103532930B (en) A kind of operation system Extended Protocol of Based on Distributed
CN110119396B (en) Data management method and related product
WO2016197871A1 (en) Affair processing method and device
CN104408146A (en) Intellectual property service platform and implementation method thereof
RU2016109030A (en) ACCESS CONTROL SYSTEM
Shravanthi et al. Mobile Cloud Computing as future for mobile applications
WO2024037560A1 (en) Multi-user collaboration platform based on edge computing and directed acyclic graph and method using same
Choi et al. Access control mechanism based on MAC for cloud convergence
US20120110602A1 (en) Community Sensor-Coordinating Entity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant