Re: copy GHashTable
- From: Michael Meeks <michael ximian com>
- To: Daniel Grigoras <dgrigoras yahoo com>
- Cc: orbit <orbit-list gnome org>
- Subject: Re: copy GHashTable
- Date: 20 Mar 2002 23:01:18 +0000
I do believe you are confused.
Your servers will be in different processes. If that is the case, you
will need to use CORBA to shift data from one to the other -
g_hash_table_lookup_extended is an in-proc call - and as such is pretty
irrelevant to synchronizing stuff across processes.
Regards,
Michael.
On Wed, 2002-03-20 at 15:37, Daniel Grigoras wrote:
> But if I can't move , maybe a copy ?!And for
> synchronize all 3 GHashTables in GLib there are some
> functions for this ?
> ( g_hash_table_lookup_extended ) - this function works
> just for one table ..and it is very good for new
> record !
>
>
> Daniel G
>
>
>
>
> --- Michael Meeks <michael@ximian.com> wrote:
> > Hi Daniel,
> >
> > It is not possible to 'move' a GHashTable between
> > two CORBA servers.
> > You need to provide some sort of synchronization
> > interface between the
> > servers such that as soon as one server is
> > registered with it propagates
> > the information to the other servers.
> >
> > Regards,
> >
> > Michael.
> >
> > On Tue, 2002-03-19 at 23:14, Daniel Grigoras wrote:
> > > I must to implement a small application in ORBit .
> > The
> > > server program must implement a simple name-server
> > ;
> > > and I start 3 server ( S1,S2,S3) and a client who
> > make
> > > set/get on S1 . After each "set" , S1 must be
> > > replicate on S2 and S3 ( this name-server is buid
> > with
> > > GHashTable ) and if S1 is down , S2 must to
> > responde !
> > > But I don't find / know ..how I could access from
> > S1,
> > > another GHashTable of S2 or S3 !
> > >
> > > Daniel
> > >
> > >
> > >
> > >
> > > --- Michael Meeks <michael@ximian.com> wrote:
> > > > Hi Daniel,
> > > >
> > > > On Tue, 2002-03-19 at 13:41, Daniel Grigoras
> > wrote:
> > > > > in a small application there are 3 servers (
> > > > > name-server )and N clients ! Each server use
> > > > > GHashTable for store name<->address . I would
> > like
> > > > to
> > > > > update / replicate the content of server1's
> > > > GHashTable
> > > > > ( g_hash_table_lookup_extended ) but I don't
> > know
> > > > how
> > > > > I could access the GHashTable(s) of other 2
> > > > servers
> > > > > ...from my server program !?
> > > >
> > > > Your problem statement is not well formed - or
> > I
> > > > can't understand it at
> > > > least ;-)
> > > >
> > > > You have 3 separate processes or nameservers
> > and
> > > > you want to
> > > > synchronize their content ?
> > > >
> > > > This is going to be hard to do if you want them
> > to
> > > > be consistent, like
> > > > _really_ hard.
> > > >
> > > > What are your constraints / why do you want to
> > do
> > > > this ?
> > > >
> > > > Regards,
> > > >
> > > > Michael.
> > > >
> > > > --
> > > > mmeeks@gnu.org <><, Pseudo Engineer, itinerant
> > > > idiot
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Sports - live college hoops coverage
> > > http://sports.yahoo.com/
> > --
> > mmeeks@gnu.org <><, Pseudo Engineer, itinerant
> > idiot
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
--
mmeeks@gnu.org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]