Changeset 5640498f39ed92d4917c04691ad51ab3d17d0674

Show
Ignore:
Timestamp:
11/04/09 23:54:57 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1257378897 +0000
git-parent:

[0500158dc42e74f1ff76353fc2ff80cdb4ee5eb5]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1257378897 +0000
Message:

Regressions that use arbitrary precision math libraries.... step 1, refs #210

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/java/Makefile.in

    rcbf5c89 r5640498  
    3838        com/omniti/reconnoiter/event/StratconQuery.java \ 
    3939        com/omniti/reconnoiter/event/StratconQueryStop.java \ 
     40        com/omniti/reconnoiter/esper/ExactStatViewFactory.java \ 
     41        com/omniti/reconnoiter/esper/ExactBaseBivariateStatisticsView.java \ 
     42        com/omniti/reconnoiter/esper/ExactRegressionLinestView.java \ 
     43        com/omniti/reconnoiter/esper/ExactBaseStatisticsBean.java \ 
     44        com/omniti/reconnoiter/esper/ExactRegressionBean.java \ 
    4045        com/omniti/reconnoiter/IEPEngine.java \ 
    4146        com/omniti/reconnoiter/StratconConfig.java \ 
  • src/java/com/omniti/reconnoiter/IEPEngine.java

    r0335d9d r5640498  
    1616import com.omniti.reconnoiter.StratconConfig; 
    1717import com.espertech.esper.client.*; 
     18import com.omniti.reconnoiter.esper.ExactStatViewFactory; 
    1819import org.apache.log4j.BasicConfigurator; 
    1920 
     
    3031    config.addDatabaseReference("recondb", sconf.getDBConfig()); 
    3132    config.addEventTypeAutoName("com.omniti.reconnoiter.event"); 
     33    config.addPlugInView("noit", "linest", ExactStatViewFactory.class.getName()); 
    3234    EPServiceProvider epService = EPServiceProviderManager.getDefaultProvider(config); 
    3335 
  • src/java/com/omniti/reconnoiter/StratconMessage.java

    r0335d9d r5640498  
    3131  protected String getPrefix() { 
    3232     return null; 
     33  } 
     34 
     35  protected long timeToLong(String time) { 
     36    long ms = 0; 
     37    int off = time.lastIndexOf('.'); 
     38    if(off == -1) return 0; 
     39    try { 
     40      ms = Long.valueOf(time.substring(0,off)).longValue() * 1000; 
     41      ms = ms + Long.valueOf(time.substring(off+1)).longValue(); 
     42    } 
     43    catch (NumberFormatException e) { 
     44      return 0; 
     45    } 
     46    return ms; 
    3347  } 
    3448 
  • src/java/com/omniti/reconnoiter/event/NoitMetricNumeric.java

    r64eeba6 r5640498  
    1414    private String uuid; 
    1515    private String name; 
    16     private Double time; 
     16    private long time; 
    1717    private Double value; 
    1818    private String noit; 
     
    2727      super(parts); 
    2828      noit = parts[1]; 
     29      time = timeToLong(parts[2]); 
    2930      uuid = parts[3]; 
    3031      name = parts[4]; 
    31       try { 
    32         time = Double.valueOf(parts[2]); 
    33       } catch (NumberFormatException nfe) { 
    34         time = null; 
    35       } 
    3632      try { 
    3733        value = Double.valueOf(parts[6]); 
     
    4339 
    4440    public String getUuid() { return uuid; } 
    45     public Double getTime() { return time; } 
     41    public long getTime() { return time; } 
    4642    public String getName() { return name; } 
    4743    public Double getValue() { return value; } 
  • src/java/com/omniti/reconnoiter/event/NoitMetricText.java

    r64eeba6 r5640498  
    55public class NoitMetricText extends StratconMessage { 
    66   String uuid; 
    7    Double time; 
     7   Long time; 
    88   String name; 
    99   String message; 
     
    2222      name = parts[4]; 
    2323      message = parts[6]; 
    24       try { 
    25         time = Double.valueOf(parts[2]); 
    26       } catch (NumberFormatException nfe) { 
    27         time = null; 
    28       } 
     24      time = timeToLong(parts[2]); 
    2925    } 
    3026    public String getUuid() { return uuid; } 
    31     public Double getTime() { return time; } 
     27    public Long getTime() { return time; } 
    3228    public String getName() { return name; } 
    3329    public String getMessage() { return message; } 
  • src/java/com/omniti/reconnoiter/event/NoitStatus.java

    r64eeba6 r5640498  
    66public class NoitStatus  extends StratconMessage { 
    77   String uuid; 
    8    Double time; 
     8   Long time; 
    99   String status; 
    1010   String state; 
     
    2929      duration = Double.parseDouble(parts[6]); 
    3030      status = parts[7]; 
    31       try { 
    32         time = Double.valueOf(parts[2]); 
    33       } catch (NumberFormatException nfe) { 
    34         time = null; 
    35       } 
     31      time = timeToLong(parts[2]); 
    3632   } 
    3733 
    3834    public String getUuid() { return uuid; } 
    39     public Double getTime() { return time; } 
     35    public Long getTime() { return time; } 
    4036    public String getStatus() { return status; } 
    4137    public String getState() { return state; }