dev@glassfish.java.net

Re: Temporary area for an instance

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Fri, 20 Mar 2009 11:54:40 -0700

On Mar 20, 2009, at 10:32 AM, Kedar Mhaswade wrote:

>
>
> Jerome Dochez wrote:
>> the "only" thing we have to do to ensure that the cache is being
>> flushed and recreated at the next startup is just to remove the
>> gf.lastmodified file from the cache. It will not bug the OSGi
>> runtime and will trigger an automatic refresh at the next startup.
>
> Thanks! That helps. And that means the file gf.lastmodified can be
> removed while
> server is running.
yes
>
>> a remote command could be useful although what are the uses cases
>> for using that command ?
>
> I am not sure. There may be cases for "if A happens, regenerate the
> felix-cache".
>
the cache is automatically regenerated when the modules directory
changes.
> Again, this is very felix-specific command and it may not be prudent
> to add it as is. I am not looking at increasing the command set ;)
>
in this particular, the cache is not only a felixism, equinox has a
cache, static mode also has a cache so this could be made a generic
command.

> BTW, does felix tui have a similar command or is it more like "rm -
> rf"?
>> Jerome
>> On Mar 20, 2009, at 9:42 AM, Kedar Mhaswade wrote:
>>>
>>>
>>> Sahoo wrote:
>>>> Kedar Mhaswade wrote:
>>>>> Hi Sahoo,
>>>>>
>>>>> We probably need to create a felix-commands module. However, I
>>>>> am not
>>>>> sure what you mean by "it needs to be run offline".
>>>> We can't delete the cache while the instance is running.
>>>
>>> Then we don't need a command since user has to be logged on to
>>> machine.
>>> Remote commands are useful in cluster case or single server case
>>> in that
>>> you only need admin access, no ssh or other access is needed.
>>>
>>> Why not use rm -rf?
>>>
>>> (Alternatively, the cache can be scheduled to be removed. Anyway,
>>> I am not
>>> pushing for a command).
>>>
>>> -Kedar
>>>
>>>> Thanks,
>>>> Sahoo
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>