Re: Cleaning a space

Dan Creswell <[email protected]> Mon, 22 Jan 2007 22:36:26 +0000
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
Hi Patrick,

Logan, Patrick wrote:
> What are the recommended development practices for doing stuff with a
> space, cleaning up entirely, and doing more stuff?
>

If you want to clean up entirely, including removing any state
concerning Entry schema etc, stop the space, delete any associated files
and restart it.

If you're using Transactions you probably want to do the same with your
Mahalo.

> I found some Javaspace Admin for deleting that outrigger and blitz both
> support. Not sure whether they both do the same thing with it, or if
> there is something else better/more.
>

You can use that method but schema information mightn't be removed so if
you change the Entry structure and attempt to write/take with it things
might well break.

> Also I found an experimental thingy for blitz but again I am not
> entirely sure what it does, or whether I should use it.
>

Which experimental thingy (cos there are a few :) ?

I'm guessing you mean BlitzAdmin.clean()?

That method clears out all entry's, aborts transactions (only
internally), blocking calls and removes Entry schemas too - basically,
your Blitz should be good as new after this.

You may get knock-ons to your Mahalo but it will clear most of those out
- probably still best to stop it, clean dirs and restart it.

Hope that helps,

Dan.

> Thanks
> -Patrick
>
>
> Patrick Logan
> Premium Innovation
> Liberty Mutual - Agency Markets IT West
> 650 NE Holladay Street
> PO Box 4555
> Portland, OR   97208-4555
>
> Office: 503.736.7537
> Cell: 503.476.5387
>
>
> ===========================================================================
> To unsubscribe, send email to [email protected] and include in the
> body of the message "signoff JAVASPACES-USERS". For general help, send
> email to [email protected] and include in the body of the message
> "help".
>
> To view past JAVASPACES-USERS postings, please see:
> http://archives.java.sun.com/archives/javaspaces-users.html
>

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html