public void changed(Watched w) {
if (w.part.equals("host")) {
- Log.warn(this, "/host changed");
+ Log.debug(this, "/host changed");
} else if (w.part.equals("port")) {
- Log.warn(this, "/port changed");
+ Log.debug(this, "/port changed");
} else if (w.getAbsolutePath().startsWith(Root.root + "/LIB/")) {
if (w.lastModifiedAtLastScan != -1) {
Log.error(this, "jinetd upgraded; bouncing the JVM....");
reboot();
}
} else {
- Log.info(this, "unknown directory " + w.part + " changed");
+ Log.debug(this, "unknown directory " + w.part + " changed");
}
}
private static class PortDir extends Watched {
public PortDir(String path) { super(path); }
public Watched slash(String part) {
- String ipaddr = part.indexOf(':') == -1 ? null : part.substring(0, part.indexOf(':'));
- String portnum = part.indexOf(':') == -1 ? part : part.substring(part.indexOf(':') + 1);
+ String ipaddr = part.indexOf('_') == -1 ? null : part.substring(0, part.indexOf('_'));
+ String portnum = part.indexOf('_') == -1 ? part : part.substring(part.indexOf('_') + 1);
try {
return new Port(this.path + File.separatorChar + part,
ipaddr == null ? null : InetAddress.getByName(ipaddr),