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


Java U.logger方法代码示例

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


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

示例1: GridCacheQueryFutureAdapter

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * @param cctx Context.
 * @param qry Query.
 * @param loc Local query or not.
 */
protected GridCacheQueryFutureAdapter(GridCacheContext<K, V> cctx, GridCacheQueryBean qry, boolean loc) {
    this.cctx = cctx;
    this.qry = qry;
    this.loc = loc;

    if (log == null)
        log = U.logger(cctx.kernalContext(), logRef, GridCacheQueryFutureAdapter.class);

    startTime = U.currentTimeMillis();

    long timeout = qry.query().timeout();

    if (timeout > 0) {
        endTime = startTime + timeout;

        // Protect against overflow.
        if (endTime < 0)
            endTime = Long.MAX_VALUE;

        cctx.time().addTimeoutObject(this);
    }

    keys = qry.query().enableDedup() ? new HashSet<K>() : null;
}
 
开发者ID:apache,项目名称:ignite,代码行数:30,代码来源:GridCacheQueryFutureAdapter.java

示例2: ClientMetadataRequestFuture

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * @param ctx Context.
 * @param syncMap Map to store futures for ongoing requests.
 */
ClientMetadataRequestFuture(
        GridKernalContext ctx,
        int typeId,
        Map<Integer, ClientMetadataRequestFuture> syncMap
) {
    ioMgr = ctx.io();
    discoMgr = ctx.discovery();
    aliveSrvNodes = new LinkedList<>(discoMgr.aliveServerNodes());

    this.typeId = typeId;
    this.syncMap = syncMap;

    if (log == null)
        log = U.logger(ctx, logRef, ClientMetadataRequestFuture.class);
}
 
开发者ID:apache,项目名称:ignite,代码行数:20,代码来源:ClientMetadataRequestFuture.java

示例3: GridDhtTxFinishFuture

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * @param cctx Context.
 * @param tx Transaction.
 * @param commit Commit flag.
 */
