jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller" <thomas.tom.muel...@gmail.com>
Subject Re: Replicating Data Store
Date Tue, 18 Sep 2007 09:08:43 GMT
Hi,

> new Data Store. On a scale of 1-10, how difficult do you think it would be?

Not that difficult, maybe 5.

> I was thinking it would be a matter of launching a thread for each write
> operation performed.

I would do it like this:

while(true) {
  readBlock(4K);
  if(end) break;
  sendBlockOverNetworkAsynchronously();
  writeBlockToDisk(); // blocks
}
waitForNetwork(); // blocks

> There would have to be a database configured on the
> second drive,

Not when using the FileDataStore. There is currently no
DatabaseDataStore (but probably somebody will write one).

Thomas

Mime
View raw message