dev@glassfish.java.net

Re: v3 monitoring - restart question

From: Prashanth Abbagani <Prashanth.Abbagani_at_Sun.COM>
Date: Sun, 26 Jul 2009 01:34:15 -0700

Well, I believe the MonitoringBootstrap is getting called, but because
of the tests failures in embedded earlier, we are delaying the setting
of StatsProviderManagerDelegateImpl until the event of 'SERVER_READY' is
received. Any register event of StatsProvider will be buffered and will
be executed in the very end when the server actually starts. I believe
this is causing the problem you are facing. I will fix this code to
register the StatsProviderManagerDelegateImpl in the very beginning of
MonitoringBootstrap.

-Prashanth

Jerome Dochez wrote:
> how come emitting events does not automatically force the
> MonitoringBootstrap ? There seem to be a missing dependency (emitting
> events -> monitoring bootstrap) ?
>
> prashanth, Sreeni ?
>
> jerome
>
> On Jul 23, 2009, at 10:36 AM, Jitendra Kotamraju wrote:
>
>> 1. WebServicesContainer registers Deployment109StatsProvider.
>> 2. WebServicesDeployer emits deploy/undeploy probe events
>>
>> When the app server is started with no applications:
>> - MonitoringBootstrap is called which sets up
>> StatsProviderManagerDelegateImpl
>> - when an application is deployed,
>> - WebServicesContainer is called
>> - WebServiceDeployer is called to load the application. During the
>> load, it emits deploy probe event
>>
>> Now, if the appserver is stopped and restarted
>> - WebServicesContainer is called
>> - WebServicesDeployer is called to load the application. During the
>> load, it emits deploy probe event
>> - MonitoringBootstrap is called which sets up
>> StatsProviderManagerDelegateImpl
>>
>> As you can see, that the sequence is different for restart. I think
>> the probe events are lost since StatsProviderManagerDelegateImpl is
>> not even set.
>>
>> Jitu
>>
>> ---------------------------------------------------------------------
>> 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
>