/** * Create data transfer object for cache key configuration. * * @param src Cache key configuration. */ public VisorCacheKeyConfiguration(CacheKeyConfiguration src) { typeName = src.getTypeName(); affKeyFieldName = src.getAffinityKeyFieldName(); }
/** * Creates a query entity with the given key and value types. * * @param keyCls Key type. * @param valCls Value type. */ public QueryEntity(Class<?> keyCls, Class<?> valCls) { this(convert(processKeyAndValueClasses(keyCls, valCls))); }
/** * Builder method for patch with conflicts. * * @param conflicts Conflicts. * @return Query entity patch with conflicts. */ public static QueryEntityPatch conflict(String conflicts) { return new QueryEntityPatch(conflicts, null); }
/** {@inheritDoc} */ @Override public javax.cache.CacheManager getCacheManager(URI uri, ClassLoader clsLdr) { return getCacheManager(uri, clsLdr, getDefaultProperties()); }
/** {@inheritDoc} */ @Override public Object onBeforePut(Cache.Entry<Object, Object> entry, Object newVal) { if (!noInterceptor) return delegate.onBeforePut((Cache.Entry)entry, (TestValue)newVal); return newVal; }
/** {@inheritDoc} */ @Override public void onAfterRemove(Cache.Entry<Object, Object> entry) { if (!noInterceptor) delegate.onAfterRemove((Cache.Entry)entry); }
/** {@inheritDoc} */ @Override public void onAfterPut(Cache.Entry<Object, Object> entry) { if (!noInterceptor) delegate.onAfterPut((Cache.Entry)entry); }
@Override public Long apply(CacheMetrics input) { return input.getHeapEntriesCount(); } // Currently non-zero even when statistics is off
@Override public Long apply(CacheMetrics input) { return input.getCachePuts(); } }, expectNonZero);
@Override public Long apply(CacheMetrics input) { return input.getCacheHits(); } }, expectNonZero);
@Override public Long apply(CacheMetrics input) { return input.getCacheGets(); } }, expectNonZero);
@Override public Void call() throws Exception { e.version(); return null; } }, IgniteException.class, null);
/** {@inheritDoc} */ @Override public Object process(MutableEntry<K, V> entry, Object... args) throws EntryProcessorException { return ep.process(entry, args); }
/** {@inheritDoc} */ @Override protected void afterTestsStopped() throws Exception { stopAllGrids(); }
/** {@inheritDoc} */ @Override protected void beforeTestsStarted() throws Exception { startGrids(2); }
@Override public Void call() throws Exception { e.version(); return null; } }, IgniteException.class, null);
/** * Builder method for patch with operations. * * @param patchOperations Operations for modification. * @return Query entity patch which contain {@link SchemaAbstractOperation} operations for changing query entity. */ public static QueryEntityPatch patch(Collection<SchemaAbstractOperation> patchOperations) { return new QueryEntityPatch(null, patchOperations); }
@Override public Object process(MutableEntry<K, V> entry, Object... args) throws EntryProcessorException { return ep.process(entry, args); } };
@Override public Void call() throws Exception { e.version(); return null; } }, IgniteException.class, null);
@Override public Void call() throws Exception { e.version(); return null; } }, IgniteException.class, null);