public static ScanThreadSpawner Instance() {
if (Instance == null) {
- System.out.println("creating new ScanThreadSpawner ");
+ System.out.println("Creating new ScanThreadSpawner ");
Instance = new ScanThreadSpawner();
}
return Instance;
@SuppressWarnings("static-access")
public void run() {
- System.out.println("start ScanThreadSpawner.......");
+ System.out.println("Start ScanThreadSpawner.......");
while (running) {
// System.out.println("ScanThread alive.......");
try {
boolean response = false;
try {
response = previousSpawner.ping();
- System.out.println("previous spawner is still alive");
+ System.out.println("Previous spawner is still alive");
} catch (Exception e) {
System.out
- .println("the previous spawner is officially dead "
+ .println("The previous spawner is officially dead "
+ e);
}
if (response == false) {
}
}
} catch (Exception e) {
- System.out.println("error in test neighbor: " + e);
+ System.err.println("Error in test neighbor: " + e);
}
}
}