/** {@inheritDoc} */ @Override public void debug(String msg) { log.trace(msg); } };
/** * Logs out trace message. * The default implementation calls {@code this.trace(msg)}. * * @param marker Name of the marker to be associated with the message. * @param msg Trace message. */ default void trace(@Nullable String marker, String msg) { trace(msg); }
/** {@inheritDoc} */ @Override public void trace(String msg) { impl.trace(enrich(msg)); }
/** {@inheritDoc} */ @Override public void trace(@Nullable String marker, String msg) { impl.trace(marker, enrich(msg)); }
/** {@inheritDoc} */ @Override public void trace(String msg) { log.trace(format(msg)); }
/** {@inheritDoc} */ @Override public void trace(String msg) { if (!dbg) return; if (echo != null) echo.trace(msg); applyListeners(msg); }
/** * Removes value from offheap space for the given key. * * @param spaceName Space name. * @param part Partition. * @param key Key. * @param keyBytes Key bytes. * @return Value bytes. * @throws IgniteCheckedException If failed. */ @Nullable public byte[] remove(@Nullable String spaceName, int part, KeyCacheObject key, byte[] keyBytes) throws IgniteCheckedException { GridOffHeapPartitionedMap m = offheap(spaceName); if (log.isTraceEnabled()) log.trace("offheap remove [key=" + key + ']'); return m == null ? null : m.remove(part, U.hash(key), keyBytes(key, keyBytes)); }
/** * Removes value from offheap space for the given key. * * @param spaceName Space name. * @param part Partition. * @param key Key. * @param keyBytes Key bytes. * @return {@code true} If succeeded. * @throws IgniteCheckedException If failed. */ public boolean removex(@Nullable String spaceName, int part, KeyCacheObject key, byte[] keyBytes) throws IgniteCheckedException { GridOffHeapPartitionedMap m = offheap(spaceName); if (log.isTraceEnabled()) log.trace("offheap removex [key=" + key + ']'); return m != null && m.removex(part, U.hash(key), keyBytes(key, keyBytes)); }
/** * Removes value from offheap space for the given key. * * @param spaceName Space name. * @param part Partition. * @param key Key. * @param keyBytes Key bytes. * @param p Value predicate (arguments are value address and value length). * @return {@code true} If succeeded. * @throws IgniteCheckedException If failed. */ public boolean removex(@Nullable String spaceName, int part, KeyCacheObject key, byte[] keyBytes, IgniteBiPredicate<Long, Integer> p) throws IgniteCheckedException { GridOffHeapPartitionedMap m = offheap(spaceName); if (log.isTraceEnabled()) log.trace("offheap removex [key=" + key + ']'); return m != null && m.removex(part, U.hash(key), keyBytes(key, keyBytes), p); }
/** * Adds ordered message handler. * * @param cctx Context. * @param cacheGrp {@code True} if cache group message, {@code false} if cache message. * @param topic Topic. * @param c Handler. */ private void addOrderedHandler(GridCacheSharedContext cctx, boolean cacheGrp, Object topic, IgniteBiInClosure<UUID, ? extends GridCacheMessage> c) { MessageHandlers msgHandlers = cacheGrp ? grpHandlers : cacheHandlers; IgniteLogger log0 = log; if (msgHandlers.orderedHandlers.putIfAbsent(topic, c) == null) { cctx.gridIO().addMessageListener(topic, new OrderedMessageListener( (IgniteBiInClosure<UUID, GridCacheMessage>)c)); if (log0 != null && log0.isTraceEnabled()) log0.trace("Registered ordered cache communication handler [topic=" + topic + ", handler=" + c + ']'); } else if (log0 != null) U.warn(log0, "Failed to register ordered cache communication handler because it is already " + "registered for this topic [topic=" + topic + ", handler=" + c + ']'); }
/** * Puts the given value to offheap space for the given key. * * @param spaceName Space name. * @param part Partition. * @param key Key. * @param keyBytes Key bytes. * @param valBytes Value bytes. * @throws IgniteCheckedException If failed. */ public void put(@Nullable String spaceName, int part, KeyCacheObject key, byte[] keyBytes, byte[] valBytes) throws IgniteCheckedException { GridOffHeapPartitionedMap m = offheap(spaceName); if (m == null) throw new IgniteCheckedException("Failed to write data to off-heap space, no space registered for name: " + spaceName); if (log.isTraceEnabled()) log.trace("offheap put [key=" + key + ']'); m.put(part, U.hash(key), keyBytes(key, keyBytes), valBytes); }
log.trace("Sending message to Hadoop process [desc=" + desc + ", msg=" + msg + ']');
/** * Implements the {@link MqttCallback#messageArrived(String, MqttMessage)} to receive an MQTT message. * * {@inheritDoc} */ @Override public void messageArrived(String topic, MqttMessage message) throws Exception { if (getMultipleTupleExtractor() != null) { Map<K, V> entries = getMultipleTupleExtractor().extract(message); if (log.isTraceEnabled()) log.trace("Adding cache entries: " + entries); getStreamer().addData(entries); } else { Map.Entry<K, V> entry = getSingleTupleExtractor().extract(message); if (log.isTraceEnabled()) log.trace("Adding cache entry: " + entry); getStreamer().addData(entry); } }
/** * Initializes affinity with given topology version and assignment. * * @param topVer Topology version. * @param affAssignment Affinity assignment for topology version. */ public void initialize(AffinityTopologyVersion topVer, List<List<ClusterNode>> affAssignment) { assert topVer.compareTo(lastVersion()) >= 0 : "[topVer = " + topVer + ", last=" + lastVersion() + ']'; assert idealAssignment != null; GridAffinityAssignmentV2 assignment = new GridAffinityAssignmentV2(topVer, affAssignment, idealAssignment); HistoryAffinityAssignment hAff = affCache.put(topVer, new HistoryAffinityAssignment(assignment)); head.set(assignment); for (Map.Entry<AffinityTopologyVersion, AffinityReadyFuture> entry : readyFuts.entrySet()) { if (entry.getKey().compareTo(topVer) <= 0) { if (log.isDebugEnabled()) log.debug("Completing topology ready future (initialized affinity) " + "[locNodeId=" + ctx.localNodeId() + ", futVer=" + entry.getKey() + ", topVer=" + topVer + ']'); entry.getValue().onDone(topVer); } } // In case if value was replaced there is no sense to clean the history. if (hAff == null) onHistoryAdded(); if (log.isTraceEnabled()) { log.trace("New affinity assignment [grp=" + cacheOrGrpName + ", topVer=" + topVer + ", aff=" + fold(affAssignment) + "]"); } }
log.trace("markObsolete0 [key=" + key + ", entry=" + System.identityHashCode(this) + ", clear=" + clear +
&& lastInitializedFut0.changedAffinity()) { if (log.isTraceEnabled()) log.trace("Return lastInitializedFut for topology ready future " + "[ver=" + ver + ", fut=" + lastInitializedFut0 + ']'); log.trace("Return finished future for topology ready future [ver=" + ver + ", topVer=" + topVer + ']'); log.trace("Completing created topology ready future " + "[ver=" + topVer + ", topVer=" + topVer + ", fut=" + fut + ']');
@Override public void applyx(GridCacheEntryEx entry, GridCacheVersion obsoleteVer) { boolean touch = !entry.isNear(); while (true) { try { if (log.isTraceEnabled()) log.trace("Trying to remove expired entry from cache: " + entry); if (entry.onTtlExpired(obsoleteVer)) touch = false; break; } catch (GridCacheEntryRemovedException ignore) { entry = entry.context().cache().entryEx(entry.key()); touch = true; } } if (touch) entry.touch(); } };
log.trace("Sending local partitions [nodeId=" + node.id() + ", msg=" + m + ']');
log.trace(message); break; case PlatformLogger.LVL_DEBUG: