aboutsummaryrefslogtreecommitdiff
path: root/src/Probe.java
diff options
context:
space:
mode:
authorjestin2002-12-30 13:07:11 +0000
committerjestin2002-12-30 13:07:11 +0000
commitacaedb9d66cfab0329c49a9120938143b7c15487 (patch)
treef4f76b8f1f92cf31bb0783a9a1a7eba44758b8cb /src/Probe.java
parente126ac84a2d2415328989d0e084faeda42e303c8 (diff)
downloadivy-java-acaedb9d66cfab0329c49a9120938143b7c15487.zip
ivy-java-acaedb9d66cfab0329c49a9120938143b7c15487.tar.gz
ivy-java-acaedb9d66cfab0329c49a9120938143b7c15487.tar.bz2
ivy-java-acaedb9d66cfab0329c49a9120938143b7c15487.tar.xz
use of the old Vector API and old System.getProperties in order to allow the
classes to be compiled with a 1.1.7A jdk
Diffstat (limited to 'src/Probe.java')
-rw-r--r--src/Probe.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/Probe.java b/src/Probe.java
index 0b8a73e..d560298 100644
--- a/src/Probe.java
+++ b/src/Probe.java
@@ -10,6 +10,10 @@ import gnu.getopt.Getopt;
*
*
* Changelog:
+ * 1.2.2
+ * - changes setProperty to a backward-compatible construct
+ * - now uses the bus.domains(String domain) in order to display the domain
+ * list
* 1.2.1
* - new -t switch to print the date for each ivy message
* - now displays the correct domain list
@@ -51,7 +55,9 @@ class Probe implements IvyApplicationListener, IvyMessageListener, Runnable {
timestamp=true;
break;
case 'd':
- System.setProperty("IVY_DEBUG","yes");
+ Properties sysProp = System.getProperties();
+ sysProp.put("IVY_DEBUG","yes");
+ //System.setProperty("IVY_DEBUG","yes");
break;
case 'h':
default:
@@ -64,12 +70,7 @@ class Probe implements IvyApplicationListener, IvyMessageListener, Runnable {
System.out.println("you want to subscribe to " + args[i]);
bus.bindMsg(args[i],p);
}
- String s = "broadcasting on ";
- Ivy.Domain[] d = bus.parseDomains(domain);
- for (int index=0;index<d.length;index++) {
- s+=d[index].getDomainaddr()+":"+d[index].getPort()+" ";
- }
- System.out.println(s);
+ System.out.println(bus.domains(domain));
bus.start(domain);
p.start(bus);
}