Re: Cleaning a space

Dan Creswell <[email protected]> Mon, 22 Jan 2007 22:43:40 +0000
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
Yes,

For Outrigger - see the notes about directories for persistent state in
the com.sun.jini.outrigger package documentation of the JavaDoc.

For Blitz - see the installation guide and the section on installation
basics which discusses persistDir and logDir or see the appendix with
config variables listed.

In either case, you want to delete the directories configured and that
should be sufficient.

Dan.

Logan, Patrick wrote:
> Thanks, ok. Are the files that can be safely deleted documented? I.e.
> I don't want to mistakenly delete something that won't be properly
> recreated.
>
> Thanks -Patrick
>
>
> ----- Original Message ----- From: Dan Creswell
> <[email protected]> To: Logan, Patrick Cc:
> [email protected] <[email protected]> Sent:
> Mon Jan 22 17:36:26 2007 Subject: Re: Cleaning a space
>
> 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