proj_name
stringclasses
131 values
relative_path
stringlengths
30
228
class_name
stringlengths
1
68
func_name
stringlengths
1
48
masked_class
stringlengths
78
9.82k
func_body
stringlengths
46
9.61k
len_input
int64
29
2.01k
len_output
int64
14
1.94k
total
int64
55
2.05k
relevant_context
stringlengths
0
38.4k
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/events/SqlQueryExecutionEvent.java
SqlQueryExecutionEvent
toString
class SqlQueryExecutionEvent extends EventAdapter { /** */ private static final long serialVersionUID = 0L; /** Query text. */ private final String text; /** Query arguments. */ @GridToStringInclude(sensitive = true) private final Object[] args; /** Security subject ID. */ private...
return S.toString(SqlQueryExecutionEvent.class, this, "nodeId8", U.id8(node().id()), "msg", message(), "type", name(), "tstamp", timestamp());
463
58
521
<methods>public void <init>() ,public void <init>(org.apache.ignite.cluster.ClusterNode, java.lang.String, int) ,public int compareTo(org.apache.ignite.events.Event) ,public boolean equals(java.lang.Object) ,public int hashCode() ,public org.apache.ignite.lang.IgniteUuid id() ,public long localOrder() ,public void mess...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/ComputeTaskInternalFuture.java
ComputeTaskInternalFuture
finishedFuture
class ComputeTaskInternalFuture<R> extends GridFutureAdapter<R> { /** */ private ComputeTaskSession ses; /** */ private GridKernalContext ctx; /** */ @GridToStringExclude private ComputeFuture<R> userFut; /** */ private transient IgniteLogger log; /** * @param ses Task s...
assert ctx != null; assert taskCls != null; assert e != null; final long time = U.currentTimeMillis(); final IgniteUuid id = IgniteUuid.fromUuid(ctx.localNodeId()); ComputeTaskSession ses = new ComputeTaskSession() { @Override public String getTaskName() {...
680
1,003
1,683
<methods>public non-sealed void <init>() ,public boolean cancel() throws org.apache.ignite.IgniteCheckedException,public IgniteInternalFuture<T> chain(IgniteClosure<? super IgniteInternalFuture<R>,T>) ,public IgniteInternalFuture<T> chain(IgniteOutClosure<T>) ,public IgniteInternalFuture<T> chain(IgniteClosure<? super ...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/GridLoggerProxy.java
GridLoggerProxy
enrich
class GridLoggerProxy implements IgniteLogger, LifecycleAware, Externalizable { /** */ private static final long serialVersionUID = 0L; /** */ private static ThreadLocal<IgniteBiTuple<String, Object>> stash = new ThreadLocal<IgniteBiTuple<String, Object>>() { @Override protected IgniteBiTuple<S...
return logIgniteInstanceName && m != null ? "<" + igniteInstanceName + '-' + id8 + "> " + m : m;
1,800
40
1,840
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/LongJVMPauseDetector.java
LongJVMPauseDetector
start
class LongJVMPauseDetector { /** Ignite JVM pause detector threshold default value. */ public static final int DEFAULT_JVM_PAUSE_DETECTOR_THRESHOLD = 500; /** @see IgniteSystemProperties#IGNITE_JVM_PAUSE_DETECTOR_PRECISION */ public static final int DFLT_JVM_PAUSE_DETECTOR_PRECISION = 50; /** @see...
if (DISABLED) { if (log.isDebugEnabled()) log.debug("JVM Pause Detector is disabled."); return; } final Thread worker = new Thread("jvm-pause-detector-worker") { @Override public void run() { synchronized (LongJVMPauseDetect...
1,306
580
1,886
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/QueryMXBeanImpl.java
CancelContinuousOnInitiator
apply
class CancelContinuousOnInitiator implements IgniteClosure<UUID, Void> { /** */ private static final long serialVersionUID = 0L; /** Auto-injected grid instance. */ @IgniteInstanceResource private transient IgniteEx ignite; /** {@inheritDoc} */ @Override public ...
IgniteInternalFuture<?> fut = ignite.context().continuous().stopRoutine(routineId); try { fut.get(); } catch (IgniteCheckedException e) { throw new IgniteException(e); } return null;
108
76
184
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryArrayIdentityResolver.java
BinaryArrayIdentityResolver
hashCode0
class BinaryArrayIdentityResolver extends BinaryAbstractIdentityResolver { /** Singleton instance */ private static final BinaryArrayIdentityResolver INSTANCE = new BinaryArrayIdentityResolver(); /** * Get singleton instance. * * @return Singleton instance. */ public static BinaryAr...
int hash = 1; if (obj instanceof BinaryObjectExImpl) { BinaryObjectExImpl ex = (BinaryObjectExImpl)obj; int start = ex.dataStartOffset(); int end = ex.footerStartOffset(); if (ex.hasArray()) { // Handle heap object. byte...
1,348
384
1,732
<methods>public non-sealed void <init>() ,public boolean equals(org.apache.ignite.binary.BinaryObject, org.apache.ignite.binary.BinaryObject) ,public int hashCode(org.apache.ignite.binary.BinaryObject) <variables>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryContextHolder.java
BinaryContextHolder
set
class BinaryContextHolder { /** Context. */ private BinaryContext ctx; /** * @return Context. */ @Nullable public BinaryContext get() { return ctx; } /** * @param newCtx New context. * @return Previous context. */ @Nullable public BinaryContext set(@Nullabl...
BinaryContext oldCtx = ctx; ctx = newCtx; return oldCtx;
114
31
145
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryFieldImpl.java
BinaryFieldImpl
fieldOrder
class BinaryFieldImpl implements BinaryFieldEx { /** Binary context that created this field. */ private final BinaryContext ctx; /** Type ID. */ private final int typeId; /** Well-known object schemas. */ @GridToStringExclude private final BinarySchemaRegistry schemas; /** Field name....
if (typeId != obj.typeId()) { BinaryType expType = ctx.metadata(typeId); BinaryType actualType = obj.type(); String actualTypeName = null; Exception actualTypeNameEx = null; try { actualTypeName = actualType.typeName(); } ...
1,597
402
1,999
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryReaderHandles.java
BinaryReaderHandles
put
class BinaryReaderHandles { /** Mode: empty. */ private static final int MODE_EMPTY = 0; /** Mode: single object. */ private static final int MODE_SINGLE = 1; /** Mode: multiple objects. */ private static final int MODE_MULTIPLE = 2; /** Position. */ private int singlePos; /** D...
assert pos >= 0; assert obj != null; switch (mode) { case MODE_EMPTY: this.singlePos = pos; this.data = obj; this.mode = MODE_SINGLE; break; case MODE_SINGLE: Map<Integer, Object> newData ...
360
223
583
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/binary/BinarySchemaRegistry.java
BinarySchemaRegistry
addSchema
class BinarySchemaRegistry { /** Empty schema ID. */ private static final int EMPTY = 0; /** Whether registry still works in inline mode. */ private volatile boolean inline = true; /** First schema ID. */ private int schemaId1; /** Second schema ID. */ private int schemaId2; /** ...
if (inline) { // Check if this is already known schema. if (schemaId == schemaId1 || schemaId == schemaId2 || schemaId == schemaId3 || schemaId == schemaId4) return; // Try positioning new schema in inline mode. if (schemaId1 == EMPTY) { ...
726
474
1,200
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryTreeMap.java
BinaryTreeMap
writeBinary
class BinaryTreeMap implements Binarylizable, Serializable { /** */ private static final long serialVersionUID = 0L; /** Original map. */ private TreeMap map; /** * Default constructor. */ public BinaryTreeMap() { // No-op. } /** * Constructor. * * @pa...
BinaryRawWriter rawWriter = writer.rawWriter(); rawWriter.writeObject(map.comparator()); int size = map.size(); rawWriter.writeInt(size); for (Map.Entry<Object, Object> entry : ((TreeMap<Object, Object>)map).entrySet()) { rawWriter.writeObject(entry.getKey()); ...
381
111
492
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/binary/builder/BinaryLazyLinkedList.java
BinaryLazyLinkedList
listIterator
class BinaryLazyLinkedList extends AbstractList<Object> implements BinaryBuilderSerializationAware { /** */ private final BinaryBuilderReader reader; /** */ private final int off; /** */ private List<Object> delegate; /** * @param reader Reader. * @param size Size, */ B...
ensureDelegateInit(); return new ListIterator<Object>() { /** */ private final ListIterator<Object> delegate = BinaryLazyLinkedList.super.listIterator(idx); @Override public boolean hasNext() { return delegate.hasNext(); } @...
1,083
271
1,354
<methods>public boolean add(java.lang.Object) ,public void add(int, java.lang.Object) ,public boolean addAll(int, Collection<? extends java.lang.Object>) ,public void clear() ,public boolean equals(java.lang.Object) ,public abstract java.lang.Object get(int) ,public int hashCode() ,public int indexOf(java.lang.Object) ...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/binary/streams/BinaryHeapOutputStream.java
BinaryHeapOutputStream
ensureCapacity
class BinaryHeapOutputStream extends BinaryAbstractOutputStream { /** Allocator. */ private final BinaryMemoryAllocatorChunk chunk; /** Disable auto close flag. */ private final boolean disableAutoClose; /** Data. */ private byte[] data; /** * Constructor. * * @param cap In...
// overflow-conscious code if (cnt - data.length > 0) { int newCap = capacity(data.length, cnt); data = chunk.reallocate(data, newCap); }
1,685
58
1,743
<methods>public non-sealed void <init>() ,public long offheapPointer() ,public void position(int) ,public long rawOffheapPointer() ,public void unsafeEnsure(int) ,public void unsafePosition(int) ,public void unsafeWriteBoolean(boolean) ,public void unsafeWriteDouble(double) ,public void unsafeWriteFloat(float) ,public ...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/binary/streams/BinaryOffheapOutputStream.java
BinaryOffheapOutputStream
writeIntFast
class BinaryOffheapOutputStream extends BinaryAbstractOutputStream { /** Pointer. */ private long ptr; /** Length of bytes that cen be used before resize is necessary. */ private int cap; /** * Constructor. * * @param cap Capacity. */ public BinaryOffheapOutputStream(int ca...
long addr = ptr + pos; if (BIG_ENDIAN) GridUnsafe.putIntLE(addr, val); else GridUnsafe.putInt(addr, val);
1,598
54
1,652
<methods>public non-sealed void <init>() ,public long offheapPointer() ,public void position(int) ,public long rawOffheapPointer() ,public void unsafeEnsure(int) ,public void unsafePosition(int) ,public void unsafeWriteBoolean(boolean) ,public void unsafeWriteDouble(double) ,public void unsafeWriteFloat(float) ,public ...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/RangeIndexQueryCriterion.java
RangeIndexQueryCriterion
toString
class RangeIndexQueryCriterion implements IndexQueryCriterion { /** */ private static final long serialVersionUID = 0L; /** Index field name. */ private final String field; /** Lower bound. */ private final Object lower; /** Upper bound. */ private final Object upper; /** Should ...
return field + (lowerIncl ? "[" : "(") + lower + "; " + upper + (upperIncl ? "]" : ")");
630
37
667
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/IndexName.java
IndexName
fullName
class IndexName { /** Schema name of {@code null} if index is not related to SQL schema. */ private final @Nullable String schemaName; /** Schema name of {@code null} if index is not related to SQL table. */ private final @Nullable String tableName; /** Cache name. */ private final String cach...
StringBuilder bld = new StringBuilder(); if (schemaName != null) bld.append(schemaName).append("."); if (tableName != null) bld.append(tableName).append("."); return bld.append(idxName).toString();
342
76
418
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/IndexKeyDefinition.java
IndexKeyDefinition
writeExternal
class IndexKeyDefinition implements Externalizable { /** */ private static final long serialVersionUID = 0L; /** Index key type. {@link IndexKeyType}. */ private IndexKeyType idxType; /** Order. */ private Order order; /** Precision for variable length key types. */ private int precis...
// Send only required info for using in MergeSort algorithm. out.writeInt(idxType.code()); U.writeEnum(out, order.sortOrder());
386
44
430
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/IndexPlainRowImpl.java
IndexPlainRowImpl
cacheDataRow
class IndexPlainRowImpl implements IndexRow { /** */ private final IndexKey[] keys; /** */ private final InlineIndexRowHandler rowHnd; /** Constructor. */ public IndexPlainRowImpl(IndexKey[] idxKeys, InlineIndexRowHandler rowHnd) { keys = idxKeys; this.rowHnd = rowHnd; } ...
assert false : "Should not cache data row by IndexPlainRowImpl"; return null;
340
27
367
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/IndexRowImpl.java
IndexRowImpl
key
class IndexRowImpl implements IndexRow { /** Object that contains info about original IgniteCache row. */ private final CacheDataRow cacheRow; /** Cache for index row keys. To avoid hit underlying cache for every comparation. */ private IndexKey[] keyCache; /** Schema of an index. */ private f...
if (keyCache != null && keyCache[idx] != null) return keyCache[idx]; IndexKey key = rowHnd.indexKey(idx, cacheRow); if (keyCache != null) keyCache[idx] = key; return key;
902
76
978
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/QueryIndexDefinition.java
QueryIndexDefinition
toString
class QueryIndexDefinition implements SortedIndexDefinition { /** Wrapped key definitions. */ private final LinkedHashMap<String, IndexKeyDefinition> keyDefs; /** Type descriptor. */ private final GridQueryTypeDescriptor typeDesc; /** Cache info. */ private final GridCacheContextInfo<?, ?> cac...
String flds = String.join(", ", indexKeyDefinitions().keySet()); return "QueryIndex[name=" + idxName.idxName() + ", fields=" + flds + "]";
1,006
56
1,062
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/QueryIndexRowHandler.java
QueryIndexRowHandler
indexKey
class QueryIndexRowHandler implements InlineIndexRowHandler { /** Cache info. */ private final GridCacheContextInfo<?, ?> cacheInfo; /** List of key types for inlined index keys. */ private final List<InlineIndexKeyType> keyTypes; /** List of index key definitions. */ private final List<IndexK...
try { return IndexKeyFactory.wrap( props[idx].value(row.key(), row.value()), keyDefs.get(idx).idxType(), cacheInfo.cacheContext().cacheObjectContext(), keyTypeSettings ); } catch (IgniteCheckedException e) {...
1,045
93
1,138
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/io/AbstractInnerIO.java
AbstractInnerIO
getLookupRow
class AbstractInnerIO extends BPlusInnerIO<IndexRow> implements InlineIO { /** * @param type Page type. * @param ver Page format version. * @param itemSize Single item size on page. */ AbstractInnerIO(int type, int ver, int itemSize) { super(type, ver, true, itemSize); } /**...
long link = PageUtils.getLong(pageAddr, offset(idx)); assert link != 0; return ((InlineIndexTree)tree).createIndexRow(link);
399
49
448
<methods>public final void copyItems(long, long, int, int, int, boolean) throws org.apache.ignite.IgniteCheckedException,public final long getLeft(long, int) ,public int getMaxCount(long, int) ,public final long getRight(long, int) ,public byte[] initNewRoot(long, long, long, org.apache.ignite.internal.cache.query.inde...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/io/AbstractLeafIO.java
AbstractLeafIO
getLookupRow
class AbstractLeafIO extends BPlusLeafIO<IndexRow> implements InlineIO { /** * @param type Page type. * @param ver Page format version. * @param itemSize Single item size on page. */ AbstractLeafIO(int type, int ver, int itemSize) { super(type, ver, itemSize); } /** {@inheri...
long link = PageUtils.getLong(pageAddr, offset(idx)); assert link != 0; return ((InlineIndexTree)tree).createIndexRow(link);
400
49
449
<methods>public final void copyItems(long, long, int, int, int, boolean) throws org.apache.ignite.IgniteCheckedException,public int getMaxCount(long, int) ,public final int offset(int) <variables>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/io/IORowHandler.java
IORowHandler
store
class IORowHandler { /** */ public static void store(long pageAddr, int off, IndexRow row) {<FILL_FUNCTION_BODY>} /** * @param dstPageAddr Destination page address. * @param dstOff Destination page offset. * @param srcIo Source IO. * @param srcPageAddr Source page address. * @param...
// Write link after all inlined idx keys. PageUtils.putLong(pageAddr, off, row.link());
189
32
221
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/types/BytesInlineIndexKeyType.java
BytesInlineIndexKeyType
compare0
class BytesInlineIndexKeyType extends NullableInlineIndexKeyType<BytesIndexKey> { /** Compare binary unsigned. */ private final boolean compareBinaryUnsigned; /** */ public BytesInlineIndexKeyType() { this(IndexKeyType.BYTES); } /** */ public BytesInlineIndexKeyType(IndexKeyType ty...
long addr = pageAddr + off + 1; // Skip type. int len1 = PageUtils.getShort(pageAddr, off + 1) & 0x7FFF; addr += 2; // Skip size. byte[] arr = (byte[])bytes.key(); int len2 = arr.length; int len = Math.min(len1, len2); if (compareBinaryUnsigned) { ...
647
409
1,056
<methods>public int compare(long, int, int, org.apache.ignite.internal.cache.query.index.sorted.keys.IndexKey) ,public abstract int compare0(long, int, org.apache.ignite.internal.cache.query.index.sorted.keys.IndexKey) ,public org.apache.ignite.internal.cache.query.index.sorted.keys.IndexKey get(long, int, int) ,public...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/types/DateInlineIndexKeyType.java
DateInlineIndexKeyType
put0
class DateInlineIndexKeyType extends NullableInlineIndexKeyType<DateIndexKey> { /** */ public DateInlineIndexKeyType() { super(IndexKeyType.DATE, (short)8); } /** {@inheritDoc} */ @Override public boolean isComparableTo(IndexKey key) { return key instanceof DateTimeIndexKey; } ...
PageUtils.putByte(pageAddr, off, (byte)type().code()); PageUtils.putLong(pageAddr, off + 1, key.dateValue()); return keySize + 1;
358
52
410
<methods>public int compare(long, int, int, org.apache.ignite.internal.cache.query.index.sorted.keys.IndexKey) ,public abstract int compare0(long, int, org.apache.ignite.internal.cache.query.index.sorted.keys.IndexKey) ,public org.apache.ignite.internal.cache.query.index.sorted.keys.IndexKey get(long, int, int) ,public...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/types/DateValueUtils.java
DateValueUtils
defaultTzMillisFromUtc
class DateValueUtils { /** Calendar with UTC time zone instance. */ private static final ThreadLocal<Calendar> UTC_CALENDAR = ThreadLocal.withInitial( () -> Calendar.getInstance(TimeZone.getTimeZone("UTC"))); /** Cached default time zone. */ private static final TimeZone DEFAULT_TZ = TimeZone.g...
// Taking into account DST, offset can be changed after converting from UTC to time-zone. return utcMillis - DEFAULT_TZ.getOffset(utcMillis - DEFAULT_TZ.getOffset(utcMillis));
1,409
60
1,469
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/types/DoubleInlineIndexKeyType.java
DoubleInlineIndexKeyType
get0
class DoubleInlineIndexKeyType extends NumericInlineIndexKeyType<DoubleIndexKey> { /** */ public DoubleInlineIndexKeyType() { super(IndexKeyType.DOUBLE, (short)8); } /** {@inheritDoc} */ @Override public int compare0(long pageAddr, int off, IndexKey key) { double val = Double.longBi...
double key = Double.longBitsToDouble(PageUtils.getLong(pageAddr, off + 1)); return new DoubleIndexKey(key);
278
40
318
<methods>public boolean isComparableTo(org.apache.ignite.internal.cache.query.index.sorted.keys.IndexKey) <variables>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/types/ShortInlineIndexKeyType.java
ShortInlineIndexKeyType
put0
class ShortInlineIndexKeyType extends NumericInlineIndexKeyType<ShortIndexKey> { /** */ public ShortInlineIndexKeyType() { super(IndexKeyType.SHORT, (short)2); } /** {@inheritDoc} */ @Override public int compare0(long pageAddr, int off, IndexKey key) { short val = PageUtils.getShort...
PageUtils.putByte(pageAddr, off, (byte)type().code()); PageUtils.putShort(pageAddr, off + 1, (short)key.key()); return keySize + 1;
240
54
294
<methods>public boolean isComparableTo(org.apache.ignite.internal.cache.query.index.sorted.keys.IndexKey) <variables>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/keys/BytesIndexKey.java
BytesIndexKey
compare
class BytesIndexKey implements IndexKey { /** */ protected final byte[] key; /** */ public BytesIndexKey(byte[] key) { this.key = key; } /** {@inheritDoc} */ @Override public Object key() { return key; } /** {@inheritDoc} */ @Override public IndexKeyType type()...
byte[] arr0 = key; byte[] arr1 = ((BytesIndexKey)o).key; if (arr0 == arr1) return 0; int commonLen = Math.min(arr0.length, arr1.length); int unSignArr0; int unSignArr1; for (int i = 0; i < commonLen; ++i) { unSignArr0 = arr0[i] & 255; ...
179
206
385
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/keys/UuidIndexKey.java
UuidIndexKey
compare
class UuidIndexKey implements IndexKey { /** */ private final UUID key; /** */ public UuidIndexKey(UUID key) { this.key = key; } /** {@inheritDoc} */ @Override public Object key() { return key; } /** {@inheritDoc} */ @Override public IndexKeyType type() { ...
UUID okey = (UUID)o.key(); // Keep old logic. if (key.getMostSignificantBits() == okey.getMostSignificantBits()) return Long.compare(key.getLeastSignificantBits(), okey.getLeastSignificantBits()); else return key.getMostSignificantBits() > okey.getMostSignifican...
175
109
284
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/client/GridClientFactory.java
GridClientFactory
stopAll
class GridClientFactory { /** Map that contain all opened clients. */ private static ConcurrentMap<UUID, GridClientImpl> openClients = new ConcurrentHashMap<>(); /** Lock to prevent concurrent adding of clients while stopAll is working. */ private static final ReadWriteLock busyLock = new ReentrantRead...
ConcurrentMap<UUID, GridClientImpl> old; busyLock.writeLock().lock(); try { old = openClients; openClients = new ConcurrentHashMap<>(); } finally { busyLock.writeLock().unlock(); } for (GridClientImpl client : old.values())...
1,038
99
1,137
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/client/balancer/GridClientRoundRobinBalancer.java
GridClientRoundRobinBalancer
onNodeAdded
class GridClientRoundRobinBalancer extends GridClientBalancerAdapter implements GridClientTopologyListener { /** Lock. */ private Lock lock = new ReentrantLock(); /** Nodes to share load. */ private LinkedList<UUID> nodeQueue = new LinkedList<>(); /** {@inheritDoc} */ @Override public GridClie...
lock.lock(); try { nodeQueue.addFirst(node.nodeId()); } finally { lock.unlock(); }
547
43
590
<methods>public non-sealed void <init>() ,public boolean isPreferDirectNodes() ,public org.apache.ignite.internal.client.balancer.GridClientBalancerAdapter setPreferDirectNodes(boolean) <variables>private static final IgnitePredicate<org.apache.ignite.internal.client.GridClientNode> CONNECTABLE,private boolean preferDi...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/client/marshaller/jdk/GridClientJdkMarshaller.java
GridClientJdkMarshaller
marshal
class GridClientJdkMarshaller implements GridClientMarshaller { /** ID. */ public static final byte ID = 2; /** Class name filter. */ private final IgnitePredicate<String> clsFilter; /** * Default constructor. */ public GridClientJdkMarshaller() { this(null); } /** ...
GridByteArrayOutputStream bOut = new GridByteArrayOutputStream(); ObjectOutput out = new ObjectOutputStream(bOut); out.writeObject(obj); out.flush(); ByteBuffer buf = ByteBuffer.allocate(off + bOut.size()); buf.position(off); buf.put(bOut.internalArray(), 0...
538
113
651
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/client/marshaller/optimized/GridClientOptimizedMarshaller.java
GridClientOptimizedMarshaller
marshal
class GridClientOptimizedMarshaller implements GridClientMarshaller { /** ID. */ public static final byte ID = 1; /** Optimized marshaller. */ protected final OptimizedMarshaller opMarsh; /** * Default constructor. */ public GridClientOptimizedMarshaller() { opMarsh = new Opt...
try { if (!(obj instanceof GridClientMessage)) throw new IOException("Message serialization of given type is not supported: " + obj.getClass().getName()); byte[] bytes = U.marshal(opMarsh, obj); ByteBuffer buf = ByteBuffer.allocate(off +...
597
140
737
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/client/thin/ClientBinaryMarshaller.java
ClientBinaryMarshaller
createImpl
class ClientBinaryMarshaller { /** Metadata handler. */ private final BinaryMetadataHandler metaHnd; /** Marshaller context. */ private final MarshallerContext marshCtx; /** Re-using marshaller implementation from Ignite core. */ private GridBinaryMarshaller impl; /** * Constructor. ...
IgniteConfiguration igniteCfg = new IgniteConfiguration(); if (binCfg == null) { binCfg = new BinaryConfiguration(); binCfg.setCompactFooter(false); } igniteCfg.setBinaryConfiguration(binCfg); BinaryContext ctx = new BinaryContext(metaHnd, igniteCfg, ...
491
172
663
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/client/thin/GenericQueryPager.java
GenericQueryPager
close
class GenericQueryPager<T> implements QueryPager<T> { /** Query op. */ private final ClientOperation qryOp; /** Query op. */ private final ClientOperation pageQryOp; /** Query writer. */ private final Consumer<PayloadOutputChannel> qryWriter; /** Channel. */ private final ReliableChan...
// Close cursor only if the server has more pages: the server closes cursor automatically on last page if (cursorId != null && hasNext && !clientCh.closed()) { try { clientCh.service(ClientOperation.RESOURCE_CLOSE, req -> req.out().writeLong(cursorId), null); } ...
1,037
121
1,158
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/client/thin/PayloadOutputChannel.java
PayloadOutputChannel
close
class PayloadOutputChannel implements AutoCloseable { /** Initial output stream buffer capacity. */ private static final int INITIAL_BUFFER_CAPACITY = 1024; /** Client channel. */ private final ClientChannel ch; /** Output stream. */ private final BinaryHeapOutputStream out; /** Close gua...
// Pooled buffer is reusable and should be released once and only once. // Releasing more than once potentially "steals" it from another request. if (closed.compareAndSet(false, true)) out.release();
299
61
360
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/client/thin/TcpClientTransactions.java
TcpClientTransaction
endTx
class TcpClientTransaction implements ClientTransaction { /** Unique client-side transaction id. */ private final long txUid; /** Server-side transaction id. */ private final int txId; /** Client channel. */ private final ClientChannel clientCh; /** Transaction...
try { clientCh.service(ClientOperation.TX_END, req -> { req.out().writeInt(txId); req.out().writeBoolean(committed); }, null); } catch (ClientConnectionException e) { ...
484
167
651
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/cluster/ClusterNodeLocalMapImpl.java
ClusterNodeLocalMapImpl
readResolve
class ClusterNodeLocalMapImpl<K, V> extends ConcurrentHashMap<K, V> implements ConcurrentMap<K, V>, Externalizable { /** */ private static final long serialVersionUID = 0L; /** */ private static final ThreadLocal<String> stash = new ThreadLocal<>(); /** */ private GridKernalContext ctx; ...
try { return IgnitionEx.localIgnite().cluster().nodeLocalMap(); } catch (IllegalStateException e) { throw U.withCause(new InvalidObjectException(e.getMessage()), e); } finally { stash.remove(); }
401
75
476
<methods>public void <init>() ,public void <init>(int) ,public void <init>(Map<? extends K,? extends V>) ,public void <init>(int, float) ,public void <init>(int, float, int) ,public void clear() ,public V compute(K, BiFunction<? super K,? super V,? extends V>) ,public V computeIfAbsent(K, Function<? super K,? extends V...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/commandline/cache/distribution/CacheDistributionNode.java
CacheDistributionNode
readExternalData
class CacheDistributionNode extends VisorDataTransferObject { /** */ private static final long serialVersionUID = 0L; /** Node identifier. */ private UUID nodeId; /** Network addresses. */ private String addrs; /** User attribute in result. */ private Map<String, String> userAttrs; ...
nodeId = U.readUuid(in); addrs = U.readString(in); userAttrs = U.readMap(in); groups = U.readList(in);
651
52
703
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/commandline/cache/distribution/CacheDistributionPartition.java
CacheDistributionPartition
readExternalData
class CacheDistributionPartition extends VisorDataTransferObject { /** */ private static final long serialVersionUID = 0L; /** Partition identifier. */ private int partId; /** Flag primary or backup partition. */ private boolean primary; /** Partition status. */ private GridDhtPartiti...
partId = in.readInt(); primary = in.readBoolean(); state = GridDhtPartitionState.fromOrdinal(in.readByte()); updateCntr = in.readLong(); size = in.readLong();
684
63
747
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/jdbc/thin/AffinityCache.java
AffinityCache
addCacheDistribution
class AffinityCache { /** Affinity topology version. */ private final AffinityTopologyVersion ver; /** Cache partitions distribution. */ private final GridBoundedLinkedHashMap<Integer, UUID[]> cachePartitionsDistribution; /** Sql cache. */ private final GridBoundedLinkedHashMap<QualifiedSQLQue...
for (Map.Entry<Integer, UUID[]> entry : cachePartitionsDistribution.entrySet()) { if (Arrays.equals(entry.getValue(), distribution)) { // put link to already existing distribution instead of creating new one. cachePartitionsDistribution.put(cacheId, entry.getValue())...
600
103
703
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/jdbc/thin/JdbcThinUtils.java
JdbcThinUtils
typeName
class JdbcThinUtils { /** URL prefix. */ public static final String URL_PREFIX = "jdbc:ignite:thin://"; /** Port number property name. */ public static final String PROP_PORT = PROP_PREFIX + "port"; /** Hostname property name. */ public static final String PROP_HOST = PROP_PREFIX + "host"; ...
if (Boolean.class.getName().equals(cls) || boolean.class.getName().equals(cls)) return "BOOLEAN"; else if (Byte.class.getName().equals(cls) || byte.class.getName().equals(cls)) return "TINYINT"; else if (Short.class.getName().equals(cls) || short.class.getName().equals(c...
1,367
404
1,771
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/jdbc/thin/QualifiedSQLQuery.java
QualifiedSQLQuery
equals
class QualifiedSQLQuery { /** Schema name. */ private final String schemaName; /** Sql Query. */ private final String sqlQry; /** * Constructor. * * @param schemaName Schema name. * @param sqlQry Sql Query. */ public QualifiedSQLQuery(String schemaName, String sqlQry) ...
if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; QualifiedSQLQuery qry = (QualifiedSQLQuery)o; return Objects.equals(schemaName, qry.schemaName) && Objects.equals(sqlQry, qry.sqlQry);
339
96
435
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/jdbc2/JdbcQueryMultipleStatementsTask.java
JdbcQueryMultipleStatementsTask
call
class JdbcQueryMultipleStatementsTask implements IgniteCallable<List<JdbcStatementResultInfo>> { /** Serial version uid. */ private static final long serialVersionUID = 0L; /** Ignite. */ @IgniteInstanceResource private Ignite ignite; /** Schema name. */ private final String schemaName; ...
SqlFieldsQuery qry = (isQry != null ? new SqlFieldsQueryEx(sql, isQry) : new SqlFieldsQuery(sql)) .setArgs(args); qry.setPageSize(fetchSize); qry.setLocal(locQry); qry.setCollocated(collocatedQry); qry.setDistributedJoins(distributedJoins); qry.setEnforceJoi...
747
651
1,398
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/jdbc2/JdbcQueryTaskV3.java
JdbcQueryTaskV3
createTask
class JdbcQueryTaskV3 extends JdbcQueryTaskV2 { /** Serial version uid. */ private static final long serialVersionUID = 0L; /** Update metadata on demand flag. */ private final boolean updateMeta; /** Update metadata on demand flag. */ private final boolean skipReducerOnUpdate; /** *...
if (updateMeta || skipReducerOnUpdate) return new JdbcQueryTaskV3(ignite, cacheName, schemaName, sql, isQry, loc, args, fetchSize, uuid, locQry, collocatedQry, distributedJoins, enforceJoinOrder, lazy, updateMeta, skipReducerOnUpdate); else return JdbcQueryTaskV...
851
149
1,000
<methods>public void <init>(org.apache.ignite.Ignite, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean, boolean, java.lang.Object[], int, java.util.UUID, boolean, boolean, boolean, boolean, boolean) ,public static org.apache.ignite.internal.jdbc2.JdbcQueryTask createTask(org.apache.ignite.Ignite,...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/ClusterChangeTagTaskResult.java
ClusterChangeTagTaskResult
readExternalData
class ClusterChangeTagTaskResult extends IgniteDataTransferObject { /** */ private static final long serialVersionUID = 0L; /** */ private String tag; /** */ private Boolean success; /** */ private String errResp; /** Default constructor. */ public ClusterChangeTagTaskResult(...
success = (Boolean)in.readObject(); errResp = (String)in.readObject(); tag = (String)in.readObject();
371
42
413
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/ShutdownPolicyTask.java
ShutdownPolicyJob
run
class ShutdownPolicyJob extends VisorJob<ShutdownPolicyCommandArg, ShutdownPolicyTaskResult> { /** Serial version id. */ private static final long serialVersionUID = 0L; /** Logger. */ @LoggerResource private IgniteLogger log; /** * Constructor of job. ...
ShutdownPolicyTaskResult res = new ShutdownPolicyTaskResult(); if (arg.shutdownPolicy() != null) ignite.cluster().shutdownPolicy(arg.shutdownPolicy()); res.setShutdown(ignite.cluster().shutdownPolicy()); return res;
184
75
259
<methods>public non-sealed void <init>() <variables>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/baseline/AbstractBaselineCommand.java
AbstractBaselineCommand
printResult
class AbstractBaselineCommand implements ComputeCommand<BaselineTaskArg, BaselineTaskResult> { /** {@inheritDoc} */ @Override public Class<BaselineTask> taskClass() { return BaselineTask.class; } /** {@inheritDoc} */ @Override public Collection<GridClientNode> nodes(Collection<GridClientNod...
printer.accept("Cluster state: " + res.clusterState()); printer.accept("Current topology version: " + res.getTopologyVersion()); BaselineAutoAdjustSettings autoAdjustSettings = res.getAutoAdjustSettings(); if (autoAdjustSettings != null) { printer.accept("Baseline auto adju...
167
1,151
1,318
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/baseline/BaselineAddCommand.java
BaselineAddCommand
confirmationPrompt
class BaselineAddCommand extends AbstractBaselineCommand { /** {@inheritDoc} */ @Override public String description() { return "Add nodes into baseline topology"; } /** {@inheritDoc} */ @Override public String confirmationPrompt(BaselineTaskArg arg) {<FILL_FUNCTION_BODY>} /** {@inherit...
return "Warning: the command will perform changes in baseline.";
122
18
140
<methods>public non-sealed void <init>() ,public Collection<org.apache.ignite.internal.client.GridClientNode> nodes(Collection<org.apache.ignite.internal.client.GridClientNode>, org.apache.ignite.internal.management.baseline.BaselineCommand.BaselineTaskArg) ,public void printResult(org.apache.ignite.internal.management...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/baseline/BaselineAutoAdjustCommand.java
BaselineAutoAdjustCommand
confirmationPrompt
class BaselineAutoAdjustCommand extends AbstractBaselineCommand { /** {@inheritDoc} */ @Override public String description() { return "Set baseline autoadjustment settings"; } /** {@inheritDoc} */ @Override public String confirmationPrompt(BaselineTaskArg arg) {<FILL_FUNCTION_BODY>} /*...
return "Warning: the command will perform changes in baseline.";
130
18
148
<methods>public non-sealed void <init>() ,public Collection<org.apache.ignite.internal.client.GridClientNode> nodes(Collection<org.apache.ignite.internal.client.GridClientNode>, org.apache.ignite.internal.management.baseline.BaselineCommand.BaselineTaskArg) ,public void printResult(org.apache.ignite.internal.management...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/baseline/BaselineAutoAdjustCommandArg.java
BaselineAutoAdjustCommandArg
readExternalData
class BaselineAutoAdjustCommandArg extends BaselineTaskArg { /** */ private static final long serialVersionUID = 0; /** */ @Positional @Argument(optional = true) @EnumDescription( names = { "ENABLE", "DISABLE" }, descriptions = { "Enab...
super.readExternalData(protoVer, in); enabled = U.readEnum(in, Enabled.class); timeout = (Long)in.readObject();
378
45
423
<methods>public non-sealed void <init>() ,public boolean verbose() ,public void verbose(boolean) <variables>private boolean verbose
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/baseline/BaselineCommand.java
BaselineCommand
printResult
class BaselineCommand extends CommandRegistryImpl<BaselineTaskArg, BaselineTaskResult> implements ComputeCommand<BaselineTaskArg, BaselineTaskResult> { /** {@inheritDoc} */ @Override public String description() { return "Print cluster baseline topology"; } /** */ public BaselineCommand(...
new AbstractBaselineCommand() { @Override public String description() { return null; } @Override public Class<? extends BaselineTaskArg> argClass() { return null; } }.printResult(arg, res, printer);
504
69
573
<methods>public Command<?,?> command(java.lang.String) ,public Iterator<Entry<java.lang.String,Command<?,?>>> commands() <variables>private final Map<java.lang.String,Command<?,?>> commands
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheConfigurationCollectorTaskArg.java
CacheConfigurationCollectorTaskArg
readExternalData
class CacheConfigurationCollectorTaskArg extends VisorDataTransferObject { /** */ private static final long serialVersionUID = 0L; /** Collection of cache names. */ private Collection<String> cacheNames; /** Cache name regexp. */ private String regex; /** * Default constructor. ...
cacheNames = U.readCollection(in); if (protoVer > V1) regex = U.readString(in);
460
37
497
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheEvictionConfiguration.java
CacheEvictionConfiguration
readExternalData
class CacheEvictionConfiguration extends VisorDataTransferObject { /** */ private static final long serialVersionUID = 0L; /** Eviction policy. */ private String plc; /** Cache eviction policy max size. */ private Integer plcMaxSize; /** Eviction filter to specify which entries should not...
plc = U.readString(in); plcMaxSize = (Integer)in.readObject(); filter = U.readString(in);
506
41
547
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheFindGarbageCommand.java
CacheFindGarbageCommand
printResult
class CacheFindGarbageCommand implements ComputeCommand<CacheFindGarbageCommandArg, FindAndDeleteGarbageInPersistenceTaskResult> { /** {@inheritDoc} */ @Override public String description() { return "Find and optionally delete garbage from shared cache groups which could be left after cache destroy"...
CommandUtils.printErrors(res.exceptions(), "Scanning for garbage failed on nodes:", printer); for (Map.Entry<UUID, FindAndDeleteGarbageInPersistenceJobResult> nodeEntry : res.result().entrySet()) { if (!nodeEntry.getValue().hasGarbage()) { printer.accept("Node " + nodeEntry...
242
310
552
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheIdleVerifyDumpCommand.java
CacheIdleVerifyDumpCommand
printResult
class CacheIdleVerifyDumpCommand implements ComputeCommand<CacheIdleVerifyCommandArg, String> { /** {@inheritDoc} */ @Override public String description() { return "Calculate partition hash and print into standard output"; } /** {@inheritDoc} */ @Override public Class<CacheIdleVerifyDumpCom...
printer.accept("IdleVerifyDumpTask successfully written output to '" + path + "'"); logParsedArgs(arg, printer);
197
37
234
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheListCommandArg.java
CacheListCommandArg
writeExternalData
class CacheListCommandArg extends IgniteDataTransferObject { /** */ private static final long serialVersionUID = 0; /** */ @Positional @Argument(example = "regexPattern") private String regex; /** */ @Argument(description = "print all configuration parameters for each cache", optional ...
U.writeString(out, regex); out.writeBoolean(config); U.writeUuid(out, nodeId); U.writeString(out, outputFormat); out.writeBoolean(groups); out.writeBoolean(seq);
667
66
733
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheRebalanceConfiguration.java
CacheRebalanceConfiguration
readExternalData
class CacheRebalanceConfiguration extends VisorDataTransferObject { /** */ private static final long serialVersionUID = 0L; /** Cache rebalance mode. */ private CacheRebalanceMode mode; /** Cache rebalance batch size. */ private int batchSize; /** Rebalance partitioned delay. */ priva...
mode = CacheRebalanceMode.fromOrdinal(in.readByte()); batchSize = in.readInt(); partitionedDelay = in.readLong(); throttle = in.readLong(); timeout = in.readLong(); batchesPrefetchCnt = in.readLong(); rebalanceOrder = in.readInt();
812
88
900
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheScanCommand.java
CacheScanCommand
printResult
class CacheScanCommand implements ComputeCommand<CacheScanCommandArg, CacheScanTaskResult> { /** {@inheritDoc} */ @Override public String description() { return "Show cache content"; } /** {@inheritDoc} */ @Override public Class<CacheScanCommandArg> argClass() { return CacheScanComm...
List<SystemViewTask.SimpleType> types = res.titles().stream() .map(x -> SystemViewTask.SimpleType.STRING).collect(Collectors.toList()); SystemViewCommand.printTable(res.titles(), types, res.entries(), printer); if (res.entries().size() == arg.limit()) printer.accept("R...
175
120
295
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheScanTask.java
CacheScanJob
binaryToString
class CacheScanJob extends VisorJob<CacheScanCommandArg, CacheScanTaskResult> { /** */ private static final long serialVersionUID = 0L; /** * Create job. * * @param arg Task argument. * @param debug Debug flag. */ private CacheScanJob(CacheSc...
int hash = obj.hashCode(); if (obj instanceof BinaryObjectEx) { BinaryObjectEx objEx = (BinaryObjectEx)obj; BinaryType meta; try { meta = ((BinaryObjectEx)obj).rawType(); } catch (BinaryObject...
965
316
1,281
<methods>public non-sealed void <init>() <variables>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheScheduleIndexesRebuildCommand.java
CacheScheduleIndexesRebuildCommand
description
class CacheScheduleIndexesRebuildCommand implements ComputeCommand<CacheScheduleIndexesRebuildCommandArg, ScheduleIndexRebuildTaskRes> { /** */ public static final String PREF_INDEXES_NOT_FOUND = "WARNING: These indexes were not found:"; /** */ public static final String PREF_REBUILD_NOT_SCHEDULED ...
return "Schedules rebuild of the indexes for specified caches via the Maintenance Mode. " + "Schedules rebuild of specified caches and cache-groups";
1,996
40
2,036
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/CacheValidateIndexesCommandArg.java
CacheValidateIndexesCommandArg
parse
class CacheValidateIndexesCommandArg extends IgniteDataTransferObject { /** */ private static final long serialVersionUID = 0; /** */ @Positional @Argument(example = "cacheName1,...,cacheNameN", optional = true) private String value; /** */ @Positional @Argument(example = "nodeId",...
try { nodeIds = CommandUtils.parseVal(value, UUID[].class); return; } catch (IllegalArgumentException ignored) { //No-op. } caches = CommandUtils.parseVal(value, String[].class);
1,118
72
1,190
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/ContentionClosure.java
ContentionClosure
call
class ContentionClosure implements IgniteCallable<ContentionInfo> { /** Serial version uid. */ private static final long serialVersionUID = 0L; /** Ignite. */ @IgniteInstanceResource protected transient IgniteEx ignite; /** */ private int minQueueSize; /** */ private int maxPrint;...
final IgniteTxManager tm = ignite.context().cache().context().tm(); final Collection<IgniteInternalTx> activeTxs = tm.activeTransactions(); ContentionInfo ci = new ContentionInfo(); ci.setNode(ignite.localNode()); ci.setEntries(new ArrayList<>()); for (IgniteInternal...
204
755
959
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/FindAndDeleteGarbageInPersistenceTask.java
FindAndDeleteGarbageInPersistenceJob
run
class FindAndDeleteGarbageInPersistenceJob extends VisorJob<CacheFindGarbageCommandArg, FindAndDeleteGarbageInPersistenceJobResult> { /** */ private static final long serialVersionUID = 0L; /** * @param arg Argument. * @param debug Debug. */ protected ...
try { FindAndDeleteGarbageInPersistenceClosure closure = new FindAndDeleteGarbageInPersistenceClosure(arg.groups(), arg.delete()); ignite.context().resource().injectGeneric(closure); return closure.call(); } catch...
221
95
316
<methods>public non-sealed void <init>() ,public Map<? extends org.apache.ignite.compute.ComputeJob,org.apache.ignite.cluster.ClusterNode> map(List<org.apache.ignite.cluster.ClusterNode>, VisorTaskArgument<org.apache.ignite.internal.management.cache.CacheFindGarbageCommandArg>) ,public final org.apache.ignite.internal....
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/IndexForceRebuildTask.java
IndexForceRebuildJob
run
class IndexForceRebuildJob extends VisorJob<CacheIndexesForceRebuildCommandArg, IndexForceRebuildTaskRes> { /** */ private static final long serialVersionUID = 0L; /** * Create job with specified argument. * * @param arg Job argument. * @param debug Flag indi...
assert (arg.cacheNames() == null) ^ (arg.groupNames() == null) : "Either cacheNames or cacheGroups must be specified."; Set<GridCacheContext> cachesToRebuild = new HashSet<>(); Set<String> notFound = new HashSet<>(); final GridCacheProcessor cacheProc =...
179
501
680
<methods>public non-sealed void <init>() ,public Map<? extends org.apache.ignite.compute.ComputeJob,org.apache.ignite.cluster.ClusterNode> map(List<org.apache.ignite.cluster.ClusterNode>, VisorTaskArgument<org.apache.ignite.internal.management.cache.CacheIndexesForceRebuildCommandArg>) ,public final Map<java.util.UUID,...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/IndexListTask.java
IndexListJob
run
class IndexListJob extends VisorJob<CacheIndexesListCommandArg, Set<IndexListInfoContainer>> { /** */ private static final long serialVersionUID = 0L; /** * Create job with specified argument. * * @param arg Job argument. * @param debug Flag indicating whethe...
if (arg == null) throw new IgniteException("CacheIndexesListCommandArg is null"); Pattern indexesPtrn = getPattern(arg.indexName()); Pattern grpsPtrn = getPattern(arg.groupName()); Pattern cachesPtrn = getPattern(arg.cacheName()); Set<IndexL...
361
348
709
<methods>public non-sealed void <init>() <variables>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/IndexRebuildStatusInfoContainer.java
IndexRebuildStatusInfoContainer
toString
class IndexRebuildStatusInfoContainer extends IgniteDataTransferObject { /** Empty group name. */ public static final String EMPTY_GROUP_NAME = "no_group"; /** */ private static final long serialVersionUID = 0L; /** Group name. */ private String groupName; /** Cache name. */ private S...
float progress = (float)(totalPartitionsCount - indexBuildPartitionsLeftCount) / totalPartitionsCount; String dfltImpl = S.toString( IndexRebuildStatusInfoContainer.class, this, "progress", (int)(Math.max(0, progress) * 100) + "%" ); ret...
891
130
1,021
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/IndexRebuildStatusTask.java
IndexRebuildStatusJob
run
class IndexRebuildStatusJob extends VisorJob<CacheIndexesRebuildStatusCommandArg, Set<IndexRebuildStatusInfoContainer>> { /** */ private static final long serialVersionUID = 0L; /** * Create job with specified argument. * * @param arg Job argument. * @param d...
Set<IgniteCacheProxy<?, ?>> rebuildIdxCaches = ignite.context().cache().publicCaches().stream() .filter(c -> !c.indexReadyFuture().isDone()) .collect(Collectors.toSet()); Set<IndexRebuildStatusInfoContainer> res = new HashSet<>(); ...
191
129
320
<methods>public non-sealed void <init>() ,public Map<? extends org.apache.ignite.compute.ComputeJob,org.apache.ignite.cluster.ClusterNode> map(List<org.apache.ignite.cluster.ClusterNode>, VisorTaskArgument<org.apache.ignite.internal.management.cache.CacheIndexesRebuildStatusCommandArg>) ,public final Map<java.util.UUID...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/QueryIndexField.java
QueryIndexField
list
class QueryIndexField extends VisorDataTransferObject { /** */ private static final long serialVersionUID = 0L; /** Index field name. */ private String name; /** Index field sort order. */ private boolean sort; /** * Create data transfer object for given cache type metadata. */ ...
List<QueryIndexField> res = new ArrayList<>(); for (Map.Entry<String, Boolean> field: idx.getFields().entrySet()) res.add(new QueryIndexField(field.getKey(), !field.getValue())); return res;
445
67
512
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/ScheduleIndexRebuildTask.java
ScheduleIndexRebuildJob
run
class ScheduleIndexRebuildJob extends VisorJob<CacheScheduleIndexesRebuildCommandArg, ScheduleIndexRebuildJobRes> { /** Serial version uid. */ private static final long serialVersionUID = 0L; /** * Create job with specified argument. * * @param arg Job argument. ...
Set<String> argCacheGrps = arg.groupNames() == null ? null : new HashSet<>(Arrays.asList(arg.groupNames())); assert (arg.cacheToIndexes() != null && !arg.cacheToIndexes().isEmpty()) || (argCacheGrps != null && !argCacheGrps.isEmpty()) : "Cache to...
275
880
1,155
<methods>public non-sealed void <init>() ,public Map<? extends org.apache.ignite.compute.ComputeJob,org.apache.ignite.cluster.ClusterNode> map(List<org.apache.ignite.cluster.ClusterNode>, VisorTaskArgument<org.apache.ignite.internal.management.cache.CacheScheduleIndexesRebuildCommandArg>) ,public final org.apache.ignit...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/ValidateIndexesCheckSizeIssue.java
ValidateIndexesCheckSizeIssue
readExternalData
class ValidateIndexesCheckSizeIssue extends IgniteDataTransferObject { /** Serial version uid. */ private static final long serialVersionUID = 0L; /** Index name. */ private String idxName; /** Index size. */ private long idxSize; /** Error. */ @GridToStringExclude private Throwab...
idxName = readLongString(in); idxSize = in.readLong(); t = (Throwable)in.readObject();
481
37
518
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cache/ViewCacheClosure.java
ViewCacheClosure
call
class ViewCacheClosure implements IgniteCallable<List<CacheInfo>> { /** */ private static final long serialVersionUID = 0L; /** Regex. */ private String regex; /** {@code true} to skip cache destroying. */ private ViewCacheCmd cmd; /** */ @IgniteInstanceResource private Ignite ign...
Pattern compiled = Pattern.compile(regex); List<CacheInfo> cacheInfo = new ArrayList<>(); IgniteKernal k = (IgniteKernal)ignite; if (cmd == null) cmd = ViewCacheCmd.CACHES; switch (cmd) { case SEQ: collectSequences(k.context(), compile...
651
695
1,346
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/cdc/CdcDeleteLostSegmentsTask.java
CdcDeleteLostSegmentsJob
run
class CdcDeleteLostSegmentsJob extends VisorJob<CdcDeleteLostSegmentLinksCommandArg, Void> { /** */ private static final long serialVersionUID = 0L; /** Injected logger. */ @LoggerResource protected IgniteLogger log; /** * Create job with specified argument. ...
FileWriteAheadLogManager wal = (FileWriteAheadLogManager)ignite.context().cache().context().wal(true); File walCdcDir = wal.walCdcDirectory(); if (walCdcDir == null) throw new IgniteException("CDC is not configured."); CdcFileLockHolder lock = new CdcF...
206
754
960
<methods>public non-sealed void <init>() ,public Map<? extends org.apache.ignite.compute.ComputeJob,org.apache.ignite.cluster.ClusterNode> map(List<org.apache.ignite.cluster.ClusterNode>, VisorTaskArgument<org.apache.ignite.internal.management.cdc.CdcDeleteLostSegmentLinksCommandArg>) ,public final java.lang.Void reduc...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/consistency/ConsistencyRepairCommand.java
ConsistencyRepairCommand
execute
class ConsistencyRepairCommand implements LocalCommand<ConsistencyRepairCommandArg, String> { /** {@inheritDoc} */ @Override public String description() { return "Check/Repair cache consistency using Read Repair approach"; } /** {@inheritDoc} */ @Override public Class<ConsistencyRepairComma...
boolean failed = false; ConsistencyTaskResult res = CommandUtils.execute( cli, ignite, ConsistencyRepairTask.class, arg, nodes ); if (res.cancelled()) { sb.append("Operation execution cancelled.\n\n"); ...
436
214
650
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/consistency/ConsistencyStatusCommand.java
ConsistencyStatusCommand
printResult
class ConsistencyStatusCommand implements ComputeCommand<NoArg, ConsistencyTaskResult> { /** {@inheritDoc} */ @Override public String description() { return "Cache consistency check/repair operations status"; } /** {@inheritDoc} */ @Override public Class<NoArg> argClass() { return N...
if (res.cancelled()) printer.accept("Operation execution cancelled.\n\n"); if (res.failed()) printer.accept("Operation execution failed.\n\n"); if (res.cancelled() || res.failed()) printer.accept("[EXECUTION FAILED OR CANCELLED, RESULTS MAY BE INCOMPLETE OR...
225
118
343
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/consistency/ConsistencyStatusTask.java
ConsistencyStatusJob
run
class ConsistencyStatusJob extends VisorJob<NoArg, String> { /** Serial version uid. */ private static final long serialVersionUID = 0L; /** Injected logger. */ @LoggerResource protected IgniteLogger log; /** * @param arg Arguments. * @param debug Debu...
if (MAP.isEmpty()) return null; StringBuilder sb = new StringBuilder(); for (Map.Entry<String, String> entry : MAP.entrySet()) { sb.append("\n Job: ").append(entry.getKey()).append("\n") .append(" Status: ").append(entry.ge...
155
103
258
<methods>public non-sealed void <init>() <variables>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/defragmentation/DefragmentationScheduleCommand.java
DefragmentationScheduleCommand
nodes
class DefragmentationScheduleCommand implements ComputeCommand<DefragmentationStatusCommandArg, DefragmentationTaskResult> { /** {@inheritDoc} */ @Override public String description() { return "Schedule PDS defragmentation"; } /** {@inheritDoc} */ @Override public Class<DefragmentationS...
DefragmentationScheduleCommandArg arg = (DefragmentationScheduleCommandArg)arg0; if (F.isEmpty(arg.nodes())) return null; Set<String> nodesArg = new HashSet<>(Arrays.asList(arg.nodes())); return nodes.stream() .filter(n -> nodesArg.contains(Objects.toString(n....
269
113
382
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/diagnostic/ConnectivityTask.java
ConnectivityJob
run
class ConnectivityJob extends VisorJob<DiagnosticConnectivityCommandArg, ConnectivityResult> { /** */ private static final long serialVersionUID = 0L; /** * @param arg Formal job argument. * @param debug Debug flag. */ private ConnectivityJob(DiagnosticConne...
List<UUID> ids = ignite.cluster().nodes().stream() .map(ClusterNode::id) .filter(uuid -> !Objects.equals(ignite.localNode().id(), uuid)) .collect(Collectors.toList()); List<ClusterNode> nodes = new ArrayList<>(ignite.cluster().forNodeIds(ids).nod...
177
249
426
<methods>public non-sealed void <init>() ,public Map<? extends org.apache.ignite.compute.ComputeJob,org.apache.ignite.cluster.ClusterNode> map(List<org.apache.ignite.cluster.ClusterNode>, VisorTaskArgument<org.apache.ignite.internal.management.diagnostic.DiagnosticConnectivityCommandArg>) ,public final Map<org.apache.i...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/diagnostic/DiagnosticPagelocksCommand.java
DiagnosticPagelocksCommand
nodes
class DiagnosticPagelocksCommand implements ComputeCommand<DiagnosticPagelocksCommandArg, Map<ClusterNode, PageLocksResult>> { /** {@inheritDoc} */ @Override public String description() { return "View pages locks state information on the node or nodes"; } /** {@inheritDoc} */ @Override publ...
if (arg.all()) return nodes; if (F.isEmpty(arg.nodes())) return null; Set<String> argNodes = new HashSet<>(Arrays.asList(arg.nodes())); return nodes.stream() .filter(entry -> argNodes.contains(entry.nodeId().toString()) || argNodes....
310
117
427
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/encryption/CacheGroupEncryptionCommand.java
CacheGroupEncryptionCommand
printResult
class CacheGroupEncryptionCommand<T> implements ComputeCommand<EncryptionCacheGroupArg, CacheGroupEncryptionTaskResult<T>> { /** {@inheritDoc} */ @Override public void printResult( EncryptionCacheGroupArg arg, CacheGroupEncryptionTaskResult<T> res, Consumer<String> printer ) {<FI...
Map<UUID, IgniteException> exceptions = res.exceptions(); for (Map.Entry<UUID, IgniteException> entry : exceptions.entrySet()) { printer.accept(INDENT + "Node " + entry.getKey() + ":"); printer.accept(String.format("%sfailed to execute command for the cache group \"%s\": %s.",...
204
195
399
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/encryption/EncryptionReencryptionStatusCommand.java
EncryptionReencryptionStatusCommand
printNodeResult
class EncryptionReencryptionStatusCommand extends CacheGroupEncryptionCommand<Long> { /** {@inheritDoc} */ @Override public String description() { return "Display re-encryption status of the cache group"; } /** {@inheritDoc} */ @Override public Class<EncryptionCacheGroupArg> argClass() { ...
if (bytesLeft == -1) printer.accept(DOUBLE_INDENT + "re-encryption completed or not required"); else if (bytesLeft == 0) printer.accept(DOUBLE_INDENT + "re-encryption will be completed after the next checkpoint"); else printer.accept(String.format("%s%d KB of...
184
115
299
<methods>public Collection<org.apache.ignite.internal.client.GridClientNode> nodes(Collection<org.apache.ignite.internal.client.GridClientNode>, org.apache.ignite.internal.management.encryption.EncryptionCacheGroupArg) ,public void printResult(org.apache.ignite.internal.management.encryption.EncryptionCacheGroupArg, Ca...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/kill/ClientConnectionDropTask.java
ClientConnectionDropTask
reduce0
class ClientConnectionDropTask extends VisorMultiNodeTask<KillClientCommandArg, Void, Boolean> { /** */ private static final long serialVersionUID = 0L; /** {@inheritDoc} */ @Override protected VisorJob<KillClientCommandArg, Boolean> job(KillClientCommandArg arg) { return new ClientConnectionDr...
boolean res = false; for (ComputeJobResult jobRes : results) { if (jobRes.getException() != null) throw jobRes.getException(); res |= jobRes.<Boolean>getData(); } if (!res) throw new IgniteException("No connection was dropped"); ...
396
91
487
<methods>public non-sealed void <init>() ,public Map<? extends org.apache.ignite.compute.ComputeJob,org.apache.ignite.cluster.ClusterNode> map(List<org.apache.ignite.cluster.ClusterNode>, VisorTaskArgument<org.apache.ignite.internal.management.kill.KillClientCommandArg>) ,public final java.lang.Void reduce(List<org.apa...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/meta/MetaRemoveCommandArg.java
MetaRemoveCommandArg
out
class MetaRemoveCommandArg extends MetaDetailsCommandArg { /** */ private static final long serialVersionUID = 0; /** */ @Argument(optional = true, example = "<fileName>") private String out; /** {@inheritDoc} */ @Override protected void writeExternalData(ObjectOutput out) throws IOExcepti...
Path outFile = FileSystems.getDefault().getPath(out); try (OutputStream os = Files.newOutputStream(outFile)) { os.close(); Files.delete(outFile); } catch (IOException e) { throw new IllegalArgumentException("Cannot write to output file " + outFile +...
222
107
329
<methods>public non-sealed void <init>() ,public java.lang.String toString() ,public int typeId() ,public void typeId(int) ,public java.lang.String typeName() ,public void typeName(java.lang.String) <variables>private static final long serialVersionUID,private int typeId,private java.lang.String typeName
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/meta/MetadataRemoveTask.java
MetadataRemoveJob
run
class MetadataRemoveJob extends VisorJob<MetaRemoveCommandArg, MetadataMarshalled> { /** */ private static final long serialVersionUID = 0L; /** Auto-inject job context. */ @JobContextResource private transient ComputeJobContext jobCtx; /** Metadata future. */ p...
try { if (future == null) { assert Objects.nonNull(arg); int typeId = typeId(ignite.context(), arg.typeId(), arg.typeName()); BinaryMetadata meta = ((CacheObjectBinaryProcessorImpl)ignite.context().cacheObjects()) ...
270
299
569
<methods>public non-sealed void <init>() ,public Map<? extends org.apache.ignite.compute.ComputeJob,org.apache.ignite.cluster.ClusterNode> map(List<org.apache.ignite.cluster.ClusterNode>, VisorTaskArgument<org.apache.ignite.internal.management.meta.MetaRemoveCommandArg>) ,public final org.apache.ignite.internal.managem...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/metric/MetricCommand.java
MetricCommand
printResult
class MetricCommand extends CommandRegistryImpl<MetricCommandArg, Map<String, ?>> implements ComputeCommand<MetricCommandArg, Map<String, ?>> { /** */ public MetricCommand() { super( new MetricConfigureHistogramCommand(), new MetricConfigureHitrateCommand() ); } ...
if (res != null) { List<List<?>> data = res.entrySet().stream() .map(entry -> Arrays.asList(entry.getKey(), entry.getValue())) .collect(Collectors.toList()); printTable(asList("metric", "value"), asList(STRING, STRING), data, printer); } ...
295
122
417
<methods>public Command<?,?> command(java.lang.String) ,public Iterator<Entry<java.lang.String,Command<?,?>>> commands() <variables>private final Map<java.lang.String,Command<?,?>> commands
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/metric/MetricConfigureHistogramCommandArg.java
MetricConfigureHistogramCommandArg
newBounds
class MetricConfigureHistogramCommandArg extends MetricCommandArg { /** */ private static final long serialVersionUID = 0; /** */ @Argument(description = "Comma-separated list of longs to configure histogram", example = "newBounds") @Positional private long[] newBounds; /** {@inheritDoc} *...
if (!F.isSorted(bounds)) throw new IllegalArgumentException("Bounds must be sorted"); this.newBounds = bounds;
249
38
287
<methods>public non-sealed void <init>() ,public java.lang.String name() ,public void name(java.lang.String) ,public java.util.UUID nodeId() ,public void nodeId(java.util.UUID) <variables>private java.lang.String name,private java.util.UUID nodeId,private static final long serialVersionUID
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/persistence/PersistenceCleanCorruptedCommand.java
PersistenceCleanCorruptedCommand
description
class PersistenceCleanCorruptedCommand extends PersistenceAbstractCommand { /** {@inheritDoc} */ @Override public String description() {<FILL_FUNCTION_BODY>} /** {@inheritDoc} */ @Override public Class<PersistenceCleanCorruptedTaskArg> argClass() { return PersistenceCleanCorruptedTaskArg.class;...
return "Clean directories of caches with corrupted data files";
89
18
107
<methods>public non-sealed void <init>() ,public void printResult(org.apache.ignite.internal.management.persistence.PersistenceCommand.PersistenceTaskArg, org.apache.ignite.internal.management.persistence.PersistenceTaskResult, Consumer<java.lang.String>) ,public Class<org.apache.ignite.internal.management.persistence....
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/persistence/PersistenceInfoCommand.java
PersistenceInfoCommand
description
class PersistenceInfoCommand extends PersistenceAbstractCommand { /** {@inheritDoc} */ @Override public String description() {<FILL_FUNCTION_BODY>} /** {@inheritDoc} */ @Override public Class<PersistenceInfoTaskArg> argClass() { return PersistenceInfoTaskArg.class; } }
return "The same information is printed when info subcommand is passed";
83
19
102
<methods>public non-sealed void <init>() ,public void printResult(org.apache.ignite.internal.management.persistence.PersistenceCommand.PersistenceTaskArg, org.apache.ignite.internal.management.persistence.PersistenceTaskResult, Consumer<java.lang.String>) ,public Class<org.apache.ignite.internal.management.persistence....
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/persistence/PersistenceTaskResult.java
PersistenceTaskResult
readExternalData
class PersistenceTaskResult extends IgniteDataTransferObject { /** */ private static final long serialVersionUID = 0L; /** */ private boolean inMaintenanceMode; /** */ private boolean maintenanceTaskCompleted; /** */ private List<String> handledCaches; /** */ private List<Str...
inMaintenanceMode = in.readBoolean(); maintenanceTaskCompleted = in.readBoolean(); handledCaches = U.readList(in); failedToHandleCaches = U.readList(in); cachesInfo = U.readMap(in);
640
68
708
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/snapshot/SnapshotCheckCommand.java
SnapshotCheckCommand
printResult
class SnapshotCheckCommand extends AbstractSnapshotCommand<SnapshotCheckCommandArg> { /** {@inheritDoc} */ @Override public String description() { return "Check snapshot"; } /** {@inheritDoc} */ @Override public Class<SnapshotCheckCommandArg> argClass() { return SnapshotCheckCommand...
try { ((SnapshotPartitionsVerifyTaskResult)res0.result()).print(printer); } catch (Exception e) { throw new IgniteException(e); }
173
51
224
<methods>public non-sealed void <init>() ,public void printResult(org.apache.ignite.internal.management.snapshot.SnapshotCheckCommandArg, org.apache.ignite.internal.management.snapshot.SnapshotTaskResult, Consumer<java.lang.String>) <variables>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/snapshot/SnapshotRestoreCommand.java
SnapshotRestoreCommand
deprecationMessage
class SnapshotRestoreCommand extends AbstractSnapshotCommand<SnapshotRestoreCommandArg> { /** {@inheritDoc} */ @Override public String description() { return "Restore snapshot"; } /** {@inheritDoc} */ @Override public @Nullable String deprecationMessage(SnapshotRestoreCommandArg arg) {<FILL...
if (arg.start()) return "Command option '--start' is redundant and must be avoided."; else if (arg.cancel()) return "Command deprecated. Use '--snapshot cancel' instead."; else if (arg.status()) return "Command deprecated. Use '--snapshot status' instead."; ...
261
90
351
<methods>public non-sealed void <init>() ,public void printResult(org.apache.ignite.internal.management.snapshot.SnapshotRestoreCommandArg, org.apache.ignite.internal.management.snapshot.SnapshotTaskResult, Consumer<java.lang.String>) <variables>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/snapshot/SnapshotRestoreCommandArg.java
SnapshotRestoreCommandArg
writeExternalData
class SnapshotRestoreCommandArg extends IgniteDataTransferObject { /** */ private static final long serialVersionUID = 0; /** */ @Positional @Argument(description = "Snapshot name. " + "In the case of incremental snapshot (--incremental) full snapshot name must be provided") private Str...
U.writeString(out, snapshotName); out.writeInt(increment); U.writeArray(out, groups); U.writeString(out, src); out.writeBoolean(sync); out.writeBoolean(check); out.writeBoolean(status); out.writeBoolean(cancel); out.writeBoolean(start);
1,151
92
1,243
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/tracing/TracingConfigurationGetCommandArg.java
TracingConfigurationGetCommandArg
readExternalData
class TracingConfigurationGetCommandArg extends TracingConfigurationCommandArg { /** */ private static final long serialVersionUID = 0; /** */ @Argument(description = "Tracing span scope") @EnumDescription( names = { "DISCOVERY", "EXCHANGE", "COMMUNICATIO...
super.readExternalData(protoVer, in); scope = U.readEnum(in, Scope.class); label = U.readString(in);
371
44
415
<methods>public non-sealed void <init>() <variables>private static final long serialVersionUID
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/tracing/TracingConfigurationItem.java
TracingConfigurationItem
equals
class TracingConfigurationItem extends IgniteDataTransferObject { /** */ private static final long serialVersionUID = 0L; /** * Specifies the {@link Scope} of a trace's root span to which some specific tracing configuration will be applied. * It's a mandatory attribute. */ private Scope ...
if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; TracingConfigurationItem that = (TracingConfigurationItem)o; if (scope != that.scope) return false; if (lb != null ? !lb.equals(that.lb) : that.lb != null...
1,229
176
1,405
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/tx/TxCommand.java
AbstractTxCommandArg
nodeDescription
class AbstractTxCommandArg extends IgniteDataTransferObject { // No-op. } /** * Provides text descrition of a cluster node. * * @param node Node. */ static String nodeDescription(ClusterNode node) {<FILL_FUNCTION_BODY>
return node.getClass().getSimpleName() + " [id=" + node.id() + ", addrs=" + node.addresses() + ", order=" + node.order() + ", ver=" + node.version() + ", isClient=" + node.isClient() + ", consistentId=" + node.consistentId() + "]";
78
98
176
<methods>public Command<?,?> command(java.lang.String) ,public Iterator<Entry<java.lang.String,Command<?,?>>> commands() <variables>private final Map<java.lang.String,Command<?,?>> commands
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/tx/TxVerboseInfo.java
TxVerboseInfo
readExternalData
class TxVerboseInfo extends IgniteDataTransferObject { /** */ private static final long serialVersionUID = 0L; /** Near xid version. */ private GridCacheVersion nearXidVer; /** Local node id. */ private UUID locNodeId; /** Local node consistent id. */ private Object locNodeConsistentI...
nearXidVer = (GridCacheVersion)in.readObject(); locNodeId = U.readUuid(in); locNodeConsistentId = in.readObject(); nearNodeId = U.readUuid(in); nearNodeConsistentId = in.readObject(); txMappingType = TxMappingType.fromOrdinal(in.readByte()); dhtNodeId = U.readUui...
1,704
178
1,882
<methods>public non-sealed void <init>() ,public byte getProtocolVersion() ,public void readExternal(java.io.ObjectInput) throws java.io.IOException, java.lang.ClassNotFoundException,public void writeExternal(java.io.ObjectOutput) throws java.io.IOException<variables>private static final int MAGIC,protected static fina...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/management/wal/WalTask.java
WalJob
run
class WalJob extends VisorJob<WalDeleteCommandArg, Collection<String>> { /** */ private static final long serialVersionUID = 0L; /** Auto injected logger */ @LoggerResource private transient IgniteLogger log; /** * @param arg WAL task argument. * @pa...
try { GridKernalContext cctx = ignite.context(); GridCacheDatabaseSharedManager dbMgr = (GridCacheDatabaseSharedManager)cctx.cache().context().database(); FileWriteAheadLogManager wal = (FileWriteAheadLogManager)cctx.cache().context().wal(); ...
1,487
204
1,691
<methods>public non-sealed void <init>() ,public Map<? extends org.apache.ignite.compute.ComputeJob,org.apache.ignite.cluster.ClusterNode> map(List<org.apache.ignite.cluster.ClusterNode>, VisorTaskArgument<org.apache.ignite.internal.management.wal.WalDeleteCommandArg>) ,public final org.apache.ignite.internal.managemen...
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/internal/managers/collision/GridCollisionManager.java
GridCollisionManager
onCollision
class GridCollisionManager extends GridManagerAdapter<CollisionSpi> { /** Reference for external listener. */ private final AtomicReference<CollisionExternalListener> extLsnr = new AtomicReference<>(); /** * @param ctx Grid kernal context. */ public GridCollisionManager(GridKernalCont...
if (enabled()) { if (log.isDebugEnabled()) log.debug("Resolving job collisions [waitJobs=" + waitJobs + ", activeJobs=" + activeJobs + ']'); getSpi().onCollision(new CollisionContext() { /** {@inheritDoc} */ @Override public Collection<Co...
671
185
856
<methods>public void collectGridNodeData(org.apache.ignite.spi.discovery.DiscoveryDataBag) ,public void collectJoiningNodeData(org.apache.ignite.spi.discovery.DiscoveryDataBag) ,public org.apache.ignite.internal.GridComponent.DiscoveryDataExchangeType discoveryDataType() ,public boolean enabled() ,public void onAfterSp...