/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** * Sets both values in the tuple. * * @param val1 First value. * @param val2 Second value. */ public void set(@Nullable V1 val1, @Nullable V2 val2) { set1(val1); set2(val2); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<String, Object> t = stash.get(); t.set1(U.readString(in)); t.set2(in.readObject()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<String, GridCacheContext> t = stash.get(); t.set1(U.readString(in)); t.set2((GridCacheContext)in.readObject()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<String, String> t = stash.get(); t.set1(U.readString(in)); t.set2(U.readString(in)); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<String, String> t = stash.get(); t.set1(U.readString(in)); t.set2(U.readString(in)); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<String, Object> t = stash.get(); t.set1(U.readString(in)); t.set2(in.readObject()); }
tup = new IgniteBiTuple<>(); tup.set1(cls);
/** * Calculates indexes of WAL segments covered by last checkpoint. * * @return list of indexes or empty list if there are no checkpoints. */ private IgniteBiTuple<Long, Long> calculateWalSegmentsCovered() { IgniteBiTuple<Long, Long> tup = new IgniteBiTuple<>(-1L, -1L); Map.Entry<Long, CheckpointEntry> lastEntry = histMap.lastEntry(); if (lastEntry == null) return tup; Map.Entry<Long, CheckpointEntry> previousEntry = histMap.lowerEntry(lastEntry.getKey()); WALPointer lastWALPointer = lastEntry.getValue().checkpointMark(); long lastIdx = 0; long prevIdx = 0; if (lastWALPointer instanceof FileWALPointer) { lastIdx = ((FileWALPointer)lastWALPointer).index(); if (previousEntry != null) prevIdx = ((FileWALPointer)previousEntry.getValue().checkpointMark()).index(); } tup.set1(prevIdx); tup.set2(lastIdx - 1); return tup; }
weightedTop.set1(true);
@Override public void onEvent(Event evt) { assert evt instanceof TaskEvent || evt instanceof JobEvent; if (evt.type() == EVT_TASK_FINISHED || evt.type() == EVT_TASK_FAILED) { IgniteUuid sesId = ((TaskEvent)evt).taskSessionId(); taskTops.remove(sesId); if (log.isDebugEnabled()) log.debug("Removed task topology from topology cache for session: " + sesId); } // We should keep topology and use cache in ComputeTask#map() method to // avoid O(n*n/2) complexity, after that we can drop caches. // Here we set mapped property and later cache will be ignored else if (evt.type() == EVT_JOB_MAPPED) { IgniteUuid sesId = ((JobEvent)evt).taskSessionId(); IgniteBiTuple<Boolean, WeightedTopology> weightedTop = taskTops.get(sesId); if (weightedTop != null) weightedTop.set1(true); if (log.isDebugEnabled()) log.debug("Job has been mapped. Ignore cache for session: " + sesId); } } },
t.set1("Timed out waiting for task result (consider increasing 'networkTimeout' " + "configuration property) [resHolderId=" + resHolderId + ", netTimeout=" + netTimeout + ']');
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** {@inheritDoc} */ @SuppressWarnings({"MismatchedQueryAndUpdateOfCollection"}) @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<String, String> t = stash.get(); t.set1(U.readString(in)); t.set2(U.readString(in)); }