/** * @param ggfs Source GGFS. * @return Data transfer object for given GGFS. * @throws GridException */ public static VisorGgfs from(GridGgfs ggfs) throws GridException { assert ggfs != null; return new VisorGgfs( ggfs.name(), ggfs.configuration().getDefaultMode(), VisorGgfsMetrics.from(ggfs.metrics()), ggfs.configuration().getSecondaryFileSystem() != null ); }
meta = ggfsCtx.meta(); data = ggfsCtx.data(); secondaryFs = cfg.getSecondaryFileSystem();
meta = ggfsCtx.meta(); data = ggfsCtx.data(); secondaryFs = cfg.getSecondaryFileSystem();
assertParameter(cfg.getSecondaryFileSystem() != null, "secondaryFileSystem cannot be null when mode is SECONDARY");
assertParameter(cfg.getSecondaryFileSystem() != null, "secondaryFileSystem cannot be null when mode is SECONDARY");
cfg.perNodeParallelBatchCount(ggfs.getPerNodeParallelBatchCount()); GridGgfsFileSystem secFs = ggfs.getSecondaryFileSystem();
fragmentizerThrottlingBlockLen = cfg.getFragmentizerThrottlingBlockLength(); fragmentizerThrottlingDelay = cfg.getFragmentizerThrottlingDelay(); secondaryFs = cfg.getSecondaryFileSystem(); ipcEndpointCfg = cfg.getIpcEndpointConfiguration(); ipcEndpointEnabled = cfg.isIpcEndpointEnabled();