* before returning. If no thread is running then it returns immediately.\r
*/\r
public void haltWatch() {\r
- if (log.isDebugEnabled())\r
- log.debug("haltWatch on "+watcher.getSubject());\r
// set the flag to skip this watch element.\r
watchForChange=false;\r
+ if (log.isDebugEnabled())\r
+ log.debug("haltWatch on "+watcher.getSubject());\r
endWatch();\r
- // watcher=null;\r
- \r
+ if (log.isDebugEnabled())\r
+ log.debug("haltWatch completed on "+watcher.getSubject());\r
}\r
/**\r
* called by haltWatch before \r
* enablewatch\r
*/\r
protected void enableWatch() {\r
+ if (log.isDebugEnabled())\r
+ log.debug("enableWatch on "+getSubject());\r
watchForChange=true;\r
initWatch();\r
if (log.isDebugEnabled())\r