Research and Implement of CORBA valuetype Specification
- Author
- YingChengJun
- Advisor
- WangZuo
- School
- Southeast University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 40
- Citations
- 0
Abstract
The basic method of passing objects, in the architecture of CORBA, is by passing object reference. By passing object reference, it avoids system and communication costs of passing complicated objects and implements the distraction of clients and servers. In most situations, it is effective and reasonable. With the development of distributed application and CORBA specifications, in CORBA 2.3 object by value was introduced and in CORBA 2.4.2 the keyword‘valuetype’was formally added to implement object by value. With object by value, those lightweight objects concentrate on data encapsulation and simple logic, especially in receiver read-only applications, client running efficiency will be greatly improved while server resources and network costs reduced largely. In addition, with object by value, CORBA and JAVA distributed model can be connected seamlessly, so does the co-operation of object passing. Our work is to research and propose a practical method of object by value, and augment keyword‘valuetype’in IDL C++ compiler of ORBUS to support object by value. On the base of deep study of CORBA valuetype specification and ORBUS with its IDL compiler theory and structure, this paper proposed a workflow of implementing valuetype in CORBA system and its working mechanism. It deeply analyzed the augmentation of compiler pe-veral and syntax in implementation and back compiler map. In back compiler mapping, the paper researched different mapping-specification situations in detail respectively according to valuetype specification characteristics. According to the data member, operation, value-box, inheritance, valuetype coding/decoding and interface passing valuetype, we designed a different implement method and workflow.Secondly, according to the research of the characteristics of valuetype and LC local consensus protocol, this paper proposed valuetype object replica consensus algorithm based on improved LC and client TTL. It not only exceeds the valuetype specification, but also augments the application scope of valuetype. With our improved LC+TTL algorithm, on the one hand, the object replica consistency can be insured in limited time; on the other hand, system scalability can be greatly improved to adapt to large-scale applications.Finally, on the base of IDL C++ of ORBUS platform, we augmented valuetype to support object by value. With system test, we improved the feasibility and correctness of implementing valuetype in CORBA system.
Table of contents
Summary 4-5
ABSTRACT 5-9
paper chart List 9-10
first chapter 10-12 < br /> 1.1 Background and significance the 1.1.1 background research 10-11
10
1.1.2 significance 10-11
1.2 Research status quo 11
1.3 thesis 11
1.4 thesis difficulty paper is organized as 11
1.5 11-12 < br /> the second chapter of the technical brief 12-18
2.1 valuetype the valuetype About 12
2.1.1 12
2.1.2 valuetype object pass 12
2.2 ORBUS Development System Introduction 12-16
2.2.1 ORBUS system Introduction 12
2.2.2 ORBUS system composed 12-14 the
principle and function of the C compiler 2.2.3 IDL 14
2.2.4 compiler structure 14-16
2.3 LEX and the YACC introduced the 16-17 2.3.1 LEX Overview
16
2.3.2 YACC, Overview 16-17
2.3.3 LEX and YACC 17
2.4 Chapter Summary 17-18
Chapter the valuetype mapping specification the particular class 18-23
3.1 valuetype mapping 18
3.1.1 valuetype mapping specific class 18
3.1.2 valuetype mapping class diagram 18
3.2 the valuetype status data members 18
3.3 constructor, copy constructor and destructor 18-19
3.4 valuetype operation, 19
3.5 valuebox 19-21
3.5.1 underlying type parameter passing (Package Type parameter passing) 19
the 3.5.2 base class, enumeration and object the referenced valuebox package 19
the 3.5.3 structure type valuebox package 19-20
3.5.4 string and oversized string type valuebox package 20
3.5.5 Joint, sequence, fixed and any type
20 3.5.6 array type 20-21
3.6 abstract valuetype mapping specification 21
3.7 inherit a valuetype the mapping specification 21
3.8 ORB part of the expansion 21-22
the 3.8.1 ValueBase and reference counting 21-22
3.8.2 reference counting hybrid class 22
3.9 Chapter Summary the valuetype in 22-23
Chapter ORBUS in implementation model 23-26
4.1 valuetype object transfer interaction 23-24
4.1.1 encoder / decoder the valuetype module 23-24
4.1.2 valuetype, build the library and ORB generation library management module 24
4.1.3 sender and recipient 24
4.2 valuetype objects by value works nbsp the 24-25 4.2.1 server
workflow (sender context) ; 24
4.2.2 workflow client (the receiving end of context) the 24-25 4.3 Chapter Summary
25-26
Chapter valuetype ORBUS IDL C compiler system 26-38
5.1 IDL compiler design ideas and some important classes 26
5.1.1, IDL compiler design thinking 26
5.1.2 some very important class 26
5.2 of NARROW mechanism 26-27
5.3 IDL C compiler front-end to achieve the expansion 5.3.1 lexical analysis 27-30
27-28
5.3.2 parsing expansion 28-30
5.4 valuetpe backend mapping for the 30-37
5.4.1 expanded mainly class diagrams and inheritance relationships to 30-31
5.4.2 valuetype status. mapping data members to achieve 31 - 32
5.4.3 valuetype operation mapping to achieve the 32-33
5.4.4 valuebox, mapping to achieve 33-34
5.4.5 abstract valuetype mapping implementation the the mapping of 34
5.4.6 inherited valuetype achieve 34-36
5.4.7 the valuetype encoder / decoder module mapping to achieve 36
5.4.8 interface pass the valuetype the mapping expansion 36-37
5.5 Chapter Summary 37-38
Chapter server with a copy of the client object consistency 38-45
6.1 issues raised 38
6.2 LC protocol (local consistency protocol) the Agreement About 38-39
6.2.1 LC 38 -39
6.2.2 LC protocol characteristics 39
6.3 invalidate the setup protocol (invalidation of the-set protocol) 39-40
6.3.1 Introduction 39
to 6.3.2 invalid set agreement algorithm 39-40
6.4 improved LC + TTL algorithm 40-43
6.4.1 copies of objects invalid Improved the the 40-41
6.4.2 client, server object passed improvements 41
6.4.3 Object activation 41
6.4 .4 client TTL technology 41
6.4.5 the improved LC TTL algorithm 41-43
6.5 Zhuang, architecture valuetype read and write operations expansion 43-44
6.6 service end ORBUS, client services 44
the 6.7 LC TTL algorithm advantage of 44
6.8 Chapter Summary 44-45
Chapter VII system test 45-52
7.1 test target 45
7.2 performance test 45-50 <br / 7.2.1 read the operating performance testing 45-48
7.2.2 write modify test 48-50
7.3 test results 50-51
7.3.1 read operation 50
7.3.2 writes 50-51
7.3.3 Performance Analysis 51
7.4 Chapter Summary 51-52
Chapter VIII Summary and Outlook and 52-53
8.1 thesis contribution 52
8.2 Summary and Outlook 52-53
References 53-55
Acknowledgements the 55-56
I post master's degree during 56