/** {@inheritDoc} */ @Override public long groupBlockSize() { return data.groupBlockSize(); }
/** {@inheritDoc} */ @Override public long groupBlockSize() { return data.groupBlockSize(); }
evictExclude(path, false), child.properties()); files.add(new GridGgfsFileImpl(child.path(), fsInfo, data.groupBlockSize())); data.groupBlockSize())); GridGgfsPath p = new GridGgfsPath(path, e.getKey()); files.add(new GridGgfsFileImpl(p, e.getValue(), data.groupBlockSize()));
return null; return new GridGgfsFileImpl(path, info, data.groupBlockSize()); evts.record(new GridGgfsEvent(path, localNode(), EVT_GGFS_META_UPDATED, props)); return new GridGgfsFileImpl(path, info, data.groupBlockSize());
evictExclude(path, false), child.properties()); files.add(new GridGgfsFileImpl(child.path(), fsInfo, data.groupBlockSize())); data.groupBlockSize())); GridGgfsPath p = new GridGgfsPath(path, e.getKey()); files.add(new GridGgfsFileImpl(p, e.getValue(), data.groupBlockSize()));
return null; return new GridGgfsFileImpl(path, info, data.groupBlockSize()); evts.record(new GridGgfsEvent(path, localNode(), EVT_GGFS_META_UPDATED, props)); return new GridGgfsFileImpl(path, info, data.groupBlockSize());
nodeRanges.addAll(range.split(ggfsCtx.data().groupBlockSize()));
nodeRanges.addAll(range.split(ggfsCtx.data().groupBlockSize()));
/** {@inheritDoc} */ @Override public GridGgfsFile info(GridGgfsPath path) throws GridException { if (enterBusy()) { try { A.notNull(path, "path"); if (log.isDebugEnabled()) log.debug("Get file info: " + path); GridGgfsMode mode = modeRslvr.resolveMode(path); if (mode == PROXY) throw new GridException("PROXY mode cannot be used in GGFS directly: " + path); GridGgfsFileInfo info = resolveFileInfo(path, mode); if (info == null) return null; return new GridGgfsFileImpl(path, info, data.groupBlockSize()); } finally { busyLock.leaveBusy(); } } else throw new IllegalStateException("Failed to get path info because grid is stopping."); }
/** {@inheritDoc} */ @Override public GridGgfsFile info(GridGgfsPath path) throws GridException { if (busyLock.enterBusy()) { try { A.notNull(path, "path"); if (log.isDebugEnabled()) log.debug("Get file info: " + path); GridGgfsMode mode = modeRslvr.resolveMode(path); if (mode == PROXY) throw new GridException("PROXY mode cannot be used in GGFS directly: " + path); GridGgfsFileInfo info = resolveFileInfo(path, mode); if (info == null) return null; return new GridGgfsFileImpl(path, info, data.groupBlockSize()); } finally { busyLock.leaveBusy(); } } else throw new IllegalStateException("Failed to get path info because grid is stopping."); }