diff options
Diffstat (limited to 'src/org/gnunet/statistics/Statistics.java')
-rw-r--r-- | src/org/gnunet/statistics/Statistics.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/org/gnunet/statistics/Statistics.java b/src/org/gnunet/statistics/Statistics.java index 89b91b5..2ef9fa0 100644 --- a/src/org/gnunet/statistics/Statistics.java +++ b/src/org/gnunet/statistics/Statistics.java | |||
@@ -29,8 +29,8 @@ package org.gnunet.statistics; | |||
29 | import org.gnunet.requests.Request; | 29 | import org.gnunet.requests.Request; |
30 | import org.gnunet.requests.RequestQueue; | 30 | import org.gnunet.requests.RequestQueue; |
31 | import org.gnunet.util.*; | 31 | import org.gnunet.util.*; |
32 | import org.gnunet.util.getopt.Option; | 32 | import org.gnunet.util.getopt.Argument; |
33 | import org.gnunet.util.getopt.OptionAction; | 33 | import org.gnunet.util.getopt.ArgumentAction; |
34 | import org.slf4j.Logger; | 34 | import org.slf4j.Logger; |
35 | import org.slf4j.LoggerFactory; | 35 | import org.slf4j.LoggerFactory; |
36 | 36 | ||
@@ -190,7 +190,7 @@ public class Statistics { | |||
190 | } | 190 | } |
191 | 191 | ||
192 | public void transmit(Connection.MessageSink sink) { | 192 | public void transmit(Connection.MessageSink sink) { |
193 | sink.send(new TESTMessage()); | 193 | sink.send(new TestMessage()); |
194 | // todo: disconnect when not receiving the TEST message back after timeout | 194 | // todo: disconnect when not receiving the TEST message back after timeout |
195 | } | 195 | } |
196 | } | 196 | } |
@@ -208,7 +208,7 @@ public class Statistics { | |||
208 | } | 208 | } |
209 | } | 209 | } |
210 | 210 | ||
211 | public void visit(TESTMessage m) { | 211 | public void visit(TestMessage m) { |
212 | client.disconnect(); | 212 | client.disconnect(); |
213 | } | 213 | } |
214 | 214 | ||
@@ -331,28 +331,28 @@ public class Statistics { | |||
331 | */ | 331 | */ |
332 | public static void main(String[] args) { | 332 | public static void main(String[] args) { |
333 | new Program(args) { | 333 | new Program(args) { |
334 | @Option( | 334 | @Argument( |
335 | shortname = "x", | 335 | shortname = "x", |
336 | longname = "set", | 336 | longname = "set", |
337 | action = OptionAction.SET, | 337 | action = ArgumentAction.SET, |
338 | description = "set a value") | 338 | description = "set a value") |
339 | boolean test; | 339 | boolean test; |
340 | @Option( | 340 | @Argument( |
341 | shortname = "w", | 341 | shortname = "w", |
342 | longname = "watch", | 342 | longname = "watch", |
343 | action = OptionAction.SET, | 343 | action = ArgumentAction.SET, |
344 | description = "set a value") | 344 | description = "set a value") |
345 | boolean watch; | 345 | boolean watch; |
346 | @Option( | 346 | @Argument( |
347 | shortname = "n", | 347 | shortname = "n", |
348 | longname = "name", | 348 | longname = "name", |
349 | action = OptionAction.STORE_STRING, | 349 | action = ArgumentAction.STORE_STRING, |
350 | description = "statistics name") | 350 | description = "statistics name") |
351 | String statisticsName = ""; | 351 | String statisticsName = ""; |
352 | @Option( | 352 | @Argument( |
353 | shortname = "s", | 353 | shortname = "s", |
354 | longname = "subsystem", | 354 | longname = "subsystem", |
355 | action = OptionAction.STORE_STRING, | 355 | action = ArgumentAction.STORE_STRING, |
356 | description = "subsystem name") | 356 | description = "subsystem name") |
357 | String subsystemName = ""; | 357 | String subsystemName = ""; |
358 | 358 | ||