public void run() { logger.log(getNormalLoggingLevel(), "Started {0}", name); long startTime = System.currentTimeMillis(); long stopTime; StreamTaskListener l = createListener(); try { l.getLogger().printf("Started at %tc%n", new Date(startTime)); ACL.impersonate(ACL.SYSTEM); execute(l); } catch (IOException e) { Functions.printStackTrace(e, l.fatalError(e.getMessage())); } catch (InterruptedException e) { Functions.printStackTrace(e, l.fatalError("aborted")); } finally { stopTime = System.currentTimeMillis(); try { l.getLogger().printf("Finished at %tc. %dms%n", new Date(stopTime), stopTime - startTime); } finally { l.closeQuietly(); } } logger.log(getNormalLoggingLevel(), "Finished {0}. {1,number} ms", new Object[]{name, stopTime - startTime}); } },name+" thread");
public void run() { logger.log(getNormalLoggingLevel(), "Started {0}", name); long startTime = System.currentTimeMillis(); long stopTime; StreamTaskListener l = createListener(); try { l.getLogger().printf("Started at %tc%n", new Date(startTime)); ACL.impersonate(ACL.SYSTEM); execute(l); } catch (IOException e) { Functions.printStackTrace(e, l.fatalError(e.getMessage())); } catch (InterruptedException e) { Functions.printStackTrace(e, l.fatalError("aborted")); } finally { stopTime = System.currentTimeMillis(); try { l.getLogger().printf("Finished at %tc. %dms%n", new Date(stopTime), stopTime - startTime); } finally { l.closeQuietly(); } } logger.log(getNormalLoggingLevel(), "Finished {0}. {1,number} ms", new Object[]{name, stopTime - startTime}); } },name+" thread");
public PrintWriter fatalError(String format, Object... args) { return fatalError(String.format(format,args)); }
public PrintWriter fatalError(String format, Object... args) { return fatalError(String.format(format,args)); }
public PrintWriter fatalError(String format, Object... args) { return fatalError(String.format(format,args)); }
public PrintWriter fatalError(String format, Object... args) { return fatalError(String.format(format,args)); }
public PrintWriter fatalError(String format, Object... args) { return fatalError(String.format(format, args)); }
public void run() { logger.log(Level.INFO, "Started " + name); long startTime = System.currentTimeMillis(); StreamTaskListener l = createListener(); try { HudsonSecurityManager.grantFullControl(); execute(l); } catch (IOException e) { e.printStackTrace(l.fatalError(e.getMessage())); } catch (InterruptedException e) { e.printStackTrace(l.fatalError("aborted")); } finally { l.closeQuietly(); } logger.log(Level.INFO, "Finished " + name + ". " + (System.currentTimeMillis() - startTime) + " ms"); } }, name + " thread");
public void run() { logger.log(Level.INFO, "Started "+name); long startTime = System.currentTimeMillis(); StreamTaskListener l = createListener(); try { SecurityContextHolder.getContext().setAuthentication(ACL.SYSTEM); execute(l); } catch (IOException e) { e.printStackTrace(l.fatalError(e.getMessage())); } catch (InterruptedException e) { e.printStackTrace(l.fatalError("aborted")); } finally { l.closeQuietly(); } logger.log(Level.INFO, "Finished "+name+". "+ (System.currentTimeMillis()-startTime)+" ms"); } },name+" thread");
@Override public void run() { logger.log(Level.FINEST, "Started " + name); final long startTime = System.currentTimeMillis(); final StreamTaskListener l = createListener(); try { SecurityContextHolder.getContext().setAuthentication(ACL.SYSTEM); execute(l); } catch (final IOException e) { e.printStackTrace(l.fatalError(e.getMessage())); } catch (final InterruptedException e) { e.printStackTrace(l.fatalError("aborted")); } finally { l.closeQuietly(); } logger.log(Level.FINEST, "Finished " + name + ". " + (System.currentTimeMillis() - startTime) + " ms"); } }, name + " thread");
public void run() { logger.log(Level.INFO, "Started "+name); long startTime = System.currentTimeMillis(); StreamTaskListener l = createListener(); try { SecurityContextHolder.getContext().setAuthentication(ACL.SYSTEM); execute(l); } catch (IOException e) { e.printStackTrace(l.fatalError(e.getMessage())); } catch (InterruptedException e) { e.printStackTrace(l.fatalError("aborted")); } finally { l.closeQuietly(); } logger.log(Level.INFO, "Finished "+name+". "+ (System.currentTimeMillis()-startTime)+" ms"); } },name+" thread");
public void run() { logger.log(Level.INFO, "Started "+name); long startTime = System.currentTimeMillis(); StreamTaskListener l = createListener(); try { SecurityContextHolder.getContext().setAuthentication(ACL.SYSTEM); execute(l); } catch (IOException e) { e.printStackTrace(l.fatalError(e.getMessage())); } catch (InterruptedException e) { e.printStackTrace(l.fatalError("aborted")); } finally { l.closeQuietly(); } logger.log(Level.INFO, "Finished "+name+". "+ (System.currentTimeMillis()-startTime)+" ms"); } },name+" thread");
} catch (IOException e) { if (l != null) { e.printStackTrace(l.fatalError(e.getMessage())); } else { logger.log(Level.SEVERE, e.printStackTrace(l.fatalError("aborted")); } catch (Exception e) { logger.log(Level.SEVERE, "Error running " + HealthChecker.class.getName(), e); if (l != null) { e.printStackTrace(l.fatalError(e.getMessage()));
public void run() { logger.log(getNormalLoggingLevel(), "Started {0}", name); long startTime = System.currentTimeMillis(); long stopTime; StreamTaskListener l = createListener(); try { l.getLogger().printf("Started at %tc%n", new Date(startTime)); ACL.impersonate(ACL.SYSTEM); execute(l); } catch (IOException e) { Functions.printStackTrace(e, l.fatalError(e.getMessage())); } catch (InterruptedException e) { Functions.printStackTrace(e, l.fatalError("aborted")); } finally { stopTime = System.currentTimeMillis(); try { l.getLogger().printf("Finished at %tc. %dms%n", new Date(stopTime), stopTime - startTime); } finally { l.closeQuietly(); } } logger.log(getNormalLoggingLevel(), "Finished {0}. {1,number} ms", new Object[]{name, stopTime - startTime}); } },name+" thread");
public void run() { logger.log(getNormalLoggingLevel(), "Started {0}", name); long startTime = System.currentTimeMillis(); long stopTime; StreamTaskListener l = createListener(); try { l.getLogger().printf("Started at %tc%n", new Date(startTime)); ACL.impersonate(ACL.SYSTEM); execute(l); } catch (IOException e) { Functions.printStackTrace(e, l.fatalError(e.getMessage())); } catch (InterruptedException e) { Functions.printStackTrace(e, l.fatalError("aborted")); } finally { stopTime = System.currentTimeMillis(); try { l.getLogger().printf("Finished at %tc. %dms%n", new Date(stopTime), stopTime - startTime); } finally { l.closeQuietly(); } } logger.log(getNormalLoggingLevel(), "Finished {0}. {1,number} ms", new Object[]{name, stopTime - startTime}); } },name+" thread");