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


Java U.writeEnum方法代码示例

本文整理汇总了Java中org.apache.ignite.internal.util.typedef.internal.U.writeEnum方法的典型用法代码示例。如果您正苦于以下问题:Java U.writeEnum方法的具体用法?Java U.writeEnum怎么用?Java U.writeEnum使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.ignite.internal.util.typedef.internal.U的用法示例。


在下文中一共展示了U.writeEnum方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    U.writeString(out, igfsName);
    out.writeInt(blockSize);
    out.writeInt(grpSize);
    U.writeString(out, metaCacheName);
    U.writeString(out, dataCacheName);
    U.writeEnum(out, dfltMode);
    out.writeBoolean(fragmentizerEnabled);

    if (pathModes != null) {
        out.writeBoolean(true);

        out.writeInt(pathModes.size());

        for (Map.Entry<String, IgfsMode> pathMode : pathModes.entrySet()) {
            U.writeString(out, pathMode.getKey());
            U.writeEnum(out, pathMode.getValue());
        }
    }
    else
        out.writeBoolean(false);
}
 
开发者ID:apache,项目名称:ignite,代码行数:24,代码来源:IgfsAttributes.java

示例2: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    U.writeString(out, persistenceStorePath);
    out.writeLong(checkpointingFreq);
    out.writeLong(lockWaitTime);
    out.writeLong(checkpointingPageBufSize);
    out.writeInt(checkpointingThreads);
    out.writeInt(walHistSize);
    out.writeInt(walSegments);
    out.writeInt(walSegmentSize);
    U.writeString(out, walStorePath);
    U.writeString(out, walArchivePath);
    out.writeBoolean(metricsEnabled);
    U.writeEnum(out, walMode);
    out.writeInt(tlbSize);
    out.writeLong(walFlushFreq);
    out.writeLong(walFsyncDelay);
    out.writeInt(walRecordIterBuffSize);
    out.writeBoolean(alwaysWriteFullPages);
    out.writeInt(subIntervals);
    out.writeLong(rateTimeInterval);
}
 
开发者ID:apache,项目名称:ignite,代码行数:23,代码来源:VisorPersistentStoreConfiguration.java

示例3: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    U.writeString(out, name);
    U.writeGridUuid(out, dynamicDeploymentId);
    U.writeEnum(out, mode);
    out.writeLong(memorySize);
    out.writeLong(indexesSize);
    out.writeLong(size);
    out.writeInt(nearSize);
    out.writeLong(primarySize);
    out.writeLong(backupSize);
    out.writeInt(partitions);
    out.writeBoolean(near);
    out.writeObject(metrics);
    out.writeBoolean(sys);
}
 
开发者ID:apache,项目名称:ignite,代码行数:17,代码来源:VisorCache.java

示例4: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    U.writeString(out, name);
    U.writeString(out, metaCacheName);
    U.writeString(out, dataCacheName);
    out.writeInt(blockSize);
    out.writeInt(prefetchBlocks);
    out.writeInt(streamBufSize);
    out.writeInt(perNodeBatchSize);
    out.writeInt(perNodeParallelBatchCnt);
    U.writeEnum(out, dfltMode);
    U.writeMap(out, pathModes);
    out.writeLong(maxTaskRangeLen);
    out.writeInt(fragmentizerConcurrentFiles);
    out.writeBoolean(fragmentizerEnabled);
    out.writeLong(fragmentizerThrottlingBlockLen);
    out.writeLong(fragmentizerThrottlingDelay);
    U.writeString(out, ipcEndpointCfg);
    out.writeBoolean(ipcEndpointEnabled);
    out.writeInt(mgmtPort);
    out.writeInt(seqReadsBeforePrefetch);
    out.writeBoolean(colocateMeta);
    out.writeBoolean(relaxedConsistency);
    out.writeBoolean(updateFileLenOnFlush);
}
 
开发者ID:apache,项目名称:ignite,代码行数:26,代码来源:VisorIgfsConfiguration.java

