/** * Gets property seqNum. * * @return Property seqNum. */ long sequenceNumber() { return clsLdrId.localId(); }
/** {@inheritDoc} */ @Override public long sequenceNumber() { return clsLdrId.localId(); }
/** {@inheritDoc} */ @Override public long sequenceNumber() { return clsLdrId.localId(); }
/** {@inheritDoc} */ @Override public String toString() { return S.toString(GridDeploymentMetadata.class, this, "seqNum", clsLdrId != null ? clsLdrId.localId() : "n/a"); } }
/** * Check whether provided ID is trash ID. * * @param id ID. * @return {@code True} if this is trash ID. */ private static boolean isTrashId(IgniteUuid id) { if (id == null) return false; UUID gid = id.globalId(); return id.localId() == 0 && gid.getMostSignificantBits() == 0 && gid.getLeastSignificantBits() > 0 && gid.getLeastSignificantBits() <= TRASH_CONCURRENCY; }
/** * Writes {@link org.apache.ignite.lang.IgniteUuid} to output stream. This method is meant to be used by * implementations of {@link Externalizable} interface. * * @param out Output stream. * @param uid UUID to write. * @throws IOException If write failed. */ public static void writeGridUuid(DataOutput out, IgniteUuid uid) throws IOException { // Write null flag. out.writeBoolean(uid == null); if (uid != null) { out.writeLong(uid.globalId().getMostSignificantBits()); out.writeLong(uid.globalId().getLeastSignificantBits()); out.writeLong(uid.localId()); } }
/** * Converts GridUuid to bytes. * * @param uuid GridUuid to convert. * @param out Output array to write to. * @param off Offset from which to write. */ public static void igniteUuidToBytes(IgniteUuid uuid, byte[] out, int off) { assert uuid != null; longToBytes(uuid.globalId().getMostSignificantBits(), out, off); longToBytes(uuid.globalId().getLeastSignificantBits(), out, off + 8); longToBytes(uuid.localId(), out, off + 16); }
/** * Write {@code IgniteUuid} instance. * * @param out Writer. * @param val Value. */ public static void writeIgniteUuid(BinaryRawWriter out, @Nullable IgniteUuid val) { if (val != null) { out.writeBoolean(true); out.writeLong(val.globalId().getMostSignificantBits()); out.writeLong(val.globalId().getLeastSignificantBits()); out.writeLong(val.localId()); } else out.writeBoolean(false); }
/** * Writes IgniteUuid to a writer. * * @param writer Writer. * @param val Values. */ public static void writeIgniteUuid(BinaryRawWriterEx writer, IgniteUuid val) { if (val == null) writer.writeUuid(null); else { writer.writeUuid(val.globalId()); writer.writeLong(val.localId()); } }
int cnt = perNodeCnt + 1; Random rnd = new Random(srvcId.localId());
/** {@inheritDoc} */ @Override public void writeIgniteUuid(IgniteUuid val) { switch (uuidState) { case 0: writeBoolean(val == null); if (!lastFinished || val == null) return; uuidState++; case 1: writeLong(val.globalId().getMostSignificantBits()); if (!lastFinished) return; uuidState++; case 2: writeLong(val.globalId().getLeastSignificantBits()); if (!lastFinished) return; uuidState++; case 3: writeLong(val.localId()); if (!lastFinished) return; uuidState = 0; } }
", seqNum=" + ldrId.localId() + ", mode=" + mode + ", participants=" + participants + ", locDepOwner=false]");
futId.localId(), key, readThrough,
"task execution [taskName=" + req.getTaskName() + ", taskClsName=" + req.getTaskClassName() + ", codeVer=" + req.getUserVersion() + ", clsLdrId=" + req.getClassLoaderId() + ", seqNum=" + req.getClassLoaderId().localId() + ", depMode=" + req.getDeploymentMode() + ", dep=" + dep + ']');
/** * Gets property seqNum. * * @return Property seqNum. */ long sequenceNumber() { return clsLdrId.localId(); }
/** {@inheritDoc} */ @Override public long sequenceNumber() { return clsLdrId.localId(); }
/** {@inheritDoc} */ @Override public long sequenceNumber() { return clsLdrId.localId(); }
/** * Check whether provided ID is trash ID. * * @param id ID. * @return {@code True} if this is trash ID. */ private static boolean isTrashId(IgniteUuid id) { if (id == null) return false; UUID gid = id.globalId(); return id.localId() == 0 && gid.getMostSignificantBits() == 0 && gid.getLeastSignificantBits() > 0 && gid.getLeastSignificantBits() <= TRASH_CONCURRENCY; }
/** {@inheritDoc} */ @Override public String toString() { return S.toString(GridDeploymentMetadata.class, this, "seqNum", clsLdrId != null ? clsLdrId.localId() : "n/a"); } }