Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357437

Summary: Provide a specialized IJVMChannel
Product: [Modeling] EMF Reporter: Eike Stepper <stepper>
Component: cdo.net4jAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3    
Version: 4.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: Lighter, Faster and Better

Description Eike Stepper CLA 2011-09-12 23:49:59 EDT
Currently debugging scenarios (like CDO offline replication) with multile connections can be quite tricky because the ChannelMultiplexer.channels map is a ConcurrentHashMap which is not naviable in debug mode. That makes it impossible to follow the JVM pointer chain from one channel to its peer channel.

It's trivial and cheap to store the peer channel pointer directly in the channel:

public interface IJVMChannel extends IChannel
{
  public IJVMChannel getPeer();
}
Comment 1 Eike Stepper CLA 2011-09-12 23:50:49 EDT
Committed revision 9064:
- trunk/plugins/org.eclipse.net4j.jvm
Comment 2 Eike Stepper CLA 2011-09-12 23:51:13 EDT
Committed revision 9064
Comment 3 Eike Stepper CLA 2012-09-21 07:18:58 EDT
Closing.