示例5: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    U.writeGridUuid(out, clsLdrId);
    U.writeEnum(out, depMode);
    U.writeString(out, userVer);
    out.writeBoolean(locDepOwner);
    U.writeMap(out, participants);
}
 
开发者ID:apache,项目名称:ignite,代码行数:9,代码来源:GridDeploymentInfoBean.java

示例6: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    U.writeEnum(out, dfltConcurrency);
    U.writeEnum(out, dfltIsolation);
    out.writeLong(dfltTimeout);
    out.writeInt(pessimisticTxLogLinger);
    out.writeInt(pessimisticTxLogSize);
    U.writeString(out, txMgrFactory);
}
 
开发者ID:apache,项目名称:ignite,代码行数:10,代码来源:VisorTransactionConfiguration.java

示例7: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    U.writeString(out, name);
    out.writeLong(initSize);
    out.writeLong(maxSize);
    U.writeString(out, swapFilePath);
    U.writeEnum(out, pageEvictionMode);
    out.writeDouble(evictionThreshold);
    out.writeInt(emptyPagesPoolSize);
}
 
开发者ID:apache,项目名称:ignite,代码行数:11,代码来源:VisorMemoryPolicyConfiguration.java

示例8: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    U.writeEnum(out, plc);
    U.writeString(out, resolvers);
    out.writeLong(checkFreq);
    out.writeBoolean(waitOnStart);
    out.writeBoolean(allResolversPassReq);
    out.writeInt(segResolveAttempts);
}
 
开发者ID:apache,项目名称:ignite,代码行数:10,代码来源:VisorSegmentationConfiguration.java

示例9: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    out.writeLong(id);
    U.writeString(out, qry);
    U.writeEnum(out, qryType);
    U.writeString(out, schemaName);
    out.writeLong(startTime);
    out.writeLong(duration);
    out.writeBoolean(cancellable);
    out.writeBoolean(loc);
}
 
开发者ID:apache,项目名称:ignite,代码行数:12,代码来源:VisorRunningQuery.java

示例10: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    U.writeString(out, igniteInstanceName);
    U.writeString(out, ggHome);
    U.writeString(out, locHost);
    U.writeString(out, marsh);
    U.writeEnum(out, deployMode);
    out.writeObject(clientMode);
    out.writeBoolean(daemon);
    out.writeBoolean(jmxRemote);
    out.writeBoolean(restart);
    out.writeLong(netTimeout);
    U.writeString(out, log);
    out.writeLong(discoStartupDelay);
    U.writeString(out, mBeanSrv);
    out.writeBoolean(noAscii);
    out.writeBoolean(noDiscoOrder);
    out.writeBoolean(noShutdownHook);
    U.writeString(out, progName);
    out.writeBoolean(quiet);
    U.writeString(out, successFile);
    out.writeBoolean(updateNtf);
    out.writeBoolean(activeOnStart);
    U.writeString(out, addrRslvr);
    out.writeBoolean(cacheSanityCheckEnabled);
    U.writeString(out, clsLdr);
    U.writeString(out, consistentId);
    out.writeObject(failureDetectionTimeout);
    U.writeString(out, igniteWorkDir);
    out.writeBoolean(lateAffAssignment);
    out.writeBoolean(marshLocJobs);
    out.writeLong(metricsUpdateFreq);
    out.writeObject(clientFailureDetectionTimeout);
    out.writeInt(sndRetryCnt);
    out.writeLong(sndRetryDelay);
    out.writeInt(timeSrvPortBase);
    out.writeInt(timeSrvPortRange);
    out.writeLong(utilityCacheKeepAliveTime);
}
 
开发者ID:apache,项目名称:ignite,代码行数:40,代码来源:VisorBasicConfiguration.java

