JARS top 5%

Horace's Java
Running Strip-Chart Demo


The Gauge version is
also available now!

THIS IS NOT A COUNTER SERVICE - you are welcome to grab a copy of the applet below for non-commercial use on your own data source - but PLEASE don't load this applet from my site into your page - it won't work that way any more anyway. - Thanks!

USAGE NOTE 3-24-98: It looks like some folks have been just letting this demo run for hours and hours and hours ... so I had to add a little code to the applet to limit the length of time it will run for any particular visitor. I've currently set this for @ 15-20 minutes using the current speed parm setting of the several applets on this demo page.

Also, I had to make some changes that will allow me to tell the applet to actually stop so that I can sort of "bump" the applet if too many folks have it running at once.

You might want to remove this code if you grab a copy of the applet source for use on your system.

Estimated Server-Hits Per Hour
(all sites)

( 10 seconds per division )
Estimated Current Number of Visitors
on my site

( 20 seconds per division )

Current Sum of the
Personal, hav.Software and Bonsai
site counters

Other Java Demos & Stuff

Don't forget to drop by and take a look at the other hav.Software Java Stuff - demos and products like chat, live gauges, stripcharts, rolling reports, neural net libraries, etc.

This is just a little demo that illustrates the combined use of JAVA and NeoWebScript to produce running monitor of the current value of one (or more) NeoWebScript Named Counters.

Note on PROXIES

Because this demo needs to access a file on my server in order to obtain new data on a continuous basis - and because the current security model of a Java applet does not allow it to open a URL except on the server from which the applet originated - this demo may not work if you're behind a proxy server.

The applet takes several parameters:

  • dataSource: The URL of the source of data to be displayed. Default: ""

    USAGE NOTE: This demo uses a NeoWebScript as a cgi to deliver data; however, you can use any CGI that delivers a single integer (string) value when called. Arguments to my script include any of the following:

    • the named counter (or counters - each seperated by "&") to be displayed (top center value)
    • "EHPH" - a special value for Estimated Hits Per Hour (top left chart)
    • "CVIS" - a special value for the Estimated Number of Current Visitors around a NeoTracked site (top right chart)

    Named counters are a feature of NeoWebScript and will not make sense for other servers; however, you can use any cgi to deliver new data from whatever source makes sense for your application.

  • bufSize: the number of data elements to be shown on the display Default: 1

  • xStep: the width (in pixels) for each data values' line segments Default: 2

  • ySpace: the tollerance above and below the cur Min/Max Y-Scale values Default: 4

  • speed: the time in SECONDS between data retrieval attempts Default: 5

  • chartHeight: the pixel height of the chart If the chartHeight parameter is "0" then no chart will be plotted and only the counter's digital value will be displayed. (top center) Default: 0 = digital display of one value only

USAGE NOTE: if you place the applet in a table, it may not be able to resize as needed to fit your selections for chart size. To ensure that you will see the applet as intended, consider the following in sizing your applet's width and height attributes:

  • this version uses a font size of 12 for all text
  • applet width will be about 100 + (xStep * bufSize) pixels wide
  • applet height will be about 30 + chartHeight pixels tall


sources for:
the Applet
this HTML page
this demo's data retrieval mechanism

NOTE: if you're not running on a NeoWebScript/Apache server, or if you want to display some other value, then you'll need to write your own cgi or whatever to provide the data to be displayed.

You may also download a copy of the class file for this applet. (if you have trouble with this download link, try right-clicking and saving the link to your disk to get the .class file)

Search the Site
Home
http://www.hav.com/
Find Any or All of

http://www.hav.com/
  
Questions?
Feel free to drop by and chat if you have any questions - one of us is usually around during normal CST/CDT business hours.


hav.Software

Copyright © -1995-2017 by hav.Software. All Rights Reserved.

http://www.hav.com/ havBpNet:J, havFmNet:J, havBpNet++, havFmNet++, havBpETT, havCNet, WebSnarfer, havIndex and havChat are all trademarks of hav.Software.

Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.

There may be other trademarks or tradenames listed in this document to refer to the entities claiming the marks and names or products. hav.Software disclaims any proprietary interest in any trademark, tradename or products other than its own.


hav@hav.com
Modified - 06/02/12 - 31626640 - 6694452