@Override public FileVisitResult visitFileFailed(Path file, IOException exc) { U.error(null, "file skipped during recursive search - " + file, exc); // Ignoring. return FileVisitResult.CONTINUE; }
/** * Close wrapped input stream in case it was previously opened. */ @Override public void close() { synchronized (mux) { U.closeQuiet(in); } }
/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { U.writeString(out, cacheName); U.writeCollection(out, types); U.writeMap(out, keyClasses); U.writeMap(out, valClasses); U.writeMap(out, fields); U.writeMap(out, indexes); }
/** {@inheritDoc} */ @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException { nodeId = U.readUuid(in); addrs = U.readString(in); userAttrs = U.readMap(in); groups = U.readList(in); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { cacheName = U.readString(in); types = U.readCollection(in); keyClasses = U.readMap(in); valClasses = U.readMap(in); fields = U.readMap(in); indexes = U.readMap(in); }
/** {@inheritDoc} */ @Override public void onDisconnected(GridNioSession ses, @Nullable Exception e) { if (e != null) { if (e instanceof RuntimeException) U.error(log, "Failed to process request from remote client: " + ses, e); else U.warn(log, "Closed client session due to exception [ses=" + ses + ", msg=" + e.getMessage() + ']'); } }
@Override public IgfsCreateResult onFailure(@Nullable Exception err) throws IgniteCheckedException { U.closeQuiet(outT1.get()); U.error(log, "File append in DUAL mode failed [path=" + path + ", bufferSize=" + bufSize + ']', err); throw new IgniteCheckedException("Failed to append to the file due to secondary file " + "system exception: " + path, err); } };
/** * @throws IgniteCheckedException If failed to wait. */ public void awaitStarted() throws IgniteCheckedException { U.await(cacheStartedLatch); }
/** * Update last ring message received timestamp. */ private void ringMessageReceived() { lastRingMsgReceivedTime = U.currentTimeMillis(); }
@Override public Object call() throws Exception { while (restarts) { stopGrid(1); startGrid(1); U.sleep(100); } return null; } });
/** {@inheritDoc} */ @Override protected void addNearKey(KeyCacheObject key, GridDhtCacheEntry.ReaderId[] readers) { if (mappings == null) mappings = U.newHashMap(readers.length); }
/** {@inheritDoc} */ @Override protected void writeExternalData(ObjectOutput out) throws IOException { U.writeString(out, idMapper); U.writeString(out, nameMapper); U.writeString(out, serializer); U.writeCollection(out, typeCfgs); out.writeBoolean(compactFooter); }
/** {@inheritDoc} */ @Override public void close() { U.closeQuiet(writer); U.close(dir, ctx.log(GridLuceneIndex.class)); }
@Nullable @Override public Object call() throws Exception { while (true) { U.sleep(1000); Socket sock = sockRef.get(); if (sock != null) { U.sleep(1000); U.closeQuiet(sock); return null; } } } },
/** {@inheritDoc} */ @Override public void await() { try { initializeLatch(); U.await(internalLatch); } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { oldName = U.readString(in); newName = U.readString(in); }
/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { U.writeString(out, igniteInstanceName); U.writeUuid(out, subjId); out.writeBoolean(ids != null); if (ids != null) out.writeObject(ids); else out.writeObject(p); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { clsLdrId = U.readGridUuid(in); depMode = DeploymentMode.fromOrdinal(in.readByte()); userVer = U.readString(in); locDepOwner = in.readBoolean(); participants = U.readMap(in); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { bytes = U.readByteArray(in); clsName = U.readString(in); depInfo = (GridDeploymentInfo)in.readObject(); } }