Examples of ProfilingException


Examples of org.apache.flink.runtime.profiling.ProfilingException

  private long extractMemoryValue(String line) throws ProfilingException {

    final Matcher matcher = MEMORY_PATTERN.matcher(line);
    if (!matcher.matches()) {
      throw new ProfilingException("Cannot extract memory data for profiling from line " + line);
    }

    return Long.parseLong(matcher.group(1));
  }
View Full Code Here

Examples of org.apache.flink.runtime.profiling.ProfilingException

      // Store values for next call
      this.lastReceivedBytes = receivedSum;
      this.lastTramsmittedBytes = transmittedSum;

    } catch (IOException ioe) {
      throw new ProfilingException("Error while reading network utilization: "
        + StringUtils.stringifyException(ioe));
    } catch (NumberFormatException nfe) {
      throw new ProfilingException("Error while reading network utilization: "
        + StringUtils.stringifyException(nfe));
    } finally {
      if (in != null) {
        try {
          in.close();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.