/** {@inheritDoc} */ @Override protected Void run(Set<String> ggfsNames) throws GridException { for (String ggfsName: ggfsNames) try { g.ggfs(ggfsName).resetMetrics(); } catch (IllegalArgumentException iae) { throw new GridException("Failed to reset metrics for GGFS: " + ggfsName, iae); } return null; }
/** {@inheritDoc} */ @Override protected Collection<VisorGgfsProfilerEntry> run(String arg) throws GridException { try { Path logsDir = resolveGgfsProfilerLogsDir(g.ggfs(arg)); if (logsDir != null) return parse(logsDir, arg); else return Collections.emptyList(); } catch (IOException | IllegalArgumentException e) { throw new GridException("Failed to parse profiler logs for GGFS: " + arg, e); } }
/** {@inheritDoc} */ @Override protected Collection<VisorGgfsProfilerEntry> run(String arg) throws GridException { try { Path logsDir = resolveGgfsProfilerLogsDir(g.ggfs(arg)); if (logsDir != null) return parse(logsDir, arg); else return Collections.emptyList(); } catch (IOException | IllegalArgumentException e) { throw new GridException("Failed to parse profiler logs for GGFS: " + arg, e); } }
/** {@inheritDoc} */ @Override protected Void run(String ggfsName) throws GridException { try { g.ggfs(ggfsName).format().get(); } catch (IllegalArgumentException iae) { throw new GridException("Failed to format GGFS: " + ggfsName, iae); } return null; }
GridGgfs ggfs = g.ggfs(arg);
GridGgfs ggfs = g.ggfs(arg);
/** {@inheritDoc} */ @Override protected Void run(GridBiTuple<String, Boolean> arg) throws GridException { try { ((GridGgfsEx) g.ggfs(arg.get1())).globalSampling(arg.get2()); return null; } catch (IllegalArgumentException iae) { throw new GridException("Failed to set sampling state for GGFS: " + arg.get1(), iae); } }
/** {@inheritDoc} */ @Override protected Void run(GridBiTuple<String, Boolean> arg) throws GridException { try { ((GridGgfsEx) g.ggfs(arg.get1())).globalSampling(arg.get2()); return null; } catch (IllegalArgumentException iae) { throw new GridException("Failed to set sampling state for GGFS: " + arg.get1(), iae); } }