Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#212 closed defect (fixed)

Add an introspection interface for replicated objects

Reported by: hauma Owned by: hauma
Priority: normal Milestone: 2.0
Component: JP environment Version: 1.09b
Severity: normal Keywords:
Cc:

Description

Writing test cases for replicated classes and debugging an application using replicated objects can be hard without having the ability to introspect the replicated state. But direct access to the internal implementation of a replicated object should be avoided, because this is hidden behind the JavaParty transformation for replicated classes.

Proposal

The application should be able to acquire an introspection interface for one of its replicas. This diagnostics object should provide (filtered read-only) access to internals of the KaRMI implementation of replicated objects (without knowledge of the concrete superclass that is mixed into replicated classes by the JavaParty transformation).

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by hauma

  • Resolution set to fixed
  • Status changed from new to closed

In [2592], an introspection interface [source:trunk/karmi/src/uka/karo/ReplicaDiagnostics.java ReplicaDiagnostics] is added in the new package uka.karo (pronounced KArlsruhe Replicated Objects). This new package bridges replicated classes in JavaParty and their KaRMI implementation counterparts in uka.karmi.rmi.server.

An introspection object for a replica can be acquired with [source:trunk/jp/src/jp/lang/DistributedRuntime.java DistributedRuntime.getDiagnostics()]. This introspection object implements the ReplicaDiagnostics interface mentioned above and provides high-level read-only access to details of replicated objects.

comment:2 Changed 15 years ago by hauma

[2687] adds read-only access to the replicated objects object space. This can be used to dump replicated object graphs with ToXML. This is useful for debugging, because objects on different virtual machines can be related to each other.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain hauma.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.