You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Noble Paul നോബിള്‍ नोब्ळ् <no...@gmail.com> on 2008/07/15 15:26:56 UTC

Request handler needs a shutdown() method

RequestHandlers that need to do some cleanup on shutdown must be be
given a callback.


-- 
--Noble Paul

Re: Request handler needs a shutdown() method

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@gmail.com>.
OK that should be enough . I'll explore that

On Tue, Jul 15, 2008 at 9:28 PM, Shalin Shekhar Mangar
<sh...@gmail.com> wrote:
> There's SolrCore#addCloseHook method for this purpose.
>
> On Tue, Jul 15, 2008 at 9:05 PM, Noble Paul നോബിള്‍ नोब्ळ् <
> noble.paul@gmail.com> wrote:
>
>> finalize() is not a very reliable mechanism. We really need a callback
>>
>> On Tue, Jul 15, 2008 at 8:35 PM, Ryan McKinley <ry...@gmail.com> wrote:
>> > what about finalize()?  that should be called just before it is gcd...
>> >
>> >
>> > protected void finalize() throws Throwable
>> > {
>> >  ...
>> >  super.finalize();
>> > }
>> >
>> >
>> >
>> > On Jul 15, 2008, at 8:26 AM, Noble Paul നോബിള്‍ नोब्ळ् wrote:
>> >
>> >> RequestHandlers that need to do some cleanup on shutdown must be be
>> >> given a callback.
>> >>
>> >>
>> >> --
>> >> --Noble Paul
>> >
>> >
>>
>>
>>
>> --
>> --Noble Paul
>>
>
>
>
> --
> Regards,
> Shalin Shekhar Mangar.
>



-- 
--Noble Paul

Re: Request handler needs a shutdown() method

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
There's SolrCore#addCloseHook method for this purpose.

On Tue, Jul 15, 2008 at 9:05 PM, Noble Paul നോബിള്‍ नोब्ळ् <
noble.paul@gmail.com> wrote:

> finalize() is not a very reliable mechanism. We really need a callback
>
> On Tue, Jul 15, 2008 at 8:35 PM, Ryan McKinley <ry...@gmail.com> wrote:
> > what about finalize()?  that should be called just before it is gcd...
> >
> >
> > protected void finalize() throws Throwable
> > {
> >  ...
> >  super.finalize();
> > }
> >
> >
> >
> > On Jul 15, 2008, at 8:26 AM, Noble Paul നോബിള്‍ नोब्ळ् wrote:
> >
> >> RequestHandlers that need to do some cleanup on shutdown must be be
> >> given a callback.
> >>
> >>
> >> --
> >> --Noble Paul
> >
> >
>
>
>
> --
> --Noble Paul
>



-- 
Regards,
Shalin Shekhar Mangar.

Re: Request handler needs a shutdown() method

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@gmail.com>.
finalize() is not a very reliable mechanism. We really need a callback

On Tue, Jul 15, 2008 at 8:35 PM, Ryan McKinley <ry...@gmail.com> wrote:
> what about finalize()?  that should be called just before it is gcd...
>
>
> protected void finalize() throws Throwable
> {
>  ...
>  super.finalize();
> }
>
>
>
> On Jul 15, 2008, at 8:26 AM, Noble Paul നോബിള്‍ नोब्ळ् wrote:
>
>> RequestHandlers that need to do some cleanup on shutdown must be be
>> given a callback.
>>
>>
>> --
>> --Noble Paul
>
>



-- 
--Noble Paul

Re: Request handler needs a shutdown() method

Posted by Ryan McKinley <ry...@gmail.com>.
what about finalize()?  that should be called just before it is gcd...


protected void finalize() throws Throwable
{
   ...
   super.finalize();
}



On Jul 15, 2008, at 8:26 AM, Noble Paul നോബിള്‍  
नोब्ळ् wrote:

> RequestHandlers that need to do some cleanup on shutdown must be be
> given a callback.
>
>
> -- 
> --Noble Paul