Remote object references This section applies only to languages such a dịch - Remote object references This section applies only to languages such a Việt làm thế nào để nói

Remote object references This secti

Remote object references
This section applies only to languages such as Java and CORBA that support the distributed object model. It is not relevant to XML.
When a client invokes a method in a remote object, an invocation message is sent to the server process that hosts the remote object. This message needs to specify which particular object is to have its method invoked. A remote object reference is an identifier for a remote object that is valid throughout a distributed system. A remote object reference is passed in the invocation message to specify which object is to be invoked. Chapter 5 explains that remote object references are also passed as arguments and returned as results of remote method invocations, that each remote object has a single remote object reference and that remote object references can be compared to see whether they refer to the same remote object. Here, we discuss the external representation of remote object references.
Remote object references must be generated in a manner that ensures uniqueness over space and time. In general, there may be many processes hosting remote objects, so remote object references must be unique among all of the processes in the various computers in a distributed system. Even after the remote object associated with a given remote object reference is deleted, it is important that the remote object reference is not reused, because its potential invokers may retain obsolete remote object references. Any attempt to invoke a deleted object should produce an error rather than allow access to a different object.
There are several ways to ensure that a remote object reference is unique. One way is to construct a remote object reference by concatenating the Internet address of its host computer and the port number of the process that created it with the time of its creation and a local object number. The local object number is incremented each time an object is created in that process.
The port number and time together produce a unique process identifier on that computer. With this approach, remote object references might be represented with a format such as that shown in Figure 4.13. In the simplest implementations of RMI, remote objects live only in the process that created them and survive only as long as that process continues to run. In such cases, the remote object reference can be used as the address of the remote object. In other words, invocation messages are sent to the Internet address in the remote reference and to the process on that computer using the given port number.

To allow remote objects to be relocated into a different process on a different computer, the remote object reference should not be used as the address of the remote object. Section 8.3.3 discusses a form of remote object reference that allows objects to be activated in different servers throughout its lifetime.
The peer-to-peer overlay systems described in Chapter 10 use a form of remote object reference that is completely independent of location. Messages are routed to resources by means of a distributed routing algorithm.
The last field of the remote object reference shown in Figure 4.13 contains some information about the interface of the remote object, for example, the interface name. This information is relevant to any process that receives a remote object reference as an argument or as the result of a remote invocation, because it needs to know about the methods offered by the remote object.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Tài liệu tham khảo đối tượng từ xa Phần này áp dụng chỉ cho ngôn ngữ như Java và CORBA hỗ trợ mô hình đối tượng phân phối. Nó không phải là có liên quan đến XML. Khi một khách hàng invokes một phương pháp trong một đối tượng từ xa, một invocation thư được gửi đến quá trình máy chủ lưu trữ các đối tượng từ xa. Thông báo này cần phải chỉ định đối tượng cụ thể là phải có phương pháp gọi. Một tài liệu tham khảo đối tượng từ xa là một định danh cho một đối tượng từ xa có hiệu lực trong suốt một hệ thống phân phối. Một tài liệu tham khảo đối tượng từ xa được thông qua trong thư invocation để chỉ rõ đối tượng nào được kích hoạt. Chương 5 giải thích rằng tài liệu tham khảo đối tượng từ xa cũng được thông qua như là đối số và trở lại như là kết quả của phương pháp từ xa invocations, mỗi đối tượng từ xa có tham khảo đối tượng từ xa duy nhất và tài liệu tham khảo đối tượng từ xa có thể được so sánh để xem liệu họ chỉ đến cùng một đối tượng từ xa. Ở đây, chúng tôi thảo luận về các đại diện bên ngoài của tài liệu tham khảo đối tượng từ xa. Tài liệu tham khảo từ xa đối tượng phải được tạo ra theo cách đó đảm bảo tính độc đáo trong không gian và thời gian. Nói chung, có thể có nhiều quá trình lưu trữ từ xa các đối tượng nhất, do đó, tài liệu tham khảo từ xa đối tượng phải là duy nhất trong số tất cả các quá trình trong các máy tính khác nhau trong một hệ thống phân phối. Ngay cả sau khi đối tượng từ xa liên kết với một tài liệu tham khảo cho các đối tượng từ xa sẽ bị xóa, nó là quan trọng rằng tài liệu tham khảo đối tượng từ xa không tái sử dụng, bởi vì invokers tiềm năng của nó có thể giữ lại tài liệu tham khảo đối tượng từ xa đã lỗi thời. Bất kỳ cố gắng gọi một đối tượng đã xoá nên sản xuất một lỗi thay vì cho phép truy cập vào một đối tượng khác nhau. Có rất nhiều cách để đảm bảo rằng một từ xa đối tượng tham chiếu là duy nhất. Một cách là để xây dựng một tài liệu tham khảo đối tượng từ xa bằng cách ghép địa chỉ Internet của máy chủ của nó và số hiệu cổng của quá trình tạo ra nó với thời điểm sáng tạo của nó và một số đối tượng địa phương. Số đối tượng địa phương tăng lên mỗi khi một đối tượng được tạo ra trong quá trình đó. Số hiệu cổng và thời gian với nhau tạo ra một định danh quá trình duy nhất trên máy tính đó. Với cách tiếp cận này, tham khảo đối tượng từ xa có thể được đại diện với một định dạng như hiển thị trong hình 4,13. Trong triển khai đơn giản nhất của RMI, các đối tượng từ xa sống chỉ trong quá trình tạo ra chúng và tồn tại chỉ miễn là quá trình tiếp tục chạy. Trong trường hợp này, tham khảo đối tượng từ xa có thể được sử dụng làm địa chỉ của các đối tượng từ xa. Nói cách khác, invocation thư được gửi đến địa chỉ Internet trong tài liệu từ xa và cho quá trình trên máy tính đó bằng cách sử dụng số hiệu cổng nhất định. Để cho phép các đối tượng từ xa để được chuyển thành một quá trình khác nhau trên một máy tính khác nhau, từ xa đối tượng tham chiếu không nên được sử dụng làm địa chỉ của các đối tượng từ xa. Phần 8.3.3 thảo luận về một hình thức của tài liệu tham khảo đối tượng từ xa cho phép các đối tượng để được kích hoạt trong các máy chủ khác nhau trong suốt tuổi thọ của pin. Hệ thống lớp phủ peer-to-peer diễn tả trong chương 10 sử dụng một hình thức của tài liệu tham khảo từ xa đối tượng đó là hoàn toàn độc lập với vị trí. Thư được định tuyến đến tài nguyên bằng phương tiện của một thuật toán định tuyến phân phối. The last field of the remote object reference shown in Figure 4.13 contains some information about the interface of the remote object, for example, the interface name. This information is relevant to any process that receives a remote object reference as an argument or as the result of a remote invocation, because it needs to know about the methods offered by the remote object.
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: