/** {@inheritDoc} */ @Nullable @Override public GridGgfs ggfsx(@Nullable String name) { guard(); try { return ctx.ggfs().ggfs(name); } finally { unguard(); } }
/** {@inheritDoc} */ @Override public GridGgfs ggfs(String name) { guard(); try{ GridGgfs ggfs = ctx.ggfs().ggfs(name); if (ggfs == null) throw new IllegalArgumentException("GGFS is not configured: " + name); return ggfs; } finally { unguard(); } }
/** {@inheritDoc} */ @Override public Collection<GridGgfs> ggfss() { guard(); try { return ctx.ggfs().ggfss(); } finally { unguard(); } }
@Nullable @Override public GridBiTuple<Long, Long> execute() throws GridException { GridGgfs ggfs = ((GridKernal)g).context().ggfs().ggfs(ggfsName); if (ggfs == null) return F.t(0L, 0L); GridGgfsMetrics metrics = ggfs.metrics(); long loc = metrics.localSpaceSize(); return F.t(loc, metrics.maxSpaceSize()); } });
@Nullable @Override public GridBiTuple<Long, Long> execute() throws GridException { GridGgfs ggfs = ((GridKernal)g).context().ggfs().ggfs(ggfsName); if (ggfs == null) return F.t(0L, 0L); GridGgfsMetrics metrics = ggfs.metrics(); long loc = metrics.localSpaceSize(); return F.t(loc, metrics.maxSpaceSize()); } });
/** Collect GGFS. */ private void ggfs(VisorDataCollectorJobResult res) { try { GridGgfsProcessorAdapter ggfsProc = ((GridKernal)g).context().ggfs(); for (GridGgfs ggfs : ggfsProc.ggfss()) { long start0 = U.currentTimeMillis(); try { Collection<GridIpcServerEndpoint> endPoints = ggfsProc.endpoints(ggfs.name()); if (endPoints != null) { for (GridIpcServerEndpoint ep : endPoints) if (ep.isManagement()) res.ggfsEndpoints.add(new VisorGgfsEndpoint(ggfs.name(), g.name(), ep.getHost(), ep.getPort())); } res.ggfss.add(VisorGgfs.from(ggfs)); } finally { if (debug) log(g.log(), "Collected GGFS: " + ggfs.name(), getClass(), start0); } } } catch(Throwable ggfssEx) { res.ggfssEx = ggfssEx; } }
GridGgfsProcessorAdapter ggfsProc = ((GridKernal)grid).context().ggfs();