/** * Constructs GGFS IPC handler. */ GridGgfsIpcHandler(GridGgfsContext ggfsCtx, boolean mgmt) { assert ggfsCtx != null; this.mgmt = mgmt; ctx = ggfsCtx.kernalContext(); ggfs = ggfsCtx.ggfs(); // Keep buffer size multiple of block size so no extra byte array copies is performed. bufSize = ggfsCtx.configuration().getBlockSize() * 2; log = ctx.log(GridGgfsIpcHandler.class); }
/** * Constructs GGFS IPC handler. */ GridGgfsIpcHandler(GridGgfsContext ggfsCtx, boolean mgmt) { assert ggfsCtx != null; this.mgmt = mgmt; ctx = ggfsCtx.kernalContext(); ggfs = ggfsCtx.ggfs(); // Keep buffer size multiple of block size so no extra byte array copies is performed. bufSize = ggfsCtx.configuration().getBlockSize() * 2; log = ctx.log(GridGgfsIpcHandler.class); }
GridGgfsFileInfo fsInfo = new GridGgfsFileInfo(cfg.getBlockSize(), child.length(), evictExclude(path, false), child.properties());
new GridGgfsFileInfo(ggfsCtx.configuration().getBlockSize(), status.length(), ggfsCtx.ggfs().evictExclude(curPath, false), status.properties());
new GridGgfsFileInfo(ggfsCtx.configuration().getBlockSize(), status.length(), ggfsCtx.ggfs().evictExclude(curPath, false), status.properties());
ggfsCfg.getBlockSize(), ((GridGgfsGroupDataBlocksKeyMapper)affMapper).groupSize(), ggfsCfg.getMetaCacheName(),
ggfsCfg.getBlockSize(), ((GridGgfsGroupDataBlocksKeyMapper)affMapper).groupSize(), ggfsCfg.getMetaCacheName(),
GridGgfsFileInfo fsInfo = new GridGgfsFileInfo(cfg.getBlockSize(), child.length(), evictExclude(path, false), child.properties());
throw new GridGgfsInvalidPathException("Failed to resolve parent directory: " + path); info = new GridGgfsFileInfo(cfg.getBlockSize(), /**affinity key*/null, evictExclude(path, mode == PRIMARY), props);
throw new GridGgfsInvalidPathException("Failed to resolve parent directory: " + path); info = new GridGgfsFileInfo(cfg.getBlockSize(), /**affinity key*/null, evictExclude(path, mode == PRIMARY), props);
GridGgfsFileInfo info = new GridGgfsFileInfo(cfg.getBlockSize(), affKey, evictExclude(path, true), props);
GridGgfsFileInfo info = new GridGgfsFileInfo(cfg.getBlockSize(), affKey, evictExclude(path, true), props);
((GridGgfsGroupDataBlocksKeyMapper)mapper).groupSize() : 1; grpBlockSize = ggfsCtx.configuration().getBlockSize() * grpSize;
((GridGgfsGroupDataBlocksKeyMapper)mapper).groupSize() : 1; grpBlockSize = ggfsCtx.configuration().getBlockSize() * grpSize;
cfg.metaCacheName(ggfs.getMetaCacheName()); cfg.dataCacheName(ggfs.getDataCacheName()); cfg.blockSize(ggfs.getBlockSize()); cfg.prefetchBlocks(ggfs.getPrefetchBlocks()); cfg.streamBufferSize(ggfs.getStreamBufferSize());
blockSize = cfg.getBlockSize(); bufSize = cfg.getStreamBufferSize(); dataCacheName = cfg.getDataCacheName();