Exemplo n.º 1
0
 /**
  * Delete the key value.
  *
  * @param kv the kv
  */
 private static void deleteKeyValue(final KeyValue kv) {
   try {
     kv.remove();
     kv.flush();
   } catch (Exception e) {
     logger.error("Error deleting old key value: " + e.getMessage());
   }
 }
Exemplo n.º 2
0
 /**
  * Save the key value.
  *
  * @param kv the kv
  */
 private static void saveKeyValue(final KeyValue kv) {
   try {
     kv.merge();
     kv.flush();
   } catch (Exception e) {
     logger.error("Error saving key value: " + e.getMessage(), e);
   }
 }