199200201202203204205206207208209
} count.getAndIncrement(); } } catch (Exception e) { LOG.info("about to fail because of " + e); e.printStackTrace(); okstate.set(false); } } }; t.start();
283284285286287288289290291292293
return; } count.getAndIncrement(); } } catch (Exception e) { e.printStackTrace(); okstate.set(false); } } }; t.start();
476477478479480481482483484485486
LOG.error("Error while reading from / write " + "to flume source / sink. Exception follows.", e); workerFailed.set(true); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }; thread.start();
149150151152153154155156157158159
} finally { if (in != null && in.isConnected()) { try { in.close(); } catch (IOException e) { e.printStackTrace(); } } readers.remove(this); } }
358359360361362363364365366367368
714715716717718719720721722723724
try { for (int i = 0; i < ROLLS; i++) { roll.rotate(); } } catch (InterruptedException e) { e.printStackTrace(); } } }; t.start();
156157158159160161162163164165166
try { Event e = q.take(); updateEventProcessingStats(e); return e; } catch (InterruptedException e) { e.printStackTrace(); throw new IOException("Waiting for queue element was interrupted! " + e); } } public static SourceBuilder builder() {
193194195196197198199200201202203
} count.getAndIncrement(); } } catch (Exception e) { System.out.println("about to fail because of " + e); e.printStackTrace(); okstate.set(false); } } }; t.start();
276277278279280281282283284285286
351352353354355356357358359360361