Skip to content

Commit

Permalink
Minor corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
albertus82 committed May 1, 2015
1 parent 213e022 commit 371f354
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.properties.default
Original file line number Diff line number Diff line change
@@ -1 +1 @@
build.dir=build
build.dir=build
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@
<copy todir="${build.dir}/dist" file="src/routerlogger.cfg" />
</target>

</project>
</project>
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ RouterLogger e' una semplice applicazione console per la registrazione dello sta
E' possibile estendere l'applicazione in modo da farla lavorare con qualsiasi router disponga di un'interfaccia telnet che permetta di recuperare informazioni sullo stato della connessione.
Per farlo, e' sufficiente implementare una classe personalizzata che estenda la classe astratta RouterLogger.

La classe RouterLogger dispone di diversi metodi di utilita' che permettono di interagire agevolmente con il server telnet e che possono comunque essere sovrascritti in caso di necessita'.
La classe RouterLogger dispone di diversi metodi di utilita' che permettono di interagire agevolmente con il server telnet e che possono comunque essere sovrascritti in caso di necessita'.
11 changes: 8 additions & 3 deletions src/it/albertus/router/RouterLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private interface Defaults {
protected final Properties configuration = new Properties();
protected final Properties version = new Properties();

protected final void run() throws Exception {
protected final void run() {
welcome();

boolean exit = false;
Expand All @@ -57,7 +57,12 @@ protected final void run() throws Exception {
if (index > 0) {
final long retryIntervalInMillis = Long.parseLong(configuration.getProperty("logger.retry.interval.ms", Long.toString(Defaults.RETRY_INTERVAL_IN_MILLIS)));
System.out.println("Waiting for reconnection " + index + '/' + retries + " (" + retryIntervalInMillis + " ms)...");
Thread.sleep(retryIntervalInMillis);
try {
Thread.sleep(retryIntervalInMillis);
}
catch (InterruptedException ie) {
throw new RuntimeException(ie);
}
}

// Avvio della procedura...
Expand Down Expand Up @@ -445,4 +450,4 @@ private void welcome() {
*/
protected void release() {}

}
}
2 changes: 1 addition & 1 deletion src/it/albertus/router/Threshold.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@ public String toString() {
return key + ' ' + type + ' ' + value;
}

}
}
4 changes: 2 additions & 2 deletions src/it/albertus/router/tplink/TpLinkLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class TpLinkLogger extends RouterLogger {

private FileWriter logFileWriter = null;

public static void main(String... args) throws Exception {
public static void main(String... args) {
new TpLinkLogger().run();
}

Expand Down Expand Up @@ -149,4 +149,4 @@ protected void release() {
closeOutputFile();
}

}
}
2 changes: 1 addition & 1 deletion src/routerlogger.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ console.show.keys=downstreamNoiseMargin,downstreamCurrRate
#logger.retry.count=3
#logger.retry.interval.ms=60000

#console.animation=true
#console.animation=true
2 changes: 1 addition & 1 deletion src/version.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version.number=1.1.1
version.date=2015-05-01
version.date=2015-05-01

0 comments on commit 371f354

Please sign in to comment.