/** {@inheritDoc} */ @Override public long sequenceNumber() { return clsLdrId.localId(); }
/** * Gets property seqNum. * * @return Property seqNum. */ 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"); } }
/** * Writes {@link GridUuid} 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, GridUuid 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()); } }
/** * @param uuid {@link GridUuid}. * @return Whether value was fully written. */ public final boolean putGridUuid(@Nullable GridUuid uuid) { byte[] arr = null; if (uuid != null) { arr = new byte[24]; UNSAFE.putLong(arr, BYTE_ARR_OFF, uuid.globalId().getMostSignificantBits()); UNSAFE.putLong(arr, BYTE_ARR_OFF + 8, uuid.globalId().getLeastSignificantBits()); UNSAFE.putLong(arr, BYTE_ARR_OFF + 16, uuid.localId()); } return putByteArray(arr); }
/** * @param arr Array. * @param off Offset. * @param uid UUID. * @return Offset. */ public static long writeGridUuid(byte[] arr, long off, @Nullable GridUuid uid) { UNSAFE.putBoolean(arr, off++, uid != null); if (uid != null) { UNSAFE.putLong(arr, off, uid.globalId().getMostSignificantBits()); off += 8; UNSAFE.putLong(arr, off, uid.globalId().getLeastSignificantBits()); off += 8; UNSAFE.putLong(arr, off, uid.localId()); off += 8; } return off; }
/** * 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 gridUuidToBytes(GridUuid uuid, byte[] out, int off) { assert uuid != null; U.longToBytes(uuid.globalId().getMostSignificantBits(), out, off); U.longToBytes(uuid.globalId().getLeastSignificantBits(), out, off + 8); U.longToBytes(uuid.localId(), out, off + 16); }
", seqNum=" + ldrId.localId() + ", mode=" + mode + ", participants=" + participants + ", locDepOwner=" + locDepOwner + ']');
"task execution [taskName=" + req.getTaskName() + ", taskClsName=" + req.getTaskClassName() + ", codeVer=" + req.getUserVersion() + ", clsLdrId=" + req.getClassLoaderId() + ", seqNum=" + req.getClassLoaderId().localId() + ", depMode=" + req.getDeploymentMode() + ", dep=" + dep + ']');