/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { GridUtils.writeUuid(out, nodeId); CU.writeVersion(out, ver); out.writeLong(timeout); out.writeLong(threadId); out.writeLong(id); out.writeShort(flags()); }
/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(createTime); out.writeLong(readTime); out.writeLong(writeTime); out.writeLong(commitTime); out.writeLong(rollbackTime); out.writeInt(reads); out.writeInt(writes); out.writeInt(hits); out.writeInt(misses); out.writeInt(txCommits); out.writeInt(txRollbacks); }
private void writeTo(ObjectOutput o) throws IOException { o.writeInt(x); o.writeInt(y); o.writeInt(width); o.writeInt(height); o.writeInt(measuredWidth); o.writeInt(measuredHeight); o.writeInt(scrollX); o.writeInt(scrollY); o.writeInt(absoluteX); o.writeInt(absoluteY); o.writeFloat(cameraDistance); o.writeBoolean(visible); o.writeLong(drawingTime); o.writeBoolean(isShown); o.writeBoolean(hasFocus); o.writeBoolean(focusable); o.writeBoolean(hasOnClickListener); o.writeObject(viewType); o.writeObject(textContent); o.writeBoolean(isEditText); o.writeBoolean(isInputMethodTarget); o.writeBoolean(isContainer); o.writeInt(inputMethod); o.writeInt(id); if (children != null) { o.writeInt(children.size()); for (ViewComponentInfo child : children) { child.writeTo(o); } } else { o.writeInt(0); } }
private static void writeOnPrimitive( final ObjectOutput out, final Object obj, final ClassMetadataField metaField) throws IOException { try { final Field field = metaField.getField(); final Class clazz = field.getType(); if (clazz == Integer.TYPE) { out.writeInt(FieldsManager.getFieldsManager().getInt(obj, metaField)); } else if (clazz == Byte.TYPE) { out.writeByte(FieldsManager.getFieldsManager().getByte(obj, metaField)); } else if (clazz == Long.TYPE) { out.writeLong(FieldsManager.getFieldsManager().getLong(obj, metaField)); } else if (clazz == Float.TYPE) { out.writeFloat(FieldsManager.getFieldsManager().getFloat(obj, metaField)); } else if (clazz == Double.TYPE) { out.writeDouble(FieldsManager.getFieldsManager().getDouble(obj, metaField)); } else if (clazz == Short.TYPE) { out.writeShort(FieldsManager.getFieldsManager().getShort(obj, metaField)); } else if (clazz == Character.TYPE) { out.writeChar(field.getChar(obj)); } else if (clazz == Boolean.TYPE) { out.writeBoolean(field.getBoolean(obj)); } else { throw new RuntimeException("Unexpected datatype " + clazz.getName()); } } catch (IllegalAccessException access) { IOException io = new IOException(access.getMessage()); io.initCause(access); throw io; } }
/** {@inheritDoc} */ public void writeExternal(ObjectOutput out) throws IOException { // VERSION out.writeByte(0); // SUPER super.writeExternal(out); // NUMBER OF ENTRIES out.writeInt(_size); // ENTRIES for (int i = _states.length; i-- > 0; ) { if (_states[i] == FULL) { out.writeLong(_set[i]); out.writeLong(_values[i]); } } }
/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeLong(threadId); out.writeBoolean(commit); out.writeBoolean(invalidate); out.writeBoolean(reply); U.writeGridUuid(out, futId); CU.writeVersion(out, commitVer); CU.writeVersion(out, baseVer); U.writeCollection(out, writeEntries); }
/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeLong(topVer); out.writeBoolean(implicitTx); out.writeBoolean(implicitSingleTx); out.writeBoolean(syncCommit); out.writeBoolean(syncRollback); out.writeObject(filterBytes); U.writeArray(out, dhtVers); assert miniId != null; U.writeGridUuid(out, miniId); }
@Override public void writeExternal(ObjectOutput o) throws IOException { o.writeLong(serialVersionUID); writeTo(o); }
/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(ver); out.writeLong(topVer); }
public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(leastSigBits); out.writeLong(mostSigBits); }