Esempio n. 1
0
 public synchronized void watch(String table, int h, Map<String, Object> options) {
   logger.info("Starting to watch " + table + " handle = " + h + " with options: " + options);
   boolean found = false;
   try {
     for (Observer o : observers) found |= o.watch(this, h, table, options);
     if (!found) {
       sendError("there is no table " + table);
       return;
     }
   } catch (Exception ex) {
     sendError(ex.getMessage());
   }
   /*
   try {
   	DefaultValue value = proc.interestedIn(this, options);
   	Handle handle = value.handle;
   	handles.put(h, handle);
   	rhandles.put(handle, h);
   	if (value.table != null)
   		deliver(handle, value.table);
   } catch (Exception ex) {
   	ex.printStackTrace();
   	sendError(ex.getMessage());
   }
   */
 }