Beispiel #1
0
        @Override
        public void run() {
          int i;
          for (i = 30; i < 1000; i++) {
            try {
              if (i % 10 == 0) {
                Thread.sleep(100);
              }
              ValueListImpl val = new ValueListImpl();
              val.add(new ValueImpl(i));
              kvb.insert(new KeyImpl(i), val);
              kvb.update(new KeyImpl(i), val);

            } catch (KeyAlreadyPresentException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
            } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
            } catch (ServiceNotInitializedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
            } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
            } catch (KeyNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
            }
          }
        }