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


Java U.withCause方法代码示例

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


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

示例1: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
private Object readResolve() throws ObjectStreamException {
    try {
        IgniteBiTuple<GridKernalContext, String> t = stash.get();

        IgniteSemaphore sem = IgnitionEx.localIgnite().context().dataStructures().semaphore(
            t.get2(),
            null,
            0,
            false,
            false);

        if (sem == null)
            throw new IllegalStateException("Semaphore was not found on deserialization: " + t.get2());

        return sem;
    }
    catch (IgniteCheckedException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
    finally {
        stash.remove();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:30,代码来源:GridCacheSemaphoreImpl.java

示例2: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
protected Object readResolve() throws ObjectStreamException {
    try {
        IgniteBiTuple<String, String> t = stash.get();

        IgniteKernal grid = IgnitionEx.localIgnite();

        GridCacheAdapter<K, V> cache = grid.internalCache(t.get2());

        if (cache == null)
            throw new IllegalStateException("Failed to find cache for name: " + t.get2());

        return cache.context();
    }
    catch (IllegalStateException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
    finally {
        stash.remove();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:27,代码来源:GridCacheContext.java

示例3: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
protected Object readResolve() throws ObjectStreamException {
    try {
        IgniteBiTuple<String, Object> t = stash.get();

        Object ctgrR = t.get2();

        IgniteLogger log = IgnitionEx.localIgnite().log();

        return ctgrR != null ? log.getLogger(ctgrR) : log;
    }
    catch (IllegalStateException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
    finally {
        stash.remove();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:24,代码来源:GridLoggerProxy.java

示例4: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
private Object readResolve() throws ObjectStreamException {
    try {
        IgniteBiTuple<GridKernalContext, String> t = stash.get();

        return t.get1().dataStructures().sequence(t.get2(), null, 0L, false);
    }
    catch (IgniteCheckedException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
    finally {
        stash.remove();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:20,代码来源:GridCacheAtomicSequenceImpl.java

示例5: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
@SuppressWarnings("unchecked")
private Object readResolve() throws ObjectStreamException {
    try {
        IgniteBiTuple<GridKernalContext, String> t = stash.get();

        return t.get1().dataStructures().atomicStamped(t.get2(), null, null, null, false);
    }
    catch (IgniteCheckedException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
    finally {
        stash.remove();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:21,代码来源:GridCacheAtomicStampedImpl.java

示例6: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
protected Object readResolve() throws ObjectStreamException {
    try {
        T3<GridKernalContext, String, String> t = stash.get();

        return t.get1().dataStructures().set(t.get2(), t.get3(), null);
    }
    catch (IgniteCheckedException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
    finally {
        stash.remove();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:20,代码来源:GridCacheSetProxy.java

示例7: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
protected Object readResolve() throws ObjectStreamException {
    try {
        T3<GridKernalContext, String, String> t = stash.get();

        return t.get1().dataStructures().queue(t.get2(), t.get3(), 0, null);
    }
    catch (IgniteCheckedException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
    finally {
        stash.remove();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:20,代码来源:GridCacheQueueProxy.java

示例8: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
private Object readResolve() throws ObjectStreamException {
    try {
        IgniteBiTuple<GridKernalContext, String> t = stash.get();

        return t.get1().dataStructures().atomicLong(t.get2(), null, 0L, false);
    }
    catch (IgniteCheckedException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
    finally {
        stash.remove();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:20,代码来源:GridCacheAtomicLongImpl.java

示例9: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
@SuppressWarnings("unchecked")
private Object readResolve() throws ObjectStreamException {
    try {
        IgniteBiTuple<GridKernalContext, String> t = stash.get();

        return t.get1().dataStructures().atomicReference(t.get2(), null, null, false);
    }
    catch (IgniteCheckedException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
    finally {
        stash.remove();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:21,代码来源:GridCacheAtomicReferenceImpl.java

示例10: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
@SuppressWarnings({"ConstantConditions"})
private Object readResolve() throws ObjectStreamException {
    try {
        IgniteBiTuple<GridKernalContext, String> t = stash.get();

        return t.get1().dataStructures().countDownLatch(t.get2(), null, 0, false, false);
    }
    catch (IgniteCheckedException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
    finally {
        stash.remove();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:21,代码来源:GridCacheCountDownLatchImpl.java

示例11: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
protected Object readResolve() throws ObjectStreamException {
    try {
        IgniteBiTuple<String, GridCacheContext> t = stash.get();

        return t.get2().logger(t.get1());
    }
    catch (IllegalStateException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:17,代码来源:GridCacheLogger.java

示例12: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
protected Object readResolve() throws ObjectStreamException {
    try {
        IgniteBiTuple<String, String> t = stash.get();

        return IgnitionEx.localIgnite().cachex(t.get2());
    }
    catch (IllegalStateException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
    finally {
        stash.remove();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:20,代码来源:GridCacheAdapter.java

示例13: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
protected Object readResolve() throws ObjectStreamException {
    try {
        return IgnitionEx.localIgnite().context();
    }
    catch (IllegalStateException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
    finally {
        stash.remove();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:18,代码来源:GridKernalContextImpl.java

示例14: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
protected Object readResolve() throws ObjectStreamException {
    try {
        return IgnitionEx.localIgnite().cluster().nodeLocalMap();
    }
    catch (IllegalStateException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
    finally {
        stash.remove();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:18,代码来源:ClusterNodeLocalMapImpl.java

示例15: readResolve

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Reconstructs object on unmarshalling.
 *
 * @return Reconstructed object.
 * @throws ObjectStreamException Thrown in case of unmarshalling error.
 */
protected Object readResolve() throws ObjectStreamException {
    try {
        IgniteKernal g = IgnitionEx.localIgnite();

        return ids != null ? new ClusterGroupAdapter(g.context(), subjId, ids) :
            new ClusterGroupAdapter(g.context(), subjId, p);
    }
    catch (IllegalStateException e) {
        throw U.withCause(new InvalidObjectException(e.getMessage()), e);
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:18,代码来源:ClusterGroupAdapter.java


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