new gwt component - metric date range

John Mazzitelli mazz at redhat.com
Tue Feb 22 22:05:37 UTC 2011


I gwt-ified a new metric date range component. pull master and rebuild 
to see it. you go to the  Measurement>Tables UI page (this is now 
converted from jsf to gwt) and you will see the new preferences-backed 
metric date range component.

We need to start using the metric date range whenever we start querying 
data that we want to filter. We typically want to filter on the date 
range the user has persisted in his preferences.  So, if you need a date 
range, its very easy in the GWT code to get a start and end date (which 
are longs/epoch millis):

MeasurementUserPreferences(UserSessionManager.getUserPreferences()).getMetricRangePreferences().getBeginEndTimes()

You get back a ArrayList<Long> where index #1 is the begin time and 
index #2 is the end time.

BTW: the reason why I did this was all in order to fix a bugzilla on my 
plate - https://bugzilla.redhat.com/show_bug.cgi?id=536401...In the 
measurement table, select one or more metrics, click the "Get Live Data" 
button and up pops a dialog box that contains the live data for all 
those metrics (we actually go out to the agent and collect the data).


More information about the rhq-devel mailing list