This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 37933 - Status of servers not displayed
Summary: Status of servers not displayed
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2003-12-09 19:14 UTC by Ann Sunhachawee
Modified: 2004-09-14 13:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ann Sunhachawee 2003-12-09 19:14:07 UTC
Using build from 20031207 NB, on Win2K
Runtime Tab> Server Registry

Cannot easily see the running/not running state of
the servers as in the past, when the Running state
was listed next to the server name. Now one has to
 infer from right clicking, and seeing if the
context menu item is "Stop Server" or "Start Server"
Comment 1 Nam Nguyen 2003-12-10 17:07:53 UTC
To accomodate this, an instance need to have attribute 'name' which is
shorter than the URL and more user-friendly.  This attribute is only
used for displaying on the node and on the output tab; the URL is
still the key for all instance references.
Comment 2 Pavel Buzek 2004-01-06 02:15:50 UTC
It should be possible to solve this by custom nodes provided by
plugins that would show shorter name and annotate it with status.
There should be a consistent way -- Ann what should it be? Perhaps:

 http:/localhost:8080/ [running|stopped]
Comment 3 Nam Nguyen 2004-01-06 06:59:27 UTC
I agree that showing status on node name should be server specific
because for some server plugin implementation, pinging for status
could result in bad responsiveness when expanding the parent node. 
Even with caching, first time pinging still slow.  
Should we change this issue to tomcatint's issue now that we have
control from the plugin?
Comment 4 Petr Jiricka 2004-01-06 09:32:22 UTC
Agreed, assigning to Petr P. This is doable by providing instance node
from plugin, which will have this in the display name.
Comment 5 Ann Sunhachawee 2004-01-07 03:11:45 UTC
Some further discussion is needed between Pavel B, Nam, Ludo and
myself on this issue, so please hold off on the changes. The bundled
servers should be consistent in how they show status, and this does
not seem possible given Nam's comment. 
Comment 6 Petr Pisl 2004-02-19 12:53:22 UTC
Is there any result how is should be done?
Comment 7 Nam Nguyen 2004-02-19 16:03:09 UTC
For consistence across platforms, technically I think that we can do
this at the j2eeserver level.  j2eeserver ServerInstance currently has
short-term cache of server status.  The status is refreshed everytime
we actually do the ping to the server.  InstanceTargetXNode is refresh
every time this status change.  We can have it override display name
from plugin not using InstanceProperties.DISPLAY_NAME_ATTR + <status>.

Is non-realtime status acceptable, i.e., case users start/stop for
outside IDE, the status will not change until the next time users do
some activitity that would require a ping to the server?

Another issue is if we go forward with this, should we replace
start/stop with 2 separate actions?
Comment 8 Petr Pisl 2004-09-14 12:59:15 UTC
Fixed
Comment 9 Jiri Skrivanek 2004-09-14 13:04:17 UTC
Verified.