Codota Logo
StreamTaskListener.fatalError
Code IndexAdd Codota to your IDE (free)

How to use
fatalError
method
in
hudson.util.StreamTaskListener

Best Java code snippets using hudson.util.StreamTaskListener.fatalError (Showing top 15 results out of 315)

  • Common ways to obtain StreamTaskListener
private void myMethod () {
StreamTaskListener s =
  • Codota IconStreamTaskListener.fromStdout()
  • Codota IconOutputStream out;new StreamTaskListener(out)
  • Codota IconOutputStream out;new StreamTaskListener(out, Charset.defaultCharset())
  • Smart code suggestions by Codota
}
origin: jenkinsci/jenkins

  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");
origin: jenkinsci/jenkins

  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");
origin: org.jenkins-ci.main/jenkins-core

public PrintWriter fatalError(String format, Object... args) {
  return fatalError(String.format(format,args));
}
origin: hudson/hudson-2.x

public PrintWriter fatalError(String format, Object... args) {
  return fatalError(String.format(format,args));
}
origin: org.jvnet.hudson.main/hudson-core

public PrintWriter fatalError(String format, Object... args) {
  return fatalError(String.format(format,args));
}
origin: org.eclipse.hudson.main/hudson-core

public PrintWriter fatalError(String format, Object... args) {
  return fatalError(String.format(format,args));
}
origin: org.eclipse.hudson/hudson-core

public PrintWriter fatalError(String format, Object... args) {
  return fatalError(String.format(format, args));
}
origin: org.eclipse.hudson/hudson-core

  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");
origin: org.eclipse.hudson.main/hudson-core

  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");
origin: jenkinsci/thin-backup-plugin

 @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");
origin: org.jvnet.hudson.main/hudson-core

  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");
origin: hudson/hudson-2.x

  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");
origin: org.jenkins-ci.plugins/metrics

} 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()));
origin: org.jenkins-ci.main/jenkins-core

  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");
origin: org.jenkins-ci.main/jenkins-core

  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");
hudson.utilStreamTaskListenerfatalError

Popular methods of StreamTaskListener

  • <init>
  • fromStdout
  • getLogger
  • closeQuietly
    Closes this listener and swallows any exceptions, if raised.
  • error
  • close
  • _error
  • annotate
  • fromStderr
  • asPath

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ImageIO (javax.imageio)
  • JLabel (javax.swing)
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now