当前位置: 首页>>代码示例>>Java>>正文


Java U.writeUuid方法代码示例

本文整理汇总了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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:15,代码来源:HadoopJobMetadata.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:35,代码来源:TcpDiscoveryNode.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:8,代码来源:GridTopic.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:12,代码来源:GridClientTopologyRequest.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:38,代码来源:GridClientNodeBean.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:11,代码来源:VisorGridEvent.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:12,代码来源:VisorLogSearchResult.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:10,代码来源:GridDhtPartitionFullMap.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:10,代码来源:VisorQueryResult.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:7,代码来源:IgniteUuid.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:6,代码来源:HadoopJobId.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:7,代码来源:GridContinuousProcessor.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:7,代码来源:VisorCacheModifyTaskResult.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:5,代码来源:VisorNodePingTaskArg.java

示例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);
}
 
开发者ID:apache,项目名称:ignite,代码行数:7,代码来源:GridDhtPartitionExchangeId.java


注:本文中的org.apache.ignite.internal.util.typedef.internal.U.writeUuid方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。