Hi,
To answer about the automatic snapshot code, look at the file service.rb =
in
the AUTOMATIC_EXPERIMENTAL branch of the CVS. It's something I was =
already
looking at.
Maybe this link will work:
http://cvs.sourceforge.net/viewcvs.py/madeleine/madeleine/lib/madeleine/?=
onl
y_with_tag=3DAUTOMATIC_EXPERIMENTAL
Sorry I don't have a use example to hand, I can knock one up if you =
need.
Regards,
Stephen
> -----Original Message-----
> From: madeleine-devel-admin@...=20
> [mailto:madeleine-devel-admin@...] On=20
> Behalf Of Alexey Verkhovsky
> Sent: 07 January 2005 01:47
> To: Madeleine-devel
> Subject: [Madeleine-devel] Checking if command log is empty or not
>=20
>=20
> Hello,
>=20
> I'd like to be able to do something like:
>=20
> loop do
> take_snapshot unless command_log.empty?
> sleep ONE_DAY
> end
>=20
> Is there any way to do it with Madeleine 0.7? I don't see=20
> anything like=20
> it in the public interface.
>=20
> By the way, why should everybody put this code in their apps:
>=20
> # Thread.new(madeleine) {|madeleine|
> # while true
> # sleep(60 * 60 * 24) # 24 hours
> # madeleine.take_snapshot
> # end
> # }
>=20
> This looks like it belongs somewhere in automatic.rb (and=20
> perhaps might=20
> have some optional behaviors - c.f. the original question).
>=20
> Best regards
> Alexey Verkhovsky
>=20
>=20
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Madeleine-devel mailing list
> Madeleine-devel@...
> https://lists.sourceforge.net/lists/listinfo/madeleine-devel
>=20
|