[Q] how to determine selector's connected clients

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Q] how to determine selector's connected clients

ALT Mobile DEV
Hi,


When using embedded Grizzly and Grizzlets, I would like to know are  
there any Comet/parked connections. Even though I am pushing content  
to Comet clients, I always get 0 for the following:


aSelectorThread
.getSelector(aRequest.getServerPort()).getKeepAliveCounter().size()

aSelectorThread
.getSelector
(aRequest.getServerPort()).getKeepAliveStats().getCountConnections()



What's the correct way to determine Comet connections from within a  
Grizzlet?


thanks.


--Zaid

ALT Mobile

http://altmobile.com/Home.html (web site)
http://web.mac.com/altmobile/ (official blog)



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [Q] how to determine selector's connected clients

Jeanfrancois Arcand-2
Hi,

ALT Mobile DEV wrote:

> Hi,
>
>
> When using embedded Grizzly and Grizzlets, I would like to know are
> there any Comet/parked connections. Even though I am pushing content to
> Comet clients, I always get 0 for the following:
>
>
> aSelectorThread.getSelector(aRequest.getServerPort()).getKeepAliveCounter().size()
>
>
> aSelectorThread.getSelector(aRequest.getServerPort()).getKeepAliveStats().getCountConnections()


You should see those when getCountConnections() is invoked. Which
version are you using? I've fixed one issue last week:

https://grizzly.dev.java.net/issues/show_bug.cgi?id=46

Thanks!

-- Jeanfrancois



>
>
>
>
> What's the correct way to determine Comet connections from within a
> Grizzlet?
>
>
> thanks.
>
>
> --Zaid
>
> ALT Mobile
>
> http://altmobile.com/Home.html (web site)
> http://web.mac.com/altmobile/ (official blog)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [Q] how to determine selector's connected clients

ALT Mobile DEV
Hi and thanks for the reply.

I'm using today's build without luck :-(

--Zaid




On Feb 11, 2008, at 4:14 PM, Jeanfrancois Arcand <[hidden email]
 > wrote:

> Hi,
>
> ALT Mobile DEV wrote:
>> Hi,
>> When using embedded Grizzly and Grizzlets, I would like to know are  
>> there any Comet/parked connections. Even though I am pushing  
>> content to Comet clients, I always get 0 for the following:
>> aSelectorThread.getSelector(aRequest.getServerPort
>> ()).getKeepAliveCounter().size() aSelectorThread.getSelector
>> (aRequest.getServerPort()).getKeepAliveStats().getCountConnections()
>
>
> You should see those when getCountConnections() is invoked. Which  
> version are you using? I've fixed one issue last week:
>
> https://grizzly.dev.java.net/issues/show_bug.cgi?id=46
>
> Thanks!
>
> -- Jeanfrancois
>
>
>
>> What's the correct way to determine Comet connections from within a  
>> Grizzlet?
>> thanks.
>> --Zaid
>> ALT Mobile
>> http://altmobile.com/Home.html (web site)
>> http://web.mac.com/altmobile/ (official blog)
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [Q] how to determine selector's connected clients

Jeanfrancois Arcand-2
Salut,

ALT Mobile DEV wrote:
> Hi and thanks for the reply.
>
> I'm using today's build without luck :-(

Can you file an issue just in case my memory get erased :-)

https://grizzly.dev.java.net/issues/


Thanks!

-- Jeanfrancois


>
> --Zaid
>
>
>
>
> On Feb 11, 2008, at 4:14 PM, Jeanfrancois Arcand
> <[hidden email]> wrote:
>
>> Hi,
>>
>> ALT Mobile DEV wrote:
>>> Hi,
>>> When using embedded Grizzly and Grizzlets, I would like to know are
>>> there any Comet/parked connections. Even though I am pushing content
>>> to Comet clients, I always get 0 for the following:
>>> aSelectorThread.getSelector(aRequest.getServerPort()).getKeepAliveCounter().size()
>>> aSelectorThread.getSelector(aRequest.getServerPort()).getKeepAliveStats().getCountConnections()
>>>
>>
>>
>> You should see those when getCountConnections() is invoked. Which
>> version are you using? I've fixed one issue last week:
>>
>> https://grizzly.dev.java.net/issues/show_bug.cgi?id=46
>>
>> Thanks!
>>
>> -- Jeanfrancois
>>
>>
>>
>>> What's the correct way to determine Comet connections from within a
>>> Grizzlet?
>>> thanks.
>>> --Zaid
>>> ALT Mobile
>>> http://altmobile.com/Home.html (web site)
>>> http://web.mac.com/altmobile/ (official blog)
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]