CN104836831B - A kind of object method of servicing for Internet of Things - Google Patents
A kind of object method of servicing for Internet of Things Download PDFInfo
- Publication number
- CN104836831B CN104836831B CN201410746186.5A CN201410746186A CN104836831B CN 104836831 B CN104836831 B CN 104836831B CN 201410746186 A CN201410746186 A CN 201410746186A CN 104836831 B CN104836831 B CN 104836831B
- Authority
- CN
- China
- Prior art keywords
- message
- filter
- wrapper
- template
- processor
- 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
Links
Abstract
The invention discloses a kind of object method of servicing for Internet of Things.The design pattern of source processing chain is used using the present invention, as different types of object model customizes dedicated source processing chain, and each component in process chain may be implemented to be multiplexed;Source processing chain is just assembled when accessing and reaching, and service platform is effectively distributed according to system resource, ensure that the reliability and independence of process chain, while also meeting the interaction problems of isomery object under environment of internet of things.It is able to solve the interactive service problem of client and equipment room.
Description
Technical field
The present invention relates to object service fields, and in particular to a kind of object method of servicing for Internet of Things.
Background technique
Currently, existing Internet service platform only provides the interactive service between client and database, such service needle
Unified specific working specification is devised to data;However, it is that object be combined with each other with internet for Internet of Things
Product, the data of Internet of Things mostly come from equipment, and the operation of equipment is more complicated and isomery, are difficult to find a kind of unification
Operational paradigm provides consistent processing, and Internet service platform can not provide the environment for supporting object service for it, moreover, right
For Internet of things system construction and maintenance personnel, effective management can not be opened.Therefore a kind of service platform is needed, it can
Solve the problems, such as the interactive service of client and equipment room.
Summary of the invention
In view of this, being able to solve client the present invention provides a kind of object method of servicing for Internet of Things and setting
Interactive service problem between standby.
A kind of object method of servicing for Internet of Things, including be sequentially connected VE starter, VE connector, VE container,
VE module, VE model, assembling assembly, log component, management assembly, Event processing engine, data processing engine and PE control
Device;
Wherein, VE container includes the VE scheduler and VE processor being sequentially connected, the VE filter being connected with VE processor
With VE wrapper;
Assembling assembly, log component and management assembly are for servicing VE container;
Event processing engine, data processing engine and PE controller are for servicing VE module;
Wherein, VE is the abbreviation of pseudo-entity, is to have uniform service interface in Internet of Things general system architecture system
Digital entities;
VE template: being the metadata frame for describing the information such as the attribute of pseudo-entity, function and state;
The connector parses the transport protocol of message, and transmit the information to VE container for receiving request message;
The message dispatcher is used to message distributing to respective processor according to VE type;
The message handling device merges for group calls message filter and message wrapper, provides complete Message Processing
Process;
The filter is used to execute the filtering rule of message, and in message processing procedure, filter can be superimposed use;
The wrapper forms the intelligible data format of VE, calls VE to execute interface, and return for converting message content
That returns VE executes response;
The VE container is distributed and is handled layer by layer to VE request message with chain-of-responsibilpattern pattern, finally seals message content
Dress is the identifiable structured object data of VE template interface, calls VE template logic, completes the calling to VE;
The object method of servicing specific workflow is binomial:
One, Booting sequence:
Step 1: starter starts, and configuration file is read, transmitted in parallel signal to connector and message dispatcher, with
Creation connection;
Wherein, connector will pass through the starting configuration item in configuration file, wound after receiving the signal that starter is sent
Build the connection relationship with starter, and load connection configuration item after, start protocol listening device, then association messages scheduler and will close
Signal after being unified into function is sent to the initial message pipeline of starter;And execute step 6;
Meanwhile for message dispatcher, after receiving the signal that starter is sent, also by creation and starter
Connection relationship, and after loading messages scheduling configuration item, message dispatcher needed for starting, after starting, message dispatcher is sent
Creation connection signal between message handling device simultaneously executes step 2;
Step 2: message handling device is after receiving the creation connection signal that message dispatcher is sent, with message dispatcher
Connection relationship is created, and is loaded simultaneously according to the configuration file of message handling device itself, distribution starting filter and encapsulation
Device;After loaded, transmission and the creation connection signal between filter and wrapper, execute step 3, and wait to be received respectively
The creation pass signal sent respectively by filter and message handling device;If message handling device is received by filter and message
The creation pass signal that processor is sent, thens follow the steps four;
Step 3: the filter for receiving creation connection signal is matched with load after message handling device creation connection about filtering
Item is set, and according to configuration information, the filter configured needed for starting;Filter rules are detected after filter starting;And create at
The signal of function is sent to message handling device;
At the same time, load is about encapsulation after the wrapper and message handling device creation for receiving creation connection signal connect
The configuration item of device, and according to configuration information, the wrapper of configuration needed for starting;Detection wrapper rule after wrapper starting, and
It creates successful signal and is sent to message handling device;
Step 4: message handling device is after receiving and sending the successful signal of creation by filter and wrapper, by this
It creates successful signal and is sent to message dispatcher;
Step 5: after message dispatcher receives the successful signal of creation described in step 4, the creation is successful
Signal is sent to starter;
Step 6: starter is after receiving the successful signal of creation sent by connector and message dispatcher, then
First initialize starter message pipeline after successively the message pipeline of initial message processor, initialize filter message
Pipeline connects the message pipeline after each initialization with after the message pipeline of initialization wrapper, for disappearing in VE access process
It is handled in breath pipeline;
At the same time, after the message pipeline for completing initialization starter, starter enters after starter detects VE template
Listening state is recycled, starting connector is completed;It completes to detect and starts listening state;
Two, VE access process process:
After step 1, Web server receive access request, then start the connector of pre- supported protocol, connector will parse
Protocol Request message, and VE type is parsed, VE message header is analyzed, VE type and version information are read, is selected about this VE type
Message dispatcher and message handling device, and the Protocol Request message received is re-packaged into VE container request message, and
The access request message is passed to message dispatcher;
Step 2, message dispatcher are after receiving the access request message sent by connector, then when can read by starting
Mapping configuration of the configuration file of reading in message dispatcher is VE type and version information, and is believed according to VE type and version
Breath, configures VE scheduler used in the VE type, VE processor, VE filter and VE wrapper i.e. source processing chain;
Step 3, message handling device are after obtaining the scheduling message that message dispatcher is sent, according to VE type and version information
That is the configuration of source processing chain, starts the specific messages processor of scheduling, and assembles its corresponding pipeline;After assembly,
The signal of assembly filter and wrapper is then sent to filter and wrapper;Filter starts to assemble dedicated after receiving signal
Filter, and assemble corresponding pipeline;Wrapper equally starts to assemble after receiving signal dedicated wrapper, and assemble with
Its corresponding pipeline;
Step 4, filter and wrapper will assemble successful signal respectively and are sent to Message Processing after ready
Device;
Step 5, message handling device will fill after being respectively received the successful signal of assembly that filter and wrapper are sent
Message dispatcher is sent to successful signal;
Step 6, called message handling device handle the message requested access to by message pipeline, and are handling
The filter consistent with VE type is called afterwards;
Step 7, called filter handle message at filter message pipeline, and filtered message signale is passed
To message handling device, and wrapper is called to be packaged processing and filtered message;
Step 8, wrapper are disappeared in message line treatment by what message handling device was sent after receiving called instruction
Breath, and the VE template parsed at connector is loaded, and initialize to the VE of the type, corresponding VE is recalled,
And operated with VE module logic, it is interacted with equipment;
Interactive information is sent to wrapper, wrapper response after step 9, interaction, and response signal is sent to connection
The corresponding tunneling of device completes access process.
Particularly, the VE template in the step 6 needs to be disposed by interface in configuration management before activation, tool
Body process are as follows:
Step 1, configuration management interface authenticate upload user to after uploading application, if by identification,
Execute step 2;Otherwise, refusal is connected, and re-execute the steps 1;
Step 2, by authentication after, configuration management interface will establish the connection of uploading channel, and receive upload template
File;
After step 3, configuration management interface, MD5 verification is carried out, if thening follow the steps 4, otherwise by verification
It will refuse to dispose;And return step 1;
Step 4, after being verified by MD5, analyze " the VE template type " in VE Template Information, and assemble regular mistake according to this
Whether filter is complete, accurate for detecting transmission;Wherein, regular filters are related to VE template type, different template types
Different rule-based filterings can be performed;
Step 5 differentiates rule, to ensure that VE template file meets the development rule of VE;If the rule meets,
6 are thened follow the steps, otherwise return step 1;
Step 6, record VE Template Information to template database, and the corresponding source processing chain of stencil-chosen thus, and fill
Back(ing) board class file completes the deployment of VE template.
Particularly, before the VE access process in the step 6, VE need to be registered, the detailed process of registration are as follows:
The first step, VE registration interface are after receiving registration request, detection registration subscription authentication;If reaching the differentiation item
Part then executes second step, otherwise, returns and executes the first step;
Second step, VE registration interface receive the template identification of VE to be registered;VE template is extracted by the VE template identification
Information;And receive VE information;
Third step, record VE information to VE database, while being the VE application platform resource;Wherein, the application platform
Resource includes: open interface, application spatial cache and is associated with equipment;
4th step discriminates whether specifically to sentence whether method for distinguishing has open interface, application by applying for platform resource
Spatial cache is simultaneously associated with equipment;If differentiating successfully, the 5th step is executed, otherwise, executes the 6th step;
5th step, the state that VE is arranged are state of activation, and the access interface of Open V E completes registration;
6th step, setting VE state prompt resource unavailable to freezing.
The utility model has the advantages that
1, the present invention uses the design pattern of source processing chain, and as different types of object model customizes dedicated message
Process chain, each component in process chain may be implemented to be multiplexed;Source processing chain is just assembled when accessing and reaching, service platform
It is effectively distributed according to system resource, ensure that the reliability and independence of process chain, while also meeting environment of internet of things
The interaction problems of lower isomery object.
Detailed description of the invention
Fig. 1 is object service platform system figure.
Fig. 2 is object service platform composition figure.
Fig. 3 is object service platform Booting sequence figure.
Fig. 4 is object service platform browsing process figure.
Fig. 5 is that VE template disposes flow chart.
Fig. 6 is VE register flow path figure.
Specific embodiment
The present invention will now be described in detail with reference to the accompanying drawings and examples.
As depicted in figs. 1 and 2: the present invention provides a kind of object method of servicing for Internet of Things, the described Internet of Things
Method of servicing use object service platform, including VE starter, VE connector, VE container, VE module, the VE mould being sequentially connected
Type, assembling assembly, log component, management assembly, Event processing engine, data processing engine and PE controller;
Wherein, VE container includes the VE scheduler and VE processor being sequentially connected, the VE filter being connected with VE processor
With VE wrapper.
Assembling assembly, log component and management assembly are for servicing VE container;
Event processing engine, data processing engine and PE controller are for servicing VE module;
Wherein, VE is the abbreviation of pseudo-entity, is to have uniform service interface in Internet of Things general system architecture system
Digital entities.VE is the object directly interacted with application in the system of Internet of Things port, real to the operation of object in application
Border is the operation to VE.
VE template: being the metadata frame for describing the information such as the attribute of pseudo-entity, function and state;
Internet of Things port: it is the unit for accessing and managing for equipment, is the product platform of Internet of Things construction, specifically includes that object
Body self-described language, object unifying identifier and analyzing platform, object access are constituted with management platform and object service platform;
Wherein, object self-described language specifically includes that VE, PE, PE template, VE template and self-described language.
Object self-described language: for describing the relevant information of object and its corresponding pseudo-entity;
Object access and management platform, access Internet of Things for object under environment of internet of things;
Object unifying identifier and analyzing platform, unifying identifier and addressing for realizing object, to the correlation of networking object
Information is identified, addressed and is inquired;
Object service platform, creation, publication and management for VE;And generation, publication and management for service;
Wherein, the connector parses the transport protocol of message, and transmit the information to VE appearance for receiving request message
Device.
The message dispatcher is used to message distributing to respective processor according to VE type.
The message handling device merges for group calls message filter and message wrapper, provides complete Message Processing
Process.
The filter is used to execute the filtering rule of message, and in message processing procedure, filter, which can be superimposed, to be made
With.
The wrapper forms the intelligible data format of VE, calls VE to execute interface, and return for converting message content
That returns VE executes response.
VE container is distributed and is handled layer by layer to VE request message with chain-of-responsibilpattern pattern, is finally encapsulated as message content
The identifiable structured object data of VE template interface call VE template logic, complete the calling to VE.
The work of the object service framework is roughly divided into 4 big processes, wherein Booting sequence and VE access process process are common
Constitute a complete system flow;VE template deployment process and VE register flow path are then the premise items that VE has access ability
Part;
Since existing Internet service platform provides the interactive service between client and database, such service is for number
Unify specific working specification according to devising;And the data of Internet of Things mostly come from equipment, and the operation of equipment is more complicated
And isomery, it is difficult to find a kind of unified operational paradigm to provide consistent processing.Internet of Things service platform is in order to adapt to this object
Networked environment, using the design pattern of source processing chain, as different types of object model customizes dedicated Message Processing
Chain, each component in process chain may be implemented to be multiplexed;Source processing chain access reach when just assembled, service platform according to
System resource is effectively distributed, and ensure that the reliability and independence of process chain, while also being met different under environment of internet of things
The interaction problems of structure object.
Its specific workflow are as follows:
One, Booting sequence;It is as shown in Figure 3:
Step 1: starter starts, and configuration file is read, for configuring connector and message dispatcher;And it sends out parallel
The number of delivering letters is to connector and message dispatcher, to create connection.
Wherein, connector will pass through the starting configuration item in configuration file, wound after receiving the signal that starter is sent
Build the connection relationship with starter, and load connection configuration item after, start protocol listening device, then association messages scheduler and will close
Signal after being unified into function is sent to the initial message pipeline of starter.And execute step 6
Meanwhile for message dispatcher, after receiving the signal that starter is sent, also by creation and starter
Connection relationship, and after loading messages scheduling configuration item, message dispatcher needed for starting, after starting, message dispatcher is sent
Creation connection signal between message handling device simultaneously executes step 2.
Step 2: message handling device is after receiving the creation connection signal that message dispatcher is sent, with message dispatcher
Create connection relationship, and loaded simultaneously according to the configuration file of message handling device itself, for distribute starting filter and
Wrapper;After loaded, transmission and the creation connection signal between filter and wrapper, execute step 3, and wait respectively
Receive the creation pass signal sent respectively by filter and message handling device;If message handling device receive by filter and
The creation pass signal that message handling device is sent, thens follow the steps four;
Step 3: the filter for receiving creation connection signal is matched with load after message handling device creation connection about filtering
Item is set, and according to configuration information, the filter configured needed for starting;Filter rules are detected after filter starting, wherein filtering
Device rule is used to not meeting the access request removal of message format.After detecting filter, successful signal will be created
It is sent to message handling device;
At the same time, load is about encapsulation after the wrapper and message handling device creation for receiving creation connection signal connect
The configuration item of device, and according to configuration information, the wrapper of configuration needed for starting;Detection wrapper rule after wrapper starting,
In, packing rule converts the data structure that message is carried out according to different VE types, and passes to corresponding VE module.It is detecting
After wrapper, successful signal will be created and be sent to message handling device;
Step 4: message handling device is after receiving and sending the successful signal of creation by filter and wrapper, by this
It creates successful signal and is sent to message dispatcher;
Step 5: after message dispatcher receives the successful signal of creation described in step 4, the creation is successful
Signal is sent to starter;
Step 6: starter waits the successful signal of creation sent by connector and message dispatcher;When starter exists
After receiving the successful signal of creation sent by connector and message dispatcher, then the message pipe of starter is initialized first
Behind road successively the message pipeline of initial message processor, initialize filter message pipeline and initialize wrapper message
Pipeline.And connect the message pipeline after each initialization, to be handled in message pipeline in VE access process.
At the same time, after the message pipeline for completing initialization starter, starter also will test VE template, for detecting
Whether VE template is complete, accurate.Starter enters circulation listening state later, completes starting connector.It completes to detect and start
Listening state.
Two, VE access process process: as shown in Figure 4:
After step 1, Web server receive access request, then start the connector of pre- supported protocol, connector assists parsing
Request message is discussed, and parses VE type, analyzes VE message header, reads VE type and version information, is selected about this VE type
Message dispatcher and message handling device, and the Protocol Request message received is re-packaged into VE container request message, and handle
The access request message passes to message dispatcher;
Step 2, message dispatcher are after receiving the access request message sent by connector, then when can read by starting
Mapping configuration of the configuration file of reading in message dispatcher is VE type and version information, and is believed according to VE type and version
Breath, configures the component in source processing chain used in the VE type, wherein the source processing chain is for the VE type
Corresponding VE scheduler, VE processor, VE filter and VE wrapper;After source processing chain assembles, by message transmission
To message handling device;
Step 3, message handling device are after obtaining the scheduling message that message dispatcher is sent, according to VE type and version information
That is the configuration of source processing chain, starts the specific messages processor of scheduling, and assembles its corresponding pipeline, in Message Processing
Device line treatment request message;After assembly, then the letter of assembly filter and wrapper is sent to filter and wrapper
Number;Filter starts to assemble private filter after receiving signal, and assembles pipeline;Wrapper equally starts after receiving signal
Dedicated wrapper is assembled, and assembles pipeline;
Step 4, filter and wrapper will assemble successful signal respectively and are sent to Message Processing after ready
Device, for confirming that filter and wrapper work are ready;
Step 5, message handling device will fill after being respectively received the successful signal of assembly that filter and wrapper are sent
It is sent to message dispatcher with successful signal, for calling message handling device;
Step 6, called message handling device handle the message requested access to by message pipeline, and are handling
The filter consistent with VE type is called afterwards;
Step 7, called filter handle message at filter message pipeline, and filtered message signale is passed
To message handling device, and wrapper is called to be packaged processing and filtered message;
Step 8, wrapper are disappeared in message line treatment by what message handling device was sent after receiving called instruction
Breath, and the VE template parsed at connector is loaded, and initialize to the VE of the type, corresponding VE is recalled,
And operated with VE module logic, it is interacted with equipment;
Interactive information is sent to wrapper, wrapper response after step 9, interaction, and response signal is sent to connection
The corresponding tunneling of device completes access process.
Booting sequence and VE browsing process together constitute the system flow of Internet of Things port service platform, are opened by Booting sequence
Each server of moving platform.Connector executes after receiving access request according to the sequence of step 1 to step 8;
The Internet of Things port service platform system further includes interface module;Wherein, the interface module include configuration management interface and
VE registration interface.
Three, the configuration management Interface Flowchart for the deployment of VE template, as shown in Figure 5:
Step 1, configuration management interface authenticate upload user to after uploading application, if by identification,
Execute step 2;Otherwise, refusal is connected, and re-execute the steps 1;
Step 2, by authentication after, configuration management interface will establish the connection of uploading channel, and receive upload template
File;
After step 3, configuration management interface, MD5 verification is carried out, if thening follow the steps 4, otherwise by verification
It will refuse to dispose;And return step 1;
Step 4, by MD5 verify after, analyze VE Template Information in " VE template type ", and according to this assembling rule
Whether filter is complete, accurate for detecting transmission.Wherein, regular filters are related to VE template type, different template class
Different rule-based filterings can be performed in type;
Step 5 differentiates rule, to ensure that VE template file meets the development rule of VE;If the rule meets,
6 are thened follow the steps, otherwise return step 1;
Step 6, record VE Template Information to template database, and the corresponding source processing chain of stencil-chosen thus, and fill
Back(ing) board class file completes the deployment of template.
Four, VE register flow path, as shown in Figure 6:
The first step, VE registration interface are after receiving registration request, detection registration subscription authentication.If reaching the differentiation item
Part then executes second step, otherwise, returns and executes the first step;
Second step, VE registration interface receive the template identification of VE to be registered;VE template is extracted by the VE template identification
Information;And receive VE information;
Third step, record VE information to VE database, while being the VE application platform resource;Wherein, it is described application include:
Open interface, application spatial cache are simultaneously associated with equipment.Here platform resource includes server resource and device resource two
Point, server resource includes computing resource, storage resource and event handling resource;Device resource refers to according to VE binding
PE creates corresponding PE controller, including the control access and data path interacted with equipment, is allowed by the controller
Information exchange between the VE and equipment.
4th step discriminates whether specifically to sentence whether method for distinguishing includes open interface, Shen by applying for platform resource
It spatial cache and please be associated with equipment.If differentiating successfully, the 5th step is executed, otherwise, executes the 6th step;
5th step, the state that VE is arranged are state of activation, and the access interface of Open V E completes registration;
6th step, setting VE state prompt resource unavailable to freezing.
In conclusion the above is merely preferred embodiments of the present invention, being not intended to limit the scope of the present invention.
All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention
Within protection scope.
Claims (3)
1. a kind of object method of servicing for Internet of Things, which is characterized in that including VE starter, VE connector, VE container, VE
Template, assembling assembly, log component, management assembly, Event processing engine, data processing engine and PE controller;
Wherein, VE container includes that VE scheduler and VE processor, wherein VE scheduler and VE processor are sequentially connected, further include with
VE processor connected VE filter and VE wrapper;Assembling assembly, log component and management assembly connect with VE container respectively
It connects;Event processing engine, data processing engine and PE controller are connect with VE wrapper respectively;VE starter is separately connected VE
Transfer device and VE connector;VE container connects VE connector and VE template;
Assembling assembly, log component and management assembly are for servicing VE container;
Event processing engine, data processing engine and PE controller are for servicing VE template;
Wherein, VE is the abbreviation of pseudo-entity, is the number in Internet of Things general system architecture system with uniform service interface
Word entity;
VE template: being for describing the attribute of pseudo-entity, function and the metadata frame of status information;
The VE connector parses the transport protocol of message, and transmit the information to VE container for receiving request message;
The VE scheduler is used to message distributing to respective processor according to VE type;
The VE processor merges for group calls VE filter and VE wrapper, provides complete message processing procedure;
The VE filter is used to execute the filtering rule of message, and in message processing procedure, VE filter can be superimposed use;
The VE wrapper forms the intelligible data format of VE, calls VE to execute interface, and return for converting message content
VE's executes response;
The VE container is distributed and is handled layer by layer to VE request message with chain-of-responsibilpattern pattern, is finally encapsulated as message content
The identifiable structured object data of VE template interface call VE template logic, complete the calling to VE;
The object method of servicing specific workflow is binomial:
One, Booting sequence:
Step 1: VE starter starts, and configuration file is read, transmitted in parallel signal to VE connector and VE scheduler, with wound
Build connection;
Wherein, VE connector will pass through the starting configuration item in configuration file, wound after receiving the signal that VE starter is sent
Build the connection relationship with VE starter, and load connection configuration item after, start protocol listening device, then be associated with VE scheduler and will close
Signal after being unified into function is sent to the initial message pipeline of VE starter;And execute step 6;
Meanwhile for VE scheduler, after receiving the signal that VE starter is sent, also by the company of creation and VE starter
Connect relationship, and after loading messages scheduling configuration item, VE scheduler needed for starting, after starting, at VE scheduler dispatches and VE
It manages the creation connection signal between device and executes step 2;
Step 2: VE processor after receiving the creation connection signal that VE scheduler is sent, creates connection with VE scheduler and closes
System, and loaded simultaneously according to the configuration file of VE processor itself, distribution starting VE filter and VE wrapper;It has loaded
Bi Hou, respectively send and the creation connection signal between VE filter and VE wrapper, execute step 3, and wait it is to be received respectively by
The creation pass signal that VE filter and VE processor are sent;If VE processor is received by VE filter and VE processor hair
The creation pass signal come, thens follow the steps four;
Step 3: the VE filter for receiving creation connection signal loads after connecting with the creation of VE processor about filtering configuration
, and according to configuration information, the VE filter of configuration needed for starting;VE filter rules are detected after the starting of VE filter;And it creates
It builds successful signal and is sent to VE processor;
While creating successful signal and be sent to VE processor, the VE wrapper and VE processor of creation connection signal are received
Configuration item of the load about VE wrapper after creation connection, and according to configuration information, start the required VE wrapper configured;VE envelope
Detection VE wrapper is regular after filling device starting, and creates successful signal and be sent to VE processor;
Step 4: VE processor creates this after receiving and sending the successful signal of creation by VE filter and VE wrapper
It builds successful signal and is sent to VE scheduler;
Step 5: the successful signal of the creation is sent out after VE scheduler receives the successful signal of creation described in step 4
It send to VE starter;
Step 6: VE starter is after receiving the successful signal of creation sent by VE connector and VE scheduler, then it is first
The message pipeline of VE processor, the message of initialization VE filter are successively initialized after first initializing the message pipeline of VE starter
Pipeline connects the message pipeline after each initialization with after the message pipeline of initialization VE wrapper, is used in VE access process
It is handled in message pipeline;
After the message pipeline for completing initialization VE starter, VE starter enters circulation and monitors after VE starter detection VE template
State completes starting VE connector;It completes to detect and starts listening state;
Two, VE access process process:
After the first step, Web server receive access request, then start the VE connector of pre- supported protocol, VE connector will parse
Protocol Request message, and VE type is parsed, VE message header is analyzed, VE type and version information are read, is selected about this VE type
VE scheduler and VE processor, and the Protocol Request message received is re-packaged into VE container request message, and this
Access request message passes to VE scheduler;
Step 2, VE scheduler are after receiving the access request message sent by VE connector, then reading when can read by starting
Mapping configuration of the configuration file in VE scheduler be VE type and version information, and according to VE type and version information, match
Set VE scheduler used in the VE type, VE processor, VE filter and VE wrapper i.e. source processing chain;
Step 3, VE processor are after obtaining the scheduling message that VE scheduler is sent, and according to the configuration of source processing chain, starting is adjusted
The dedicated VE processor of degree, wherein source processing chain is configured to VE type and version information, and assembles its corresponding pipeline;?
After assembly, then the signal of assembly VE filter and VE wrapper is sent to VE filter and VE wrapper;VE filter exists
Start to assemble dedicated VE filter after receiving signal, and assembles corresponding pipeline;VE wrapper is same after receiving signal
Start to assemble dedicated VE wrapper, and assembles corresponding pipeline;
Step 4, VE filter and VE wrapper will assemble successful signal respectively and are sent to VE processor after ready;
Step 5, VE processor will assemble after being respectively received the successful signal of assembly that VE filter and VE wrapper are sent
Successful signal is sent to VE scheduler;
The message that step 6, called VE processor will request access to is handled by message pipeline, and is called after treatment
The VE filter consistent with VE type;
Step 7, called VE filter handle message at VE filter message pipeline, and filtered message signale is passed
VE processor is given, and VE wrapper is called to be packaged processing and filtered message;
Step 8, VE wrapper are after receiving called instruction, in the message that message line treatment is sent by VE processor,
And the VE template parsed at VE connector is loaded, and initialize to the corresponding VE type of the VE template, it recalls
Corresponding VE, and operated with VE template logic, it is interacted with equipment;
Interactive information is sent to VE wrapper, the response of VE wrapper after step 9, interaction, and response signal is sent to VE and is connected
The corresponding tunneling of device is connect, access process is completed.
2. object method of servicing as described in claim 1, which is characterized in that the VE template in the step 6 needs before activation
It is disposed by configuration management interface, detailed process are as follows:
Step 1, configuration management interface authenticate upload user to after uploading application, if executed by identification
Step 2;Otherwise, refusal is connected, and re-execute the steps 1;
Step 2, by authentication after, configuration management interface will establish the connection of uploading channel, and receive upload template file;
After step 3, configuration management interface, MD5 verification is carried out, if thening follow the steps four by verification, otherwise will
Refusal deployment;And return step one;
Step 4, by MD5 verify after, analyze VE Template Information in " VE template type ", and according to this assembling rule VE filter
Whether device is complete, accurate for detecting transmission;Wherein, regular VE filter template type related to VE template type, different
Different rule-based filterings can be performed;
Step 5 differentiates rule, to ensure that VE template file meets the development rule of VE;If the rule meets, hold
Row step 6, otherwise return step 1;
Step 6, record VE Template Information to template database, and the corresponding source processing chain of stencil-chosen thus, and load mould
Plate class file completes the deployment of VE template.
3. object method of servicing as described in claim 1, which is characterized in that before the VE access process in the step 6, need
VE is registered, the detailed process of registration are as follows:
The first step, VE registration interface are after receiving registration request, detection registration subscription authentication;If registration subscription authentication passes through,
Second step is then executed, otherwise, returns and executes the first step;
Second step, VE registration interface receive the template identification of VE to be registered;VE Template Information is extracted by the VE template identification;
And receive VE information;
Third step, record VE information to VE database, while being the VE application platform resource;Wherein, the application platform resource
Include: open interface, application spatial cache and is associated with equipment;
5th step discriminates whether specifically to sentence whether method for distinguishing has open interface, application caching by applying for platform resource
Space is simultaneously associated with equipment;If differentiating successfully, the 6th step is executed, otherwise, executes the 7th step;
6th step, the state that VE is arranged are state of activation, and the access interface of Open V E completes registration;
7th step, setting VE state prompt resource unavailable to freezing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410746186.5A CN104836831B (en) | 2014-12-09 | 2014-12-09 | A kind of object method of servicing for Internet of Things |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410746186.5A CN104836831B (en) | 2014-12-09 | 2014-12-09 | A kind of object method of servicing for Internet of Things |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104836831A CN104836831A (en) | 2015-08-12 |
CN104836831B true CN104836831B (en) | 2018-12-25 |
Family
ID=53814464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410746186.5A Active CN104836831B (en) | 2014-12-09 | 2014-12-09 | A kind of object method of servicing for Internet of Things |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104836831B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106528289B (en) * | 2015-09-15 | 2020-10-23 | 南京中兴软件有限责任公司 | Resource operation processing method and device |
CN107888644A (en) * | 2016-09-30 | 2018-04-06 | 中国电子科技集团公司信息科学研究院 | Internet of Things open system framework and plateform system based on object ability |
CN106612335B (en) * | 2017-02-07 | 2019-10-11 | 山东浪潮人工智能研究院有限公司 | The method of the information exchange and communication of IoT is realized using Docker container |
CN108833510B (en) * | 2018-05-31 | 2020-02-14 | 北京百度网讯科技有限公司 | Message processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101964763A (en) * | 2010-09-30 | 2011-02-02 | 北京神州泰岳软件股份有限公司 | Message handling method |
CN102497451A (en) * | 2011-12-28 | 2012-06-13 | 用友软件股份有限公司 | Service processing system and service processing method |
CN102790684A (en) * | 2011-05-16 | 2012-11-21 | 中国移动通信集团北京有限公司 | Service information invocation method and system and enterprise service bus server |
CN103944814A (en) * | 2014-04-29 | 2014-07-23 | 深圳市天维尔通讯技术有限公司 | Data exchange method and system and gateway server |
-
2014
- 2014-12-09 CN CN201410746186.5A patent/CN104836831B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101964763A (en) * | 2010-09-30 | 2011-02-02 | 北京神州泰岳软件股份有限公司 | Message handling method |
CN102790684A (en) * | 2011-05-16 | 2012-11-21 | 中国移动通信集团北京有限公司 | Service information invocation method and system and enterprise service bus server |
CN102497451A (en) * | 2011-12-28 | 2012-06-13 | 用友软件股份有限公司 | Service processing system and service processing method |
CN103944814A (en) * | 2014-04-29 | 2014-07-23 | 深圳市天维尔通讯技术有限公司 | Data exchange method and system and gateway server |
Non-Patent Citations (1)
Title |
---|
Semantic Surface Represntation of Physical Entity in the Web of Things;Haining,等;《Proceedings of IEEE CCIS2012》;20121231;第1032-1036页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104836831A (en) | 2015-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110535831B (en) | Kubernetes and network domain-based cluster security management method and device and storage medium | |
CN102571396B (en) | Communication network system and routing inspection subsystem and routing inspection method of communication equipment | |
CN109933522B (en) | Test method, test system and storage medium for automatic case | |
CN106776313B (en) | Method and device for simulating service and centralized management platform | |
CN105164644B (en) | Hook frame | |
CN104836831B (en) | A kind of object method of servicing for Internet of Things | |
CN105808320A (en) | Equipment virtualization system and method based on Linux container | |
CN105138398B (en) | SOCKET communication and management of process general-purpose platform and method under synchronous communication mode | |
CN106209503B (en) | RPC interface test method and system | |
CN102594618A (en) | Method and device for realizing storage device test of storage area network (SAN) | |
CN106897216A (en) | The method and apparatus of test software | |
US11294740B2 (en) | Event to serverless function workflow instance mapping mechanism | |
CN115118705B (en) | Industrial edge management and control platform based on micro-service | |
CN110222117A (en) | A kind of data conversion synchronous method, equipment and the storage medium of heterogeneous database | |
CN114189274A (en) | Satellite ground station monitoring system based on microservice | |
CN109739704A (en) | A kind of interface test method, server-side and computer readable storage medium | |
CN100407663C (en) | Universal testing system and method for telecommunication intelligent service | |
CN105550103B (en) | A kind of automated testing method based on self-defined test script | |
CN103514044B (en) | Resource optimization method, device and system of dynamic behavior analysis system | |
CN111447273B (en) | Cloud processing system and data processing method based on cloud processing system | |
CN110807184B (en) | Method for intelligently recording screen and acquiring behavior data of computer and mobile terminal user | |
CN103309722A (en) | Cloud computation system and application access method thereof | |
CN102647419B (en) | Security policy online detection system facing to terminal computers | |
CN107451435B (en) | Management and control method, management and control machine and management and control system of hardware encryption machine | |
CN107678961A (en) | A kind of interface test method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |