@Override public IgfsHandshakeResponse apply() { igfs.clientLogDirectory(logDir); return new IgfsHandshakeResponse(igfs.name(), igfs.groupBlockSize(), igfs.globalSampling()); } });
private IgfsEntryInfo mkdirsAndGetInfo(String path) throws IgniteCheckedException { IgfsPath p = path(path); mgr.mkdirs(p, IgfsImpl.DFLT_DIR_META); IgniteUuid id = mgr.fileId(p); IgfsEntryInfo info = mgr.info(id); assert info.isDirectory(); return info; }
private IgfsEntryInfo createFileAndGetInfo(String path) throws IgniteCheckedException { IgfsPath p = path(path); IgfsEntryInfo res = mgr.create(p, null, false, 400, null, false, null, null).info(); assert res != null; assert !res.isDirectory(); return res; }
@Override public Object call() throws Exception { map.updateRangeStatus(new IgfsFileAffinityRange(10, 19, affKey2), RANGE_STATUS_MOVING); return null; } }, AssertionError.class, null);
/** {@inheritDoc} */ @Override protected List<IgniteUuid> call0(IgfsContext ctx) throws Exception { IgfsMetaManager meta = ctx.meta(); return meta.idsForPath(path); }
/** {@inheritDoc} */ @Override protected IgfsEntryInfo call0(IgfsContext ctx) throws Exception { IgfsMetaManager meta = ctx.meta(); return meta.infoForPath(path); }
/** {@inheritDoc} */ @Override protected void afterTest() throws Exception { super.afterTest(); stopAllGrids(); }
@Override public Object call() throws Exception { map.updateRangeStatus(new IgfsFileAffinityRange(10, 22, affKey1), RANGE_STATUS_MOVING); return null; } }, AssertionError.class, null);
@Override public Object call() throws Exception { map.updateRangeStatus(new IgfsFileAffinityRange(0, 5, affKey1), RANGE_STATUS_MOVING); return null; } }, IgfsInvalidRangeException.class, null);
@Override public Object call() throws Exception { map.updateRangeStatus(new IgfsFileAffinityRange(15, 19, affKey1), RANGE_STATUS_MOVING); return null; } }, IgfsInvalidRangeException.class, null);