View Javadoc

1   package com.google.code.jetm.reporting.ext;
2   
3   import etm.core.monitor.EtmPoint;
4   
5   /**
6    * An implementation of {@link EtmPoint} that does nothing.
7    * 
8    * @author JH016266
9    * 
10   */
11  public class NoOpEtmPoint implements EtmPoint {
12      private String name;
13  
14      /**
15       * Create a no-op ETM point.
16       * 
17       * @param name
18       *            The name of the point.
19       */
20      public NoOpEtmPoint(String name) {
21          this.name = name;
22      }
23  
24      /**
25       * {@inheritDoc}
26       */
27      public void alterName(final String newName) {
28          this.name = newName;
29      }
30  
31      /**
32       * {@inheritDoc}
33       */
34      public void collect() {
35      }
36  
37      /**
38       * {@inheritDoc}
39       */
40      public long getEndTime() {
41          return 0;
42      }
43  
44      /**
45       * {@inheritDoc}
46       */
47      public String getName() {
48          return name;
49      }
50  
51      /**
52       * {@inheritDoc}
53       */
54      public EtmPoint getParent() {
55          return null;
56      }
57  
58      /**
59       * {@inheritDoc}
60       */
61      public long getStartTime() {
62          return 0;
63      }
64  
65      /**
66       * {@inheritDoc}
67       */
68      public long getStartTimeMillis() {
69          return 0;
70      }
71  
72      /**
73       * {@inheritDoc}
74       */
75      public long getTicks() {
76          return 0;
77      }
78  
79      /**
80       * {@inheritDoc}
81       */
82      public double getTransactionTime() {
83          return 0;
84      }
85  }