Changeset 64eeba69711481e6fcb2e4c6f753a2048a55ef7a

Show
Ignore:
Timestamp:
11/03/09 04:16:00 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1257221760 +0000
git-parent:

[31d1fe3a93564e5ac8f597ddb63b08f099ec329a]

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

Wow, thanks Dan, that was easy. fixes #208

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/java/com/omniti/reconnoiter/event/NoitMetricNumeric.java

    r0335d9d r64eeba6  
    1414    private String uuid; 
    1515    private String name; 
     16    private Double time; 
    1617    private Double value; 
    1718    private String noit; 
     
    2930      name = parts[4]; 
    3031      try { 
     32        time = Double.valueOf(parts[2]); 
     33      } catch (NumberFormatException nfe) { 
     34        time = null; 
     35      } 
     36      try { 
    3137        value = Double.valueOf(parts[6]); 
    3238      } catch (NumberFormatException nfe) { 
     
    3743 
    3844    public String getUuid() { return uuid; } 
     45    public Double getTime() { return time; } 
    3946    public String getName() { return name; } 
    4047    public Double getValue() { return value; } 
    4148    public String getNoit() { return noit; } 
    4249 
    43   protected int getLength() { 
    44      return 7; 
    45    
     50    protected int getLength() { 
     51        return 7; 
     52   
    4653} 
  • src/java/com/omniti/reconnoiter/event/NoitMetricText.java

    r0335d9d r64eeba6  
    55public class NoitMetricText extends StratconMessage { 
    66   String uuid; 
     7   Double time; 
    78   String name; 
    89   String message; 
     
    1516   'M' REMOTE TIMESTAMP UUID NAME TYPE VALUE 
    1617    */ 
    17    public NoitMetricText(String[] parts) throws Exception { 
     18    public NoitMetricText(String[] parts) throws Exception { 
    1819      super(parts); 
    1920      noit = parts[1]; 
     
    2122      name = parts[4]; 
    2223      message = parts[6]; 
    23  
    24    } 
     24      try { 
     25        time = Double.valueOf(parts[2]); 
     26      } catch (NumberFormatException nfe) { 
     27        time = null; 
     28      } 
     29    } 
    2530    public String getUuid() { return uuid; } 
     31    public Double getTime() { return time; } 
    2632    public String getName() { return name; } 
    2733    public String getMessage() { return message; } 
     
    2935 
    3036 
    31   protected int getLength() { 
    32      return 7; 
    33    
     37    protected int getLength() { 
     38        return 7; 
     39   
    3440} 
  • src/java/com/omniti/reconnoiter/event/NoitStatus.java

    r0335d9d r64eeba6  
    66public class NoitStatus  extends StratconMessage { 
    77   String uuid; 
     8   Double time; 
    89   String status; 
    910   String state; 
     
    2829      duration = Double.parseDouble(parts[6]); 
    2930      status = parts[7]; 
    30  
     31      try { 
     32        time = Double.valueOf(parts[2]); 
     33      } catch (NumberFormatException nfe) { 
     34        time = null; 
     35      } 
    3136   } 
    3237 
    3338    public String getUuid() { return uuid; } 
     39    public Double getTime() { return time; } 
    3440    public String getStatus() { return status; } 
    3541    public String getState() { return state; }