示例11: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    U.writeString(out, name);
    U.writeEnum(out, mode);
    out.writeBoolean(sys);
    U.writeMap(out, metrics);
    out.writeObject(minHeapSize);
    out.writeObject(avgHeapSize);
    out.writeObject(maxHeapSize);
    out.writeObject(minOffHeapSize);
    out.writeObject(avgOffHeapSize);
    out.writeObject(maxOffHeapSize);
    out.writeObject(minHits);
    out.writeObject(avgHits);
    out.writeObject(maxHits);
    out.writeObject(minMisses);
    out.writeObject(avgMisses);
    out.writeObject(maxMisses);
    out.writeObject(minReads);
    out.writeObject(avgReads);
    out.writeObject(maxReads);
    out.writeObject(minWrites);
    out.writeObject(avgWrites);
    out.writeObject(maxWrites);
    out.writeObject(minQryTime);
    out.writeObject(avgQryTime);
    out.writeObject(maxQryTime);
    out.writeObject(totalQryTime);
    out.writeObject(execsQry);
    out.writeObject(failsQry);
}
 
开发者ID:apache,项目名称:ignite,代码行数:32,代码来源:VisorCacheAggregatedMetrics.java

示例12: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    U.writeEnum(out, mode);
    out.writeInt(batchSize);
    out.writeLong(partitionedDelay);
    out.writeLong(throttle);
    out.writeLong(timeout);
    out.writeLong(batchesPrefetchCnt);
    out.writeInt(rebalanceOrder);
}
 
开发者ID:apache,项目名称:ignite,代码行数:11,代码来源:VisorCacheRebalanceConfiguration.java

示例13: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    U.writeString(out, cacheName);
    U.writeEnum(out, mode);
    out.writeObject(key);
    out.writeObject(value);
}
 
开发者ID:apache,项目名称:ignite,代码行数:8,代码来源:VisorCacheModifyTaskArg.java

示例14: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    out.writeLong(sysRegionInitSize);
    out.writeLong(sysRegionMaxSize);
    out.writeInt(pageSize);
    out.writeInt(concLvl);
    out.writeObject(dfltDataRegCfg);
    U.writeCollection(out, dataRegCfgs);
    U.writeString(out, storagePath);
    out.writeLong(checkpointFreq);
    out.writeLong(lockWaitTime);
    out.writeLong(0);
    out.writeInt(checkpointThreads);
    U.writeEnum(out, checkpointWriteOrder);
    out.writeInt(walHistSize);
    out.writeInt(walSegments);
    out.writeInt(walSegmentSize);
    U.writeString(out, walPath);
    U.writeString(out, walArchivePath);
    out.writeBoolean(metricsEnabled);
    U.writeEnum(out, walMode);
    out.writeInt(walTlbSize);
    out.writeLong(walFlushFreq);
    out.writeLong(walFsyncDelay);
    out.writeInt(walRecordIterBuffSize);
    out.writeBoolean(alwaysWriteFullPages);
    U.writeString(out, fileIOFactory);
    out.writeInt(metricsSubIntervalCount);
    out.writeLong(metricsRateTimeInterval);
    out.writeLong(walAutoArchiveAfterInactivity);
    out.writeBoolean(writeThrottlingEnabled);
}
 
开发者ID:apache,项目名称:ignite,代码行数:33,代码来源:VisorDataStorageConfiguration.java

示例15: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    U.writeString(out, name);
    out.writeLong(initSize);
    out.writeLong(maxSize);
    U.writeString(out, swapPath);
    U.writeEnum(out, pageEvictionMode);
    out.writeDouble(evictionThreshold);
    out.writeInt(emptyPagesPoolSize);
    out.writeBoolean(metricsEnabled);
    out.writeInt(metricsSubIntervalCount);
    out.writeLong(metricsRateTimeInterval);
    out.writeBoolean(persistenceEnabled);
    out.writeLong(checkpointPageBufSize);
}
 
开发者ID:apache,项目名称:ignite,代码行数:16,代码来源:VisorDataRegionConfiguration.java


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