本文整理汇总了Java中org.apache.ignite.internal.util.typedef.internal.U.writeUuid方法的典型用法代码示例。如果您正苦于以下问题:Java U.writeUuid方法的具体用法?Java U.writeUuid怎么用?Java U.writeUuid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.ignite.internal.util.typedef.internal.U
的用法示例。
在下文中一共展示了U.writeUuid方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeUuid(out, submitNodeId);
out.writeObject(jobId);
out.writeObject(jobInfo);
out.writeObject(mrPlan);
out.writeObject(pendingSplits);
out.writeObject(pendingReducers);
out.writeObject(phase);
out.writeObject(failCause);
out.writeLong(ver);
out.writeObject(reducersAddrs);
out.writeObject(counters);
}
示例2: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeUuid(out, id);
U.writeMap(out, attrs);
U.writeCollection(out, addrs);
U.writeCollection(out, hostNames);
out.writeInt(discPort);
// Cluster metrics
byte[] mtr = null;
ClusterMetrics metrics = this.metrics;
if (metrics != null)
mtr = ClusterMetricsSnapshot.serialize(metrics);
U.writeByteArray(out, mtr);
// Cache metrics
Map<Integer, CacheMetrics> cacheMetrics = this.cacheMetrics;
out.writeInt(cacheMetrics == null ? 0 : cacheMetrics.size());
if (!F.isEmpty(cacheMetrics))
for (Map.Entry<Integer, CacheMetrics> m : cacheMetrics.entrySet()) {
out.writeInt(m.getKey());
out.writeObject(m.getValue());
}
out.writeLong(order);
out.writeLong(intOrder);
out.writeObject(ver);
U.writeUuid(out, clientRouterNodeId);
}
示例3: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
out.writeByte(topic.ordinal());
U.writeUuid(out, id1);
U.writeUuid(out, id2);
out.writeLong(id3);
}
示例4: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
super.writeExternal(out);
U.writeUuid(out, nodeId);
U.writeString(out, nodeIp);
out.writeBoolean(includeMetrics);
out.writeBoolean(includeAttrs);
}
示例5: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
out.writeInt(tcpPort);
out.writeInt(0); // Jetty port.
String dfltCacheMode = null;
Map<String, String> cacheMap = null;
if (caches != null) {
cacheMap = U.newHashMap(caches.size());
for (GridClientCacheBean cacheBean : caches) {
if (cacheBean.getName() == null)
dfltCacheMode = cacheBean.getMode().toString();
cacheMap.put(cacheBean.getName(), cacheBean.getMode().toString());
}
}
U.writeString(out, dfltCacheMode);
U.writeMap(out, attrs);
U.writeMap(out, cacheMap);
U.writeCollection(out, tcpAddrs);
U.writeCollection(out, tcpHostNames);
U.writeCollection(out, Collections.emptyList()); // Jetty addresses.
U.writeCollection(out, Collections.emptyList()); // Jetty host names.
U.writeUuid(out, nodeId);
out.writeObject(String.valueOf(consistentId));
out.writeObject(metrics);
out.writeLong(order);
}
示例6: writeExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
out.writeInt(typeId);
U.writeGridUuid(out, id);
U.writeString(out, name);
U.writeUuid(out, nid);
out.writeLong(ts);
U.writeString(out, msg);
U.writeString(out, shortDisplay);
}
示例7: writeExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
U.writeUuid(out, nid);
U.writeString(out, filePath);
out.writeLong(fileSize);
out.writeLong(lastModified);
U.writeCollection(out, lines);
out.writeInt(lineNum);
out.writeInt(lineCnt);
U.writeString(out, encoding);
}
示例8: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeUuid(out, nodeId);
out.writeLong(nodeOrder);
out.writeLong(updateSeq);
U.writeMap(out, this);
}
示例9: writeExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
U.writeUuid(out, resNodeId);
U.writeString(out, qryId);
U.writeCollection(out, cols);
U.writeCollection(out, rows);
out.writeBoolean(hasMore);
out.writeLong(duration);
}
示例10: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeUuid(out, gid);
out.writeLong(locId);
}
示例11: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeUuid(out, nodeId);
out.writeInt(jobId);
}
示例12: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeUuid(out, nodeId);
U.writeCollection(out, items);
U.writeMap(out, clientInfos);
}
示例13: writeExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
U.writeUuid(out, affinityNode);
U.writeString(out, resultType);
out.writeObject(result);
}
示例14: writeExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
U.writeUuid(out, nodeId);
}
示例15: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeUuid(out, nodeId);
out.writeObject(topVer);
out.writeInt(evt);
}