Pattern: Half-Object + Protocol (HOPP)


By: G. Meszaros

Pattern: Half-Object + Protocol

Sometimes an object must appear in more than one address space. Divide the object into two half-objects, one in each address space, with a protocol between them. In each address space, implement the functionality to interact efficiently with the other objects in that address space.

Published in: PLoPD1
Pages: 129-132
Category: Distributed Systems

Summary: Sometimes an object must appear in more than one address space. Divide the object into two interdependent half-objects, one in each address space, with a protocol between them. In each address space, implement the functionality to interact efficiently with the other objects in that address space. Define the protocol to coordinate the activities of each half-object.