Results 1 to 2 of 2

Thread: Ice and existing sourcecode

  1. #1
    Arnie is offline Registered User
    Join Date
    May 2006
    Posts
    3

    Ice and existing sourcecode

    Hi,

    first I describe my project and I would be pleased if someone give me a hint, how a solution could look like.
    We have an distributed numerical application which runs on multiple nodes in parallel. At the moment a solution exists, which uses mpich.
    Because of the inflexibility of mpi, some of the interaction between master node and computing nodes should be done with ICE. The master node holds the information about a global node grid called MasterNodeGrid which consists of Nodes. Now it should be possible that the computing nodes are able to receive a reference of an Node object through ICE. This should be possible without modifying the sourcecode from the MasterNodeGrid and the Node classes.
    Is there a possibility to receive a remote instance of an Node object, which has the same type as an local Node object or could be used in the same way?

    Greetings
    Arne
    Arne Gessner
    Technische Universität Braunschweig
    diploma thesis about distributed computing

  2. #2
    joe
    joe is offline Registered User
    Join Date
    Aug 2005
    Location
    Hamilton, NZ
    Posts
    16
    Hi Arnie,

    Quote Originally Posted by Arnie
    Is there a possibility to receive a remote instance of an Node object, which has the same type as an local Node object or could be used in the same way?
    There are a number of ways to substitute a remote proxy for a legacy local class :-
    1. if Node is used polymorphically in local code (ie, your functions are virtual and objects are used via pointers), then subclass a RemoteNode that invokes via a NodePrx proxy.
    2. if Node is not used polymorphically and you have access to the Node source, make this class a pure interface and created a polymorphic NodeImpl member which you can then subclass for remote operations...
    3. if all Node calls are going to be remote in your client, you could simply rewrite Node using identical function signatures against a NodePrx.

    Of course, if you don't mind updating your client code, you could just introduce a NodeWrapper facade for both local (Node) and remote (NodePrx) implementations, but you sound like you want to avoid that...

    HTH
    Researching ICE
    Independent Developer
    No project yet

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 03-11-2011, 07:28 AM
  2. Replies: 3
    Last Post: 05-30-2008, 06:58 AM
  3. How to read the sourcecode of ICE
    By yky in forum Help Center
    Replies: 3
    Last Post: 04-02-2008, 12:16 AM
  4. Replies: 5
    Last Post: 12-22-2005, 11:00 PM
  5. How to deal with existing java objects?
    By vsonnathi in forum Help Center
    Replies: 1
    Last Post: 06-02-2004, 04:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •