1 19 20 package org.apache.excalibur.instrument.manager.impl; 21 22 import org.apache.excalibur.instrument.manager.InstrumentDescriptor; 23 import org.apache.excalibur.instrument.manager.InstrumentSampleDescriptor; 24 import org.apache.excalibur.instrument.manager.InstrumentSampleListener; 25 import org.apache.excalibur.instrument.manager.InstrumentSampleSnapshot; 26 27 35 public class InstrumentSampleDescriptorImpl 36 implements InstrumentSampleDescriptor 37 { 38 39 private InstrumentSample m_instrumentSample; 40 41 44 49 InstrumentSampleDescriptorImpl( InstrumentSample InstrumentSample ) 50 { 51 m_instrumentSample = InstrumentSample; 52 } 53 54 57 63 public boolean isConfigured() 64 { 65 return m_instrumentSample.isConfigured(); 66 } 67 68 73 public String getName() 74 { 75 return m_instrumentSample.getName(); 76 } 77 78 83 public long getInterval() 84 { 85 return m_instrumentSample.getInterval(); 86 } 87 88 93 public int getSize() 94 { 95 return m_instrumentSample.getSize(); 96 } 97 98 103 public String getDescription() 104 { 105 return m_instrumentSample.getDescription(); 106 } 107 108 117 public int getType() 118 { 119 return m_instrumentSample.getType(); 120 } 121 122 129 public int getValue() 130 { 131 return m_instrumentSample.getValue(); 132 } 133 134 139 public long getTime() 140 { 141 return m_instrumentSample.getTime(); 142 } 143 144 153 public int getInstrumentType() 154 { 155 return m_instrumentSample.getInstrumentType(); 156 } 157 158 163 public InstrumentDescriptor getInstrumentDescriptor() 164 { 165 return m_instrumentSample.getInstrumentProxy().getDescriptor(); 166 } 167 168 174 public void addInstrumentSampleListener( InstrumentSampleListener listener ) 175 { 176 m_instrumentSample.addInstrumentSampleListener( listener ); 177 } 178 179 185 public void removeInstrumentSampleListener( InstrumentSampleListener listener ) 186 { 187 m_instrumentSample.removeInstrumentSampleListener( listener ); 188 } 189 190 196 public long getLeaseExpirationTime() 197 { 198 return m_instrumentSample.getLeaseExpirationTime(); 199 } 200 201 209 public long extendLease( long lease ) 210 { 211 return m_instrumentSample.extendLease( lease ); 212 } 213 214 219 public InstrumentSampleSnapshot getSnapshot() 220 { 221 return m_instrumentSample.getSnapshot(); 222 } 223 224 233 public int getStateVersion() 234 { 235 return m_instrumentSample.getStateVersion(); 236 } 237 } 238 239 | Popular Tags |