Re: low level object copy

Per Nyfelt <[email protected]>
Newsgroups gmane.comp.java.ozone.user
Organization Resourcing Networks
Message-ID <[email protected]>
Hi Scott,

In theory this should be possible but there is no support for it today. You 
would have to make one of the storage implementations able to read out a 
byte[] representing a given graph without object instantiation. WizardStore 
and its siblings rely heavily on serialization semantics for object storage 
so I do not think it would be easy to do. If you do find a way then backups 
could be speeded up a lot. A long time ago Falko was experimenting with 
Cached Databases i.e. a sort of distributed storage that sychronized with a 
main db. If i remember correctly the syncing mechanism was using something 
similar to what you are talking about. Take a look at 
org.ozoneDB.ClientCacheDatabase and you'll see what i'm talking about.

Best regards,
Per


fredagen den 16 juli 2004 18.44 skrev Scott Cytacki:
> Is there a way to do a low level object copy?  I would like to be able
> to cheaply copy object graphs from one ozone-db to another.  To do this
> cheaply it would be most efficient to avoid instantiating all the
> objects just to copy them.
>
> I looked at the backup function in the admin package.  And that does
> instantiate all the objects.
>
> To do this kind of a low level copy it needs to be possible to find all
> the objects another object references without creating the object.  Is
> that possible?  It seems like it is possible but it doesn't look easy.
>
> Scott
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> Ozone-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ozone-users


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.