public GridDhtTxFinishFuture(GridCacheSharedContext<K, V> cctx, GridDhtTxLocalAdapter tx, boolean commit) {
    super(F.<IgniteInternalTx>identityReducer(tx));

    this.cctx = cctx;
    this.tx = tx;
    this.commit = commit;

    dhtMap = tx.dhtMap();
    nearMap = tx.nearMap();

    futId = IgniteUuid.randomUuid();

    if (log == null) {
        msgLog = cctx.txFinishMessageLogger();
        log = U.logger(cctx.kernalContext(), logRef, GridDhtTxFinishFuture.class);
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:23,代码来源:GridDhtTxFinishFuture.java

示例4: GridDhtAtomicAbstractUpdateFuture

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * @param cctx Cache context.
 * @param writeVer Write version.
 * @param updateReq Update request.
 */
protected GridDhtAtomicAbstractUpdateFuture(
    GridCacheContext cctx,
    GridCacheVersion writeVer,
    GridNearAtomicAbstractUpdateRequest updateReq
) {
    this.cctx = cctx;

    this.updateReq = updateReq;
    this.writeVer = writeVer;

    futId = cctx.mvcc().nextAtomicId();

    if (log == null) {
        msgLog = cctx.shared().atomicMessageLogger();
        log = U.logger(cctx.kernalContext(), logRef, GridDhtAtomicUpdateFuture.class);
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:23,代码来源:GridDhtAtomicAbstractUpdateFuture.java

示例5: ClientRequestFuture

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * @param ctx Context.
 * @param item Item.
 * @param syncMap Sync map.
 */
ClientRequestFuture(
        GridKernalContext ctx,
        MarshallerMappingItem item,
        Map<MarshallerMappingItem, ClientRequestFuture> syncMap
) {
    ioMgr = ctx.io();
    discoMgr = ctx.discovery();
    aliveSrvNodes = new LinkedList<>(discoMgr.aliveServerNodes());
    this.item = item;
    this.syncMap = syncMap;

    if (log == null)
        log = U.logger(ctx, logRef, ClientRequestFuture.class);
}
 
开发者ID:apache,项目名称:ignite,代码行数:20,代码来源:ClientRequestFuture.java

示例6: IgniteTxAdapter

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * @param cctx Cache registry.
 * @param nodeId Node ID.
 * @param xidVer Transaction ID.
 * @param startVer Start version mark.
 * @param threadId Thread ID.
 * @param sys System transaction flag.
 * @param plc IO policy.
 * @param concurrency Concurrency.
 * @param isolation Isolation.
 * @param timeout Timeout.
 * @param txSize Transaction size.
 */
protected IgniteTxAdapter(
    GridCacheSharedContext<?, ?> cctx,
    UUID nodeId,
    GridCacheVersion xidVer,
    GridCacheVersion startVer,
    long threadId,
    boolean sys,
    byte plc,
    TransactionConcurrency concurrency,
    TransactionIsolation isolation,
    long timeout,
    int txSize,
    @Nullable UUID subjId,
    int taskNameHash
) {
    this.cctx = cctx;
    this.nodeId = nodeId;
    this.threadId = threadId;
    this.xidVer = xidVer;
    this.startVer = startVer;
    this.sys = sys;
    this.plc = plc;
    this.concurrency = concurrency;
    this.isolation = isolation;
    this.timeout = timeout;
    this.txSize = txSize;
    this.subjId = subjId;
    this.taskNameHash = taskNameHash;

    implicit = false;
    loc = false;

    if (log == null)
        log = U.logger(cctx.kernalContext(), logRef, this);

    consistentIdMapper = new ConsistentIdMapper(cctx.discovery());
}
 
开发者ID:apache,项目名称:ignite,代码行数:51,代码来源:IgniteTxAdapter.java

示例7: GridNearTxFinishFuture

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * @param cctx Context.
 * @param tx Transaction.
 * @param commit Commit flag.
 */
public GridNearTxFinishFuture(GridCacheSharedContext<K, V> cctx, GridNearTxLocal tx, boolean commit) {
    super(F.<IgniteInternalTx>identityReducer(tx));

    this.cctx = cctx;
    this.tx = tx;
    this.commit = commit;

    ignoreInterrupts();

    mappings = tx.mappings();

    futId = IgniteUuid.randomUuid();

    CacheWriteSynchronizationMode syncMode;

    if (tx.explicitLock())
        syncMode = FULL_SYNC;
    else
        syncMode = tx.syncMode();

    tx.syncMode(syncMode);

    if (log == null) {
        msgLog = cctx.txFinishMessageLogger();
        log = U.logger(cctx.kernalContext(), logRef, GridNearTxFinishFuture.class);
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:33,代码来源:GridNearTxFinishFuture.java

示例8: GridPartitionedGetFuture

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * @param cctx Context.
 * @param keys Keys.
 * @param readThrough Read through flag.
 * @param forcePrimary If {@code true} then will force network trip to primary node even
 *          if called on backup node.
 * @param subjId Subject ID.
 * @param taskName Task name.
 * @param deserializeBinary Deserialize binary flag.
 * @param recovery Recovery mode flag.
 * @param expiryPlc Expiry policy.
 * @param skipVals Skip values flag.
 * @param needVer If {@code true} returns values as tuples containing value and version.
 * @param keepCacheObjects Keep cache objects flag.
 */
public GridPartitionedGetFuture(
    GridCacheContext<K, V> cctx,
    Collection<KeyCacheObject> keys,
    boolean readThrough,
    boolean forcePrimary,
    @Nullable UUID subjId,
    String taskName,
    boolean deserializeBinary,
    boolean recovery,
    @Nullable IgniteCacheExpiryPolicy expiryPlc,
    boolean skipVals,
    boolean needVer,
    boolean keepCacheObjects
) {
    super(cctx,
        keys,
        readThrough,
        forcePrimary,
        subjId,
        taskName,
        deserializeBinary,
        expiryPlc,
        skipVals,
        needVer,
        keepCacheObjects,
        recovery);

    if (log == null)
        log = U.logger(cctx.kernalContext(), logRef, GridPartitionedGetFuture.class);
}
 
开发者ID:apache,项目名称:ignite,代码行数:46,代码来源:GridPartitionedGetFuture.java

示例9: GridDhtAssignmentFetchFuture

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * @param ctx Context.
 * @param grpId Group ID.
 * @param topVer Topology version.
 * @param discoCache Discovery cache.
 */
public GridDhtAssignmentFetchFuture(
    GridCacheSharedContext ctx,
    int grpId,
    AffinityTopologyVersion topVer,
    DiscoCache discoCache
) {
    this.topVer = topVer;
    this.grpId = grpId;
    this.ctx = ctx;

    id = idGen.getAndIncrement();

    Collection<ClusterNode> availableNodes = discoCache.cacheGroupAffinityNodes(grpId);

    LinkedList<ClusterNode> tmp = new LinkedList<>();

    for (ClusterNode node : availableNodes) {
        if (!node.isLocal() && ctx.discovery().alive(node))
            tmp.add(node);
    }

    Collections.sort(tmp, NodeOrderComparator.getInstance());

    this.availableNodes = tmp;

    if (log == null)
        log = U.logger(ctx.kernalContext(), logRef, GridDhtAssignmentFetchFuture.class);
}
 
开发者ID:apache,项目名称:ignite,代码行数:35,代码来源:GridDhtAssignmentFetchFuture.java

示例10: GridCacheMultiTxFuture

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * @param cctx Cache context.
 */
public GridCacheMultiTxFuture(GridCacheContext<K, V> cctx) {
    if (log == null)
        log = U.logger(cctx.kernalContext(), logRef, GridCacheMultiTxFuture.class);
}
 
开发者ID:apache,项目名称:ignite,代码行数:8,代码来源:GridCacheMultiTxFuture.java

示例11: GridNearAtomicAbstractUpdateFuture

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Constructor.
 *
 * @param cctx Cache context.
 * @param cache Cache.
 * @param syncMode Synchronization mode.
 * @param op Operation.
 * @param invokeArgs Invoke arguments.
 * @param retval Return value flag.
 * @param rawRetval Raw return value flag.
 * @param expiryPlc Expiry policy.
 * @param filter Filter.
 * @param subjId Subject ID.
 * @param taskNameHash Task name hash.
 * @param skipStore Skip store flag.
 * @param keepBinary Keep binary flag.
 * @param recovery {@code True} if cache operation is called in recovery mode.
 * @param remapCnt Remap count.
 */
protected GridNearAtomicAbstractUpdateFuture(
    GridCacheContext cctx,
    GridDhtAtomicCache cache,
    CacheWriteSynchronizationMode syncMode,
    GridCacheOperation op,
    @Nullable Object[] invokeArgs,
    boolean retval,
    boolean rawRetval,
    @Nullable ExpiryPolicy expiryPlc,
    CacheEntryPredicate[] filter,
    UUID subjId,
    int taskNameHash,
    boolean skipStore,
    boolean keepBinary,
    boolean recovery,
    int remapCnt
) {
    if (log == null) {
        msgLog = cctx.shared().atomicMessageLogger();
        log = U.logger(cctx.kernalContext(), logRef, GridFutureAdapter.class);
    }

    this.cctx = cctx;
    this.cache = cache;
    this.syncMode = syncMode;
    this.op = op;
    this.invokeArgs = invokeArgs;
    this.retval = retval;
    this.rawRetval = rawRetval;
    this.expiryPlc = expiryPlc;
    this.filter = filter;
    this.subjId = subjId;
    this.taskNameHash = taskNameHash;
    this.skipStore = skipStore;
    this.keepBinary = keepBinary;
    this.recovery = recovery;

    nearEnabled = CU.isNearEnabled(cctx);

    this.remapCnt = remapCnt;
}
 
开发者ID:apache,项目名称:ignite,代码行数:61,代码来源:GridNearAtomicAbstractUpdateFuture.java


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