class ManagementServer {
private RemoteLog MasterLog;
public int reportCreation(String ComponentName,
int PortNumber) {
add component to some data structure
}
public int reportDestruction(String ComponentName,
int PortNumber) {
remove component from some data structure
}
public int writeRemoteLogEntries(LocalLog LogUpdate) {
LogUpdate.synchronize(MasterLog);
}
}
class RemoteLog {
some public methods accessible to LogUpdate so it can synchronize itself,
}