Home Help Center

[IceE+IceStorm+IceGrid] equivalence of findAllReplicas

prettyManprettyMan Member Rahajaniaina AndriamasinoroOrganization: université paul sabatier ToulouseProject: student research information system
Hi,
what is the equivalence of the findAllReplicas method of the IceGrid::Query interface to retrieve the proxies of each replica for a given replicated proxy when I use IceGrid+IceStorm+IceBox for replicated server and IceE for clients ?

Regards

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    Yes, since findAllReplicas is a method from the IceGrid::Query Slice interface, an Ice-E client can use it. Just like you did for the IceStorm slice files, you'll need to translate the IceGrid slice file with the slice2cppe translator in order to be able to use these interfaces.

    Cheers,
    Benoit.
  • prettyManprettyMan Member Rahajaniaina AndriamasinoroOrganization: université paul sabatier ToulouseProject: student research information system
    Hi,
    thank you for your reply. How to use it if I want to modify a duplicated file (fic1.txt) in each replica (e.g: rep1 has fic1.txt, rep2 has fic1.txt and rep3 has fic1.txt).

    thanks
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    Ice doesn't really provide any solution for this, it's your responsibility to implement the replication of the file. For information on one way to implement master/slave replication, I recommend checking out the Master-Slave Replication with Ice article in the Issue #23 of the Ice connections newsletter.

    Cheers,
    Benoit.
Sign In or Register to comment.