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/spi/systemview/view/sql/SqlIndexView.java
SqlIndexView
columns
class SqlIndexView { /** Table. */ private final TableDescriptor tbl; /** Index. */ private final IndexDescriptor idx; /** * @param tbl Table information. * @param idx Index information. */ public SqlIndexView(TableDescriptor tbl, IndexDescriptor idx) { this.tbl = tbl; ...
return idx.keyDefinitions().entrySet().stream() .map(fld -> '"' + fld.getKey() + '"' + (fld.getValue().order().sortOrder() == SortOrder.DESC ? " DESC" : " ASC")) .collect(Collectors.joining(", "));
814
82
896
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/spi/systemview/view/sql/SqlTableColumnView.java
SqlTableColumnView
affinityColumn
class SqlTableColumnView { /** Table. */ private final TableDescriptor tbl; /** Query property. */ private final GridQueryProperty prop; /** * @param tbl Table. * @param prop Column. */ public SqlTableColumnView(TableDescriptor tbl, GridQueryProperty prop) { this.tbl = t...
return !tbl.type().customAffinityKeyMapper() && (F.eq(prop.name(), tbl.type().affinityKey()) || (F.isEmpty(tbl.type().affinityKey()) && pk()));
503
57
560
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/ssl/AbstractSslContextFactory.java
AbstractSslContextFactory
createSslContext
class AbstractSslContextFactory implements Factory<SSLContext> { /** */ private static final long serialVersionUID = 0L; /** Default SSL protocol. */ public static final String DFLT_SSL_PROTOCOL = "TLS"; /** SSL protocol. */ protected String proto = DFLT_SSL_PROTOCOL; /** Enabled cipher s...
checkParameters(); KeyManager[] keyMgrs = createKeyManagers(); TrustManager[] trustMgrs = createTrustManagers(); try { SSLContext ctx = SSLContext.getInstance(proto); if (cipherSuites != null || protocols != null) { SSLParameters sslParameters...
948
259
1,207
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/stream/StreamTransformer.java
EntryProcessorWrapper
classLoader
class EntryProcessorWrapper<K, V> extends StreamTransformer<K, V> implements GridPeerDeployAware { /** */ private static final long serialVersionUID = 0L; /** */ private CacheEntryProcessor<K, V, Object> ep; /** */ private transient ClassLoader ldr; /** ...
if (ldr == null) ldr = U.detectClassLoader(deployClass()); return ldr;
243
35
278
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/thread/IgniteThreadFactory.java
IgniteThreadFactory
newThread
class IgniteThreadFactory implements ThreadFactory { /** Ignite instance name. */ private final String igniteInstanceName; /** Thread name. */ private final String threadName; /** Index generator for threads. */ private final AtomicInteger idxGen = new AtomicInteger(); /** */ private ...
Thread thread = new IgniteThread(igniteInstanceName, threadName, r, idxGen.incrementAndGet(), -1, plc); if (eHnd != null) thread.setUncaughtExceptionHandler(eHnd); return thread;
585
70
655
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/util/AttributeNodeFilter.java
AttributeNodeFilter
apply
class AttributeNodeFilter implements IgnitePredicate<ClusterNode> { /** */ private static final long serialVersionUID = 0L; /** Attributes. */ private final Map<String, Object> attrs; /** * Creates new node filter with a single attribute value. * * @param attrName Attribute name. ...
Map<String, Object> nodeAttrs = node.attributes(); for (Map.Entry<String, Object> attr : attrs.entrySet()) { if (!F.eq(nodeAttrs.get(attr.getKey()), attr.getValue())) return false; } return true;
324
78
402
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/apache/ignite/util/deque/FastSizeDeque.java
Iter
pollFirst
class Iter implements Iterator<E> { /** */ private final Iterator<E> iter; /** */ private Iter(Iterator<E> iter) { this.iter = iter; } /** {@inheritDoc} */ @Override public boolean hasNext() { return iter.hasNext(); } /**...
E res = deque.pollFirst(); if (res != null) adder.decrement(); return res;
766
40
806
<no_super_class>
apache_ignite
ignite/modules/core/src/main/java/org/jsr166/ConcurrentHashMap8.java
ConcurrentHashMap8
readObject
class ConcurrentHashMap8<K, V> implements Serializable { private static final long serialVersionUID = 7249069246763182397L; private Map<K, V> actualMap; /** * Reconstitutes the instance from a stream (that is, deserializes it). * * @param s the stream */ @SuppressWarnings("unchecke...
s.defaultReadObject(); actualMap = new ConcurrentHashMap<>(); for (; ; ) { K k = (K)s.readObject(); V v = (V)s.readObject(); if (k != null && v != null) { actualMap.put(k, v); } else break; } ...
199
97
296
<no_super_class>
apache_ignite
ignite/modules/dev-utils/src/main/java/org/apache/ignite/development/utils/DataEntryWrapper.java
DataEntryWrapper
toString
class DataEntryWrapper extends DataEntry { /** * Source DataEntry. */ private final DataEntry source; /** Strategy for the processing of sensitive data. */ private final ProcessSensitiveData sensitiveData; /** * Constructor. * * @param dataEntry Instance of {@link...
String str; if (sensitiveData == HIDE) return ""; if (sensitiveData == HASH) if (value != null) return Integer.toString(value.hashCode()); else return Integer.toString(co.hashCode()); if (value instanceof String) ...
781
325
1,106
<methods>public void <init>(int, org.apache.ignite.internal.processors.cache.KeyCacheObject, org.apache.ignite.internal.processors.cache.CacheObject, org.apache.ignite.internal.processors.cache.GridCacheOperation, org.apache.ignite.internal.processors.cache.version.GridCacheVersion, org.apache.ignite.internal.processor...
apache_ignite
ignite/modules/dev-utils/src/main/java/org/apache/ignite/development/utils/IgniteWalConverter.java
IgniteWalConverter
getCurrentWalFilePath
class IgniteWalConverter { /** * @param args Args. * @throws Exception If failed. */ public static void main(String[] args) { final IgniteWalConverterArguments parameters = IgniteWalConverterArguments.parse(System.out, args); if (parameters != null) convert(System.out...
String res = null; try { WALIterator walIter = it instanceof FilteredWalIterator ? U.field(it, "delegateWalIter") : it; Integer curIdx = U.field(walIter, "curIdx"); List<FileDescriptor> walFileDescriptors = U.field(walIter, "walFileDescriptors"); if (...
1,762
178
1,940
<no_super_class>
apache_ignite
ignite/modules/direct-io/src/main/java/org/apache/ignite/internal/processors/cache/persistence/file/AlignedBuffersDirectFileIOFactory.java
AlignedBuffersDirectFileIOFactory
createManagedBuffer
class AlignedBuffersDirectFileIOFactory implements FileIOFactory { /** Logger. */ private final IgniteLogger log; /** Page size from durable memory. */ private final int pageSize; /** Backup factory for files in case native is not available or not applicable. */ private final FileIOFactory bac...
assert !useBackupFactory : "Direct IO is disabled, aligned managed buffer creation is disabled now"; assert managedAlignedBuffers != null : "Direct buffers not available"; ByteBuffer allocate = AlignedBuffers.allocate(ioBlockSize, size).order(ByteOrder.nativeOrder()); managedAlignedBu...
1,143
107
1,250
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/DmlStatementsProcessor.java
ModifyingEntryProcessor
getRemoveClosure
class ModifyingEntryProcessor implements EntryProcessor<Object, Object, Boolean> { /** Value to expect. */ private final Object val; /** Action to perform on entry. */ private final IgniteInClosure<MutableEntry<Object, Object>> entryModifier; /** */ public ModifyingEntr...
assert node != null; assert key != null; IgniteInClosure<MutableEntry<Object, Object>> rmvC = RMV; if (node.version().compareTo(RMV_ANON_CLS_POS_CHANGED_SINCE) < 0) rmvC = RMV_OLD; return rmvC;
794
100
894
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/H2StatementCache.java
H2StatementCache
queryFlags
class H2StatementCache { /** Last usage. */ private volatile long lastUsage; /** */ private final LinkedHashMap<H2CachedStatementKey, PreparedStatement> lruStmtCache; /** * @param size Maximum number of statements this cache can store. */ H2StatementCache(int size) { lruStmtC...
return (byte)((distributedJoins ? 1 : 0) + (enforceJoinOrder ? 2 : 0));
714
34
748
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/H2TableEngine.java
H2TableEngine
createTable
class H2TableEngine implements TableEngine { /** */ private static GridH2RowDescriptor rowDesc0; /** */ private static H2TableDescriptor tblDesc0; /** */ private static GridH2Table resTbl0; /** */ private static IndexProcessor idxMgr0; /** * Creates table using given connect...
rowDesc0 = rowDesc; tblDesc0 = tblDesc; try { try (Statement s = conn.createStatement()) { s.execute(sql + " engine \"" + H2TableEngine.class.getName() + "\""); } tblDesc.table(resTbl0); return resTbl0; } finally...
317
129
446
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/QueryParameters.java
QueryParameters
toSingleBatchedArguments
class QueryParameters { /** Arguments. */ private final Object[] args; /** Partitions. */ private final int[] parts; /** Timeout. */ private final int timeout; /** Lazy flag. */ private final boolean lazy; /** Page size. */ private final int pageSize; /** Data page scan ...
return new QueryParameters( args, this.parts, this.timeout, this.lazy, this.pageSize, this.dataPageScanEnabled, this.nestedTxMode, this.autoCommit, null, this.updateBatchSize );
1,066
80
1,146
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2Cursor.java
GridH2Cursor
next
class GridH2Cursor implements Cursor { /** */ public static final Cursor EMPTY = new Cursor() { @Override public Row get() { return null; } @Override public SearchRow getSearchRow() { return null; } @Override public boolean next() { r...
cur = iter.hasNext() ? iter.next() : null; return cur != null;
329
29
358
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2ProxySpatialIndex.java
GridH2ProxySpatialIndex
findByGeometry
class GridH2ProxySpatialIndex extends GridH2ProxyIndex implements SpatialIndex { /** * * @param tbl Table. * @param name Name of the proxy index. * @param colsList Column list for the proxy index. * @param idx Target index. */ public GridH2ProxySpatialIndex(GridH2Table tbl, ...
GridQueryRowDescriptor desc = ((GridH2Table)idx.getTable()).rowDescriptor(); return ((SpatialIndex)idx).findByGeometry(filter, prepareProxyIndexRow(desc, first), prepareProxyIndexRow(desc, last), prepareProxyIndexRow(desc, intersection));
260
76
336
<methods>public void <init>(org.apache.ignite.internal.processors.query.h2.opt.GridH2Table, java.lang.String, List<IndexColumn>, Index) ,public void add(Session, Row) ,public boolean canGetFirstOrLast() ,public void checkRename() ,public void close(Session) ,public IndexLookupBatch createLookupBatch(TableFilter[], int)...
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/H2PlainRowPair.java
H2PlainRowPair
setValue
class H2PlainRowPair extends H2Row { /** */ private Value v1; /** */ private Value v2; /** * @param v1 First value. * @param v2 Second value. */ public H2PlainRowPair(Value v1, Value v2) { this.v1 = v1; this.v2 = v2; } /** {@inheritDoc} */ @Override ...
if (idx == 0) v1 = v; else { assert idx == 1 : idx; v2 = v; }
279
42
321
<methods>public non-sealed void <init>() ,public void commit() ,public long expireTime() ,public int getByteCount(Data) ,public Row getCopy() ,public long getKey() ,public int getMemory() ,public int getSessionId() ,public Value[] getValueList() ,public int getVersion() ,public abstract boolean indexSearchRow() ,public...
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/H2PlainRowSingle.java
H2PlainRowSingle
setValue
class H2PlainRowSingle extends H2Row { /** */ private Value v; /** * @param v Value. */ public H2PlainRowSingle(Value v) { this.v = v; } /** {@inheritDoc} */ @Override public int getColumnCount() { return 1; } /** {@inheritDoc} */ @Override public Val...
assert idx == 0 : idx; this.v = v;
239
21
260
<methods>public non-sealed void <init>() ,public void commit() ,public long expireTime() ,public int getByteCount(Data) ,public Row getCopy() ,public long getKey() ,public int getMemory() ,public int getSessionId() ,public Value[] getValueList() ,public int getVersion() ,public abstract boolean indexSearchRow() ,public...
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/QueryContextKey.java
QueryContextKey
hashCode
class QueryContextKey { /** */ private final UUID nodeId; /** */ private final long qryId; /** */ private final int segmentId; /** * Constructor. * * @param nodeId The node who initiated the query. * @param qryId The query ID. * @param segmentId Index segment ID. ...
int res = nodeId.hashCode(); res = 31 * res + (int)(qryId ^ (qryId >>> 32)); res = 31 * res + segmentId; return res;
445
59
504
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/join/DistributedJoinContext.java
DistributedJoinContext
nodeForPartition
class DistributedJoinContext { /** */ private final AffinityTopologyVersion topVer; /** */ private final Map<UUID, int[]> partsMap; /** */ private final UUID originNodeId; /** */ private final long qryId; /** */ private final int segment; /** */ private final int pag...
UUID[] nodeIds = partsNodes; if (nodeIds == null) { assert partsMap != null; nodeIds = new UUID[cctx.affinity().partitions()]; for (Map.Entry<UUID, int[]> e : partsMap.entrySet()) { UUID nodeId = e.getKey(); int[] nodeParts = e.getV...
1,387
183
1,570
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/join/SegmentKey.java
SegmentKey
equals
class SegmentKey { /** */ private final ClusterNode node; /** */ private final int segmentId; /** * Constructor. * * @param node Node. * @param segmentId Segment ID. */ public SegmentKey(ClusterNode node, int segmentId) { assert node != null; this.node...
if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SegmentKey key = (SegmentKey)o; return segmentId == key.segmentId && node.id().equals(key.node.id());
264
80
344
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/join/SourceKey.java
SourceKey
hashCode
class SourceKey { /** */ private final UUID ownerId; /** */ private final int segmentId; /** */ private final int batchLookupId; /** * @param ownerId Owner node ID. * @param segmentId Index segment ID. * @param batchLookupId Batch lookup ID. */ public SourceKey(UUI...
int hash = ownerId.hashCode(); hash = 31 * hash + segmentId; hash = 31 * hash + batchLookupId; return hash;
274
47
321
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sql/GridSqlElement.java
GridSqlElement
child
class GridSqlElement implements GridSqlAst { /** */ private final List<GridSqlAst> children; /** */ private GridSqlType resultType; /** * @param children Initial child list. */ protected GridSqlElement(List<GridSqlAst> children) { assert children != null; this.childr...
if (child == null) throw new NullPointerException(); children.set(idx, child);
552
30
582
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sql/GridSqlFunction.java
GridSqlFunction
getSQL
class GridSqlFunction extends GridSqlElement { /** */ private static final Map<String, GridSqlFunctionType> TYPE_MAP = new HashMap<>(); /* * */ static { for (GridSqlFunctionType type : GridSqlFunctionType.values()) TYPE_MAP.put(type.name(), type); } /** */ pri...
StatementBuilder buff = new StatementBuilder(); if (schema != null) buff.append(Parser.quoteIdentifier(schema)).append('.'); // We don't need to quote identifier as long as H2 never does so with function names when generating plan SQL. // On the other hand, quoting identif...
453
643
1,096
<methods>public org.apache.ignite.internal.processors.query.h2.sql.GridSqlElement addChild(org.apache.ignite.internal.processors.query.h2.sql.GridSqlAst) ,public E child() ,public E child(int) ,public void child(int, E) ,public boolean equals(java.lang.Object) ,public int hashCode() ,public org.apache.ignite.internal.p...
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sql/GridSqlQuery.java
GridSqlQuery
child
class GridSqlQuery extends GridSqlStatement implements GridSqlAst { /** */ public static final int OFFSET_CHILD = 0; /** */ public static final int LIMIT_CHILD = 1; /** */ protected List<GridSqlSortColumn> sort = new ArrayList<>(); /** */ private GridSqlAst offset; /** * @re...
switch (childIdx) { case OFFSET_CHILD: return maskNull(offset, GridSqlPlaceholder.EMPTY); case LIMIT_CHILD: return maskNull(limit, GridSqlPlaceholder.EMPTY); default: throw new IllegalStateException("Child index: " + childIdx...
1,134
89
1,223
<methods>public non-sealed void <init>() ,public org.apache.ignite.internal.processors.query.h2.sql.GridSqlStatement explain(boolean) ,public boolean explain() ,public abstract java.lang.String getSQL() ,public void limit(org.apache.ignite.internal.processors.query.h2.sql.GridSqlAst) ,public org.apache.ignite.internal....
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sql/GridSqlUnion.java
GridSqlUnion
size
class GridSqlUnion extends GridSqlQuery { /** */ public static final int LEFT_CHILD = 2; /** */ public static final int RIGHT_CHILD = 3; /** */ private SelectUnion.UnionType unionType; /** */ private GridSqlQuery right; /** */ private GridSqlQuery left; /** {@inheritDoc}...
return 4; // OFFSET + LIMIT + LEFT + RIGHT
1,082
20
1,102
<methods>public non-sealed void <init>() ,public void addSort(org.apache.ignite.internal.processors.query.h2.sql.GridSqlSortColumn) ,public E child() ,public E child(int) ,public void child(int, E) ,public void clearSort() ,public boolean hasOffsetLimit() ,public org.apache.ignite.internal.processors.query.h2.sql.GridS...
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sys/view/SqlAbstractLocalSystemView.java
SqlAbstractLocalSystemView
toStringSafe
class SqlAbstractLocalSystemView extends SqlAbstractSystemView { /** * @param tblName Table name. * @param desc Description. * @param ctx Context. * @param indexes Indexes. * @param cols Columns. */ protected SqlAbstractLocalSystemView(String tblName, String desc, GridKernalContext...
if (obj == null) return null; else { try { return obj.toString(); } catch (Exception e) { try { return "Failed to convert object to string: " + e.getMessage(); } catch (Ex...
1,140
103
1,243
<methods>public void <init>(java.lang.String, java.lang.String, org.apache.ignite.internal.GridKernalContext, Column[], java.lang.String[]) ,public boolean canGetRowCount() ,public Column[] getColumns() ,public java.lang.String getCreateSQL() ,public java.lang.String getDescription() ,public java.lang.String[] getIndex...
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sys/view/SqlAbstractSystemView.java
SqlAbstractSystemView
getCreateSQL
class SqlAbstractSystemView implements SqlSystemView { /** Default row count approximation. */ protected static final long DEFAULT_ROW_COUNT_APPROXIMATION = 100L; /** Table name. */ protected final String tblName; /** Description. */ protected final String desc; /** Grid context. */ p...
StringBuilder sql = new StringBuilder(); sql.append("CREATE TABLE " + getTableName() + '('); boolean isFirst = true; for (Column col : getColumns()) { if (isFirst) isFirst = false; else sql.append(", "); sql.append(...
661
111
772
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/AbstractReduceIndexAdapter.java
AbstractReduceIndexAdapter
getRowCount
class AbstractReduceIndexAdapter extends BaseIndex { /** * @param ctx Context. * @param tbl Table. * @param name Index name. * @param type Type. * @param cols Columns. */ protected AbstractReduceIndexAdapter(GridKernalContext ctx, Table tbl, String name, I...
Cursor c = find(ses, null, null); long cnt = 0; while (c.next()) cnt++; return cnt;
643
48
691
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/ReduceIndexIterator.java
ReduceIndexIterator
close
class ReduceIndexIterator implements Iterator<List<?>>, AutoCloseable { /** Reduce query executor. */ private final GridReduceQueryExecutor rdcExec; /** Participating nodes. */ private final Collection<ClusterNode> nodes; /** Query run. */ private final ReduceQueryRun run; /** Query reque...
try (TraceSurroundings ignored = MTC.support(tracing.create(SQL_ITER_CLOSE, MTC.span()))) { releaseIfNeeded(); }
919
49
968
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/ReduceResultPage.java
ReduceResultPage
rows
class ReduceResultPage { /** */ private final UUID src; /** */ private final GridQueryNextPageResponse res; /** */ private final int rowsInPage; /** */ private Iterator<Value[]> rows; /** */ private boolean last; /** * @param ctx Kernal context. * @param src So...
Iterator<Value[]> r = rows; assert r != null; rows = null; return r;
1,000
37
1,037
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/ReduceTableEngine.java
ReduceTableEngine
createTable
class ReduceTableEngine implements TableEngine { /** */ private static final ThreadLocal<ReduceTableWrapper> CREATED_TBL = new ThreadLocal<>(); /** * Create merge table over the given connection with provided index. * * @param conn Connection. * @param idx Index. * @return Created ...
assert CREATED_TBL.get() == null; ReduceTableWrapper tbl = new ReduceTableWrapper( d.schema, d.id, d.tableName, d.persistIndexes, d.persistData ); CREATED_TBL.set(tbl); return tbl;
275
91
366
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/SortedReduceIndexAdapter.java
SortedReduceIndexAdapter
compareRows
class SortedReduceIndexAdapter extends AbstractReduceIndexAdapter { /** */ private static final IndexType TYPE = IndexType.createNonUnique(false); /** */ private final SortedReducer delegate; /** * @param ctx Kernal context. * @param tbl Table. * @param name Index name, * @para...
if (rowData == compare) return 0; for (int i = 0, len = indexColumns.length; i < len; i++) { int idx = columnIds[i]; int sortType = indexColumns[i].sortType; Value v1 = rowData.getValue(idx); Value v2 = compare.getValue(idx); if ...
340
300
640
<methods>public void add(Session, Row) ,public boolean canGetFirstOrLast() ,public void checkRename() ,public void close(Session) ,public final Cursor find(Session, SearchRow, SearchRow) ,public Cursor findFirstOrLast(Session, boolean) ,public long getDiskSpaceUsed() ,public long getRowCount(Session) ,public long getRo...
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/UnsortedReducer.java
FetchingCursor
fetchRows
class FetchingCursor implements Cursor { /** */ private Iterator<Row> stream; /** */ private List<Row> rows; /** */ private int cur; /** * @param stream Stream of all the rows from remote nodes. */ FetchingCursor(Iterator<Row> stream) ...
// Take the current last block and set the position after last. rows = fetched.lastBlock(); cur = rows.size(); // Fetch stream. if (stream.hasNext()) { fetched.add(requireNonNull(stream.next())); // Evict block if we've fetch...
360
176
536
<methods>public void <init>(org.apache.ignite.internal.GridKernalContext) ,public boolean fetchedAll() ,public void setSources(Map<org.apache.ignite.cluster.ClusterNode,java.util.BitSet>) <variables>protected final java.util.concurrent.atomic.AtomicInteger activeSourcesCnt,protected Iterator<Value[]> iter,protected fin...
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/msg/GridH2Byte.java
GridH2Byte
writeTo
class GridH2Byte extends GridH2ValueMessage { /** */ private byte x; /** * */ public GridH2Byte() { // No-op. } /** * @param val Value. */ public GridH2Byte(Value val) { assert val.getType() == Value.BYTE : val.getType(); x = val.getByte(); ...
writer.setBuffer(buf); if (!super.writeTo(buf, writer)) return false; if (!writer.isHeaderWritten()) { if (!writer.writeHeader(directType(), fieldsCount())) return false; writer.onHeaderWritten(); } switch (writer.state()) ...
425
130
555
<methods>public non-sealed void <init>() ,public void onAckReceived() ,public boolean readFrom(java.nio.ByteBuffer, org.apache.ignite.plugin.extensions.communication.MessageReader) ,public abstract Value value(org.apache.ignite.internal.GridKernalContext) throws org.apache.ignite.IgniteCheckedException,public boolean w...
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/msg/GridH2CacheObject.java
GridH2CacheObject
value
class GridH2CacheObject extends GridH2ValueMessage { /** */ private CacheObject obj; /** * */ public GridH2CacheObject() { // No-op. } /** * @param v Value. * @throws IgniteCheckedException If failed. */ public GridH2CacheObject(GridH2ValueCacheObject v) th...
CacheObjectValueContext valCtx = ctx.query().objectContext(); obj.finishUnmarshal(valCtx, ctx.cache().context().deploy().globalLoader()); return new GridH2ValueCacheObject(obj, valCtx);
575
65
640
<methods>public non-sealed void <init>() ,public void onAckReceived() ,public boolean readFrom(java.nio.ByteBuffer, org.apache.ignite.plugin.extensions.communication.MessageReader) ,public abstract Value value(org.apache.ignite.internal.GridKernalContext) throws org.apache.ignite.IgniteCheckedException,public boolean w...
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/msg/GridH2DmlResponse.java
GridH2DmlResponse
unmarshall
class GridH2DmlResponse implements Message, GridCacheQueryMarshallable { /** */ private static final long serialVersionUID = 0L; /** Request id. */ @GridToStringInclude private long reqId; /** Number of updated rows. */ @GridToStringInclude private long updCnt; /** Error message. ...
if (errKeys != null || errKeysBytes == null) return; try { final ClassLoader ldr = U.resolveClassLoader(ctx.config()); if (m instanceof BinaryMarshaller) // To avoid deserializing of enum types. errKeys = BinaryUtils.rawArrayFromBina...
1,261
160
1,421
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/msg/GridH2Float.java
GridH2Float
writeTo
class GridH2Float extends GridH2ValueMessage { /** */ private float x; /** * */ public GridH2Float() { // No-op. } /** * @param val Value. */ public GridH2Float(Value val) { assert val.getType() == Value.FLOAT : val.getType(); x = val.getFloat()...
writer.setBuffer(buf); if (!super.writeTo(buf, writer)) return false; if (!writer.isHeaderWritten()) { if (!writer.writeHeader(directType(), fieldsCount())) return false; writer.onHeaderWritten(); } switch (writer.state()) ...
427
130
557
<methods>public non-sealed void <init>() ,public void onAckReceived() ,public boolean readFrom(java.nio.ByteBuffer, org.apache.ignite.plugin.extensions.communication.MessageReader) ,public abstract Value value(org.apache.ignite.internal.GridKernalContext) throws org.apache.ignite.IgniteCheckedException,public boolean w...
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/msg/GridH2IndexRangeResponse.java
GridH2IndexRangeResponse
readFrom
class GridH2IndexRangeResponse implements Message { /** */ public static final byte STATUS_OK = 0; /** */ public static final byte STATUS_ERROR = 1; /** */ public static final byte STATUS_NOT_FOUND = 2; /** */ private UUID originNodeId; /** */ private long qryId; /** */ ...
reader.setBuffer(buf); if (!reader.beforeMessageRead()) return false; switch (reader.state()) { case 0: batchLookupId = reader.readInt("batchLookupId"); if (!reader.isLastRead()) return false; reader...
1,413
434
1,847
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/msg/GridH2Integer.java
GridH2Integer
equals
class GridH2Integer extends GridH2ValueMessage { /** */ private int x; /** * */ public GridH2Integer() { // No-op. } /** * @param val Value. */ public GridH2Integer(Value val) { assert val.getType() == Value.INT : val.getType(); x = val.getInt()...
return obj == this || (obj != null && obj.getClass() == GridH2Integer.class && x == ((GridH2Integer)obj).x);
602
42
644
<methods>public non-sealed void <init>() ,public void onAckReceived() ,public boolean readFrom(java.nio.ByteBuffer, org.apache.ignite.plugin.extensions.communication.MessageReader) ,public abstract Value value(org.apache.ignite.internal.GridKernalContext) throws org.apache.ignite.IgniteCheckedException,public boolean w...
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/msg/GridH2RowRange.java
GridH2RowRange
writeTo
class GridH2RowRange implements Message { /** */ private static int FLAG_PARTIAL = 1; /** */ private int rangeId; /** */ @GridDirectCollection(Message.class) @GridToStringInclude private List<GridH2RowMessage> rows; /** */ private byte flags; /** * @param rangeId Ran...
writer.setBuffer(buf); if (!writer.isHeaderWritten()) { if (!writer.writeHeader(directType(), fieldsCount())) return false; writer.onHeaderWritten(); } switch (writer.state()) { case 0: if (!writer.writeByte("flags",...
781
189
970
<no_super_class>
apache_ignite
ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/msg/GridH2ValueMessageFactory.java
GridH2ValueMessageFactory
registerAll
class GridH2ValueMessageFactory implements MessageFactoryProvider { /** {@inheritDoc} */ @Override public void registerAll(IgniteMessageFactory factory) {<FILL_FUNCTION_BODY>} /** {@inheritDoc} */ @Override @Nullable public Message create(short type) { throw new UnsupportedOperationException();...
factory.register((short)-4, () -> GridH2Null.INSTANCE); factory.register((short)-5, GridH2Boolean::new); factory.register((short)-6, GridH2Byte::new); factory.register((short)-7, GridH2Short::new); factory.register((short)-8, GridH2Integer::new); factory.register((short)...
945
520
1,465
<no_super_class>
apache_ignite
ignite/modules/jta/src/main/java/org/apache/ignite/cache/jta/jndi/CacheJndiTmLookup.java
CacheJndiTmLookup
getTm
class CacheJndiTmLookup implements CacheTmLookup { /** */ private List<String> jndiNames; /** * Gets a list of JNDI names. * * @return List of JNDI names that is used to find TM. */ public List<String> getJndiNames() { return jndiNames; } /** * Sets a list of J...
assert jndiNames != null; assert !jndiNames.isEmpty(); try { InitialContext ctx = new InitialContext(); for (String s : jndiNames) { Object obj = ctx.lookup(s); if (obj != null && obj instanceof TransactionManager) r...
228
141
369
<no_super_class>
apache_ignite
ignite/modules/jta/src/main/java/org/apache/ignite/cache/jta/reflect/CacheReflectionTmLookup.java
CacheReflectionTmLookup
getTm
class CacheReflectionTmLookup implements CacheTmLookup { /** */ private String cls; /** */ private String mtd; /** * Creates uninitialized reflection TM lookup. */ public CacheReflectionTmLookup() { /* No-op. */ } /** * Creates generic TM lookup with given class and method ...
assert cls != null; assert mtd != null; try { return (TransactionManager)Class.forName(cls).getMethod(mtd).invoke(null); } catch (ClassNotFoundException e) { throw new IgniteException("Failed to find class: " + cls, e); } catch (NoSuchMet...
468
158
626
<no_super_class>
apache_ignite
ignite/modules/kubernetes/src/main/java/org/apache/ignite/spi/discovery/tcp/ipfinder/kubernetes/TcpDiscoveryKubernetesIpFinder.java
TcpDiscoveryKubernetesIpFinder
getRegisteredAddresses
class TcpDiscoveryKubernetesIpFinder extends TcpDiscoveryIpFinderAdapter { /** Kubernetes connection configuration */ private final KubernetesConnectionConfiguration cfg; /** * Creates an instance of Kubernetes IP finder. */ public TcpDiscoveryKubernetesIpFinder() { this(new Kubernete...
try { return new KubernetesServiceAddressResolver(cfg) .getServiceAddresses() .stream().map(addr -> new InetSocketAddress(addr, cfg.getDiscoveryPort())) .collect(Collectors.toCollection(ArrayList::new)); } catch (Exception e) { ...
692
95
787
<methods>public non-sealed void <init>() ,public void close() ,public void initializeLocalAddresses(Collection<InetSocketAddress>) throws org.apache.ignite.spi.IgniteSpiException,public boolean isShared() ,public void onSpiContextDestroyed() ,public void onSpiContextInitialized(org.apache.ignite.spi.IgniteSpiContext) t...
apache_ignite
ignite/modules/spring/src/main/java/org/apache/ignite/IgniteClientSpringBean.java
IgniteClientSpringBean
start
class IgniteClientSpringBean implements IgniteClient, SmartLifecycle { /** Default Ignite client {@link SmartLifecycle} phase. */ public static final int DFLT_IGNITE_CLI_LIFECYCLE_PHASE = 0; /** Whether this component is initialized and running. */ private volatile boolean isRunning; /** Ignite cl...
if (cfg == null) throw new IllegalArgumentException("Ignite client configuration must be set."); cli = Ignition.startClient(cfg); isRunning = true;
1,757
48
1,805
<no_super_class>
apache_ignite
ignite/modules/spring/src/main/java/org/apache/ignite/internal/processors/resource/GridSpringResourceContextImpl.java
GridSpringResourceContextImpl
unwrapTarget
class GridSpringResourceContextImpl implements GridSpringResourceContext { /** Spring application context injector. */ private GridResourceInjector springCtxInjector; /** Spring bean resources injector. */ private GridResourceInjector springBeanInjector; /** * @param springCtx Spring applicat...
if (target instanceof Advised) { try { return ((Advised)target).getTargetSource().getTarget(); } catch (Exception e) { throw new IgniteCheckedException("Failed to unwrap Spring proxy target [cls=" + target.getClass().getName() + ...
269
100
369
<no_super_class>
apache_ignite
ignite/modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/GridUriDeploymentClassLoader.java
GridUriDeploymentClassLoader
loadClassIsolated
class GridUriDeploymentClassLoader extends URLClassLoader { /** * Creates new instance of class loader. * * @param urls The URLs from which to load classes and resources. * @param parent The parent class loader for delegation. */ GridUriDeploymentClassLoader(URL[] urls, ClassLoader pare...
// First, check if the class has already been loaded. Class<?> cls = findLoadedClass(name); if (cls == null) { try { // Search classes in deployment unit. // NOTE: findClass(String) is not overridden since it is always called after //...
1,116
196
1,312
<no_super_class>
apache_ignite
ignite/modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/GridUriDeploymentDiscovery.java
GridUriDeploymentDiscovery
findResourcesInDirectory
class GridUriDeploymentDiscovery { /** * Enforces singleton. */ private GridUriDeploymentDiscovery() { // No-op. } /** * Load classes from given file. File could be either directory or JAR file. * * @param clsLdr Class loader to load files. * @param file Either dir...
assert dir.isDirectory(); for (File file : dir.listFiles()) { if (file.isDirectory()) { // Recurse down into directories. findResourcesInDirectory(clsLdr, file, rsrcs); } else { Class<? extends ComputeTask<?, ?>> rsrc ...
601
181
782
<no_super_class>
apache_ignite
ignite/modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/GridUriDeploymentSpringDocument.java
GridUriDeploymentSpringDocument
getTasks
class GridUriDeploymentSpringDocument { /** Initialized springs beans factory. */ private final XmlBeanFactory factory; /** List of tasks from package description. */ private List<Class<? extends ComputeTask<?, ?>>> tasks; /** * Creates new instance of configuration helper with given configur...
assert clsLdr != null; try { if (tasks == null) { tasks = new ArrayList<>(); Map<String, List> beans = factory.getBeansOfType(List.class); if (!beans.isEmpty()) { for (List<String> list : beans.values()) { ...
315
248
563
<no_super_class>
apache_ignite
ignite/modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/scanners/UriDeploymentScannerManager.java
UriDeploymentScannerManager
start
class UriDeploymentScannerManager implements UriDeploymentScannerContext { /** Ignite instance name. */ private final String igniteInstanceName; /** URI that scanner should looks after. */ @GridToStringExclude private final URI uri; /** Temporary deployment directory. */ private final File...
scannerThread = new IgniteSpiThread(igniteInstanceName, "grid-uri-scanner", log) { /** {@inheritDoc} */ @SuppressWarnings({"BusyWait"}) @Override protected void body() throws InterruptedException { try { while (!isInterrupted()) { ...
1,151
298
1,449
<no_super_class>
apache_ignite
ignite/modules/web/src/main/java/org/apache/ignite/cache/websession/WebSessionListener.java
AttributesProcessor
process
class AttributesProcessor implements EntryProcessor<String, WebSession, Void>, Externalizable { /** */ private static final long serialVersionUID = 0L; /** Updates list. */ private Collection<T2<String, Object>> updates; /** * Required by {@link Externalizable}. ...
if (!entry.exists()) return null; WebSession ses0 = entry.getValue(); WebSession ses = new WebSession(ses0.getId(), ses0); for (T2<String, Object> update : updates) { String name = update.get1(); assert name != null; ...
285
146
431
<no_super_class>
apache_ignite
ignite/modules/zookeeper/src/main/java/org/apache/ignite/spi/discovery/zk/internal/ZkBulkJoinContext.java
ZkBulkJoinContext
addJoinedNode
class ZkBulkJoinContext { /** */ List<T2<ZkJoinedNodeEvtData, Map<Integer, Serializable>>> nodes; /** * @param nodeEvtData Node event data. * @param discoData Discovery data for node. */ void addJoinedNode(ZkJoinedNodeEvtData nodeEvtData, Map<Integer, Serializable> discoData) {<FILL_FUNC...
if (nodes == null) nodes = new ArrayList<>(); nodes.add(new T2<>(nodeEvtData, discoData));
161
40
201
<no_super_class>
apache_ignite
ignite/modules/zookeeper/src/main/java/org/apache/ignite/spi/discovery/zk/internal/ZkDistributedCollectDataFuture.java
ZkDistributedCollectDataFuture
onTopologyChange
class ZkDistributedCollectDataFuture extends GridFutureAdapter<Void> { /** */ private final IgniteLogger log; /** */ private final String futPath; /** */ private final Set<Long> remainingNodes; /** */ private final Callable<Void> lsnr; /** * @param impl Disovery impl * ...
if (remainingNodes.isEmpty()) return; for (Iterator<Long> it = remainingNodes.iterator(); it.hasNext();) { Long nodeOrder = it.next(); if (!top.nodesByOrder.containsKey(nodeOrder)) { it.remove(); int remaining = remainingNodes.size(...
1,561
181
1,742
<methods>public non-sealed void <init>() ,public boolean cancel() throws org.apache.ignite.IgniteCheckedException,public IgniteInternalFuture<T> chain(IgniteClosure<? super IgniteInternalFuture<java.lang.Void>,T>) ,public IgniteInternalFuture<T> chain(IgniteOutClosure<T>) ,public IgniteInternalFuture<T> chain(IgniteClo...
apache_ignite
ignite/modules/zookeeper/src/main/java/org/apache/ignite/spi/discovery/zk/internal/ZkRuntimeState.java
ZkRuntimeState
onCloseStart
class ZkRuntimeState { /** */ ZkWatcher watcher; /** */ ZkAliveNodeDataWatcher aliveNodeDataWatcher; /** */ volatile Exception errForClose; /** */ final boolean reconnect; /** */ volatile ZookeeperClient zkClient; /** */ long internalOrder; /** */ int joinDa...
assert err != null; errForClose = err; ZookeeperClient zkClient = this.zkClient; if (zkClient != null) zkClient.onCloseStart();
636
60
696
<no_super_class>
wildfirechat_im-server
im-server/broker/src/main/java/cn/wildfirechat/push/PushServer.java
PushServer
pushMessageInternel
class PushServer { private static final Logger LOG = LoggerFactory.getLogger(PushServer.class); protected static final Gson gson = new GsonBuilder().disableHtmlEscaping().create(); public interface PushMessageType { int PUSH_MESSAGE_TYPE_NORMAL = 0; int PUSH_MESSAGE_TYPE_VOIP_INVITE = 1; ...
if (pushMessage.pushMessageType == PushMessageType.PUSH_MESSAGE_TYPE_NORMAL && StringUtil.isNullOrEmpty(pushContent)) { LOG.info("push content empty, deviceId {}", deviceId); return; } MemorySessionStore.Session session = sessionsStore.getSession(deviceId); int ...
586
508
1,094
<no_super_class>
wildfirechat_im-server
im-server/broker/src/main/java/cn/wildfirechat/server/ThreadPoolExecutorWrapper.java
ThreadPoolExecutorWrapper
execute
class ThreadPoolExecutorWrapper { private static final Logger LOG = LoggerFactory.getLogger(ThreadPoolExecutorWrapper.class); private final ScheduledExecutorService executor; private final int count; private final AtomicInteger runCounter; private final String name; public ThreadPoolExecutorWra...
int startCount = runCounter.incrementAndGet(); LOG.debug("Submit task and current task count {}", startCount); final long startTime = System.currentTimeMillis(); executor.execute(() -> { try { task.run(); } finally { int endCount =...
176
126
302
<no_super_class>
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/LoFileServer.java
LoFileServer
start
class LoFileServer { private static final org.slf4j.Logger Logger = LoggerFactory.getLogger(LoFileServer.class); private int port; private IMessagesStore messagesStore; private Channel channel; public LoFileServer(int port, IMessagesStore messagesStore) { this.port = port; this.message...
long start = System.currentTimeMillis(); // Configure the server. final EventLoopGroup bossGroup = new NioEventLoopGroup(1); final EventLoopGroup workerGroup = new NioEventLoopGroup(); try { final ServerBootstrap b = new ServerBootstrap(); b.group(bossGroup, workerGroup) .channel(Ni...
210
595
805
<no_super_class>
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/LoServer.java
LoServer
start
class LoServer { private static final org.slf4j.Logger Logger = LoggerFactory.getLogger(LoServer.class); private int port; private int adminPort; private IMessagesStore messagesStore; private ISessionsStore sessionsStore; private Channel channel; private Channel adminChannel; public LoServ...
long start = System.currentTimeMillis(); // Configure the server. final EventLoopGroup bossGroup = new NioEventLoopGroup(2); final EventLoopGroup workerGroup = new NioEventLoopGroup(); registerAllAction(); int bindingPort = port; try { final ServerBootstrap b = new ServerBootstrap(); ...
460
969
1,429
<no_super_class>
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/RestResult.java
RestResult
resultOf
class RestResult { int code; String msg; Object result; public static RestResult ok(Object object) { return resultOf(ErrorCode.ERROR_CODE_SUCCESS, ErrorCode.ERROR_CODE_SUCCESS.getMsg(), object); } public static RestResult ok() { return resultOf(ErrorCode.ERROR_CODE_SUCCESS, E...
RestResult result = new RestResult(); result.code = errorCode.code; result.msg = msg; result.result = object; return result;
370
45
415
<no_super_class>
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/Action.java
Result
doAction
class Result { Object data; ErrorCode errorCode; public Result(ErrorCode errorCode) { this.errorCode = errorCode; } public Result(ErrorCode errorCode, Object data) { this.data = data; this.errorCode = errorCode; } public Obje...
ErrorCode errorCode = preAction(request, response); boolean isSync = true; if (errorCode == ErrorCode.ERROR_CODE_SUCCESS) { //事务逻辑有缺陷,先注释掉 // if (isTransactionAction() && !(this instanceof IMAction)) { // DBUtil.beginTransaction(); // try { /...
222
277
499
<no_super_class>
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/CheckTokenAction.java
CheckTokenAction
action
class CheckTokenAction extends Action { private final RateLimiter mLimitCounter = new RateLimiter(10, 1); @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { if(closeApiVersion) { response.sendError(HttpResponseStatus.NOT_FOUND, "404 Not found!"); return true; } response.setStatus(HttpResponseStatus.OK); String userId = reques...
63
714
777
<methods>public non-sealed void <init>() ,public abstract boolean action(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public boolean doAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void init(io.moquette.server.config.IConfig) ...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/FileAction.java
FileAction
action
class FileAction extends Action { private static final org.slf4j.Logger Logger = LoggerFactory.getLogger(FileAction.class); @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} private static final Pattern INSECURE_URI = Pattern.compile(".*[<>&\"].*"); private st...
response.setHeader("Access-Control-Allow-Origin", "*"); if (false == Request.METHOD_GET.equalsIgnoreCase(request.getMethod())) { response.sendError(HttpResponseStatus.METHOD_NOT_ALLOWED, "Please use GET method to request file!"); return true; } if(ServerSetting....
380
659
1,039
<methods>public non-sealed void <init>() ,public abstract boolean action(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public boolean doAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void init(io.moquette.server.config.IConfig) ...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/IMAction.java
IMAction
action
class IMAction extends Action { @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} private void sendResponse(Response response, ErrorCode errorCode, byte[] contents) { response.setStatus(HttpResponseStatus.OK); if(contents == null) { Byte...
if (request.getNettyRequest() instanceof FullHttpRequest) { FullHttpRequest fullHttpRequest = (FullHttpRequest)request.getNettyRequest(); byte[] bytes = Utils.readBytesAndRewind(fullHttpRequest.content()); String str = new String(bytes); try { b...
158
787
945
<methods>public non-sealed void <init>() ,public abstract boolean action(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public boolean doAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void init(io.moquette.server.config.IConfig) ...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/RouteAction.java
RouteAction
action
class RouteAction extends Action { private static final Logger LOG = LoggerFactory.getLogger(RouteAction.class); @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} private void sendResponse(Response response, ErrorCode errorCode, byte[] contents) { respo...
if (request.getNettyRequest() instanceof FullHttpRequest) { response.setContentType("application/octet-stream"); response.setHeader("Access-Control-Allow-Origin", "*"); FullHttpRequest fullHttpRequest = (FullHttpRequest) request.getNettyRequest(); byte[] bytes ...
174
1,094
1,268
<methods>public non-sealed void <init>() ,public abstract boolean action(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public boolean doAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void init(io.moquette.server.config.IConfig) ...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/VersionAction.java
VersionAction
action
class VersionAction extends Action { @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { if(closeApiVersion) { response.sendError(HttpResponseStatus.NOT_FOUND, "404 Not found!"); return true; } response.setStatus(HttpResponseStatus.OK); try { ...
40
157
197
<methods>public non-sealed void <init>() ,public abstract boolean action(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public boolean doAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void init(io.moquette.server.config.IConfig) ...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/AddFriendRequestAction.java
AddFriendRequestAction
action
class AddFriendRequestAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputAddFriendRequest input = getRequestBody(request.getNettyRequest(), InputAddFriendRequest.class); if (StringUtil.isNullOrEmpty(input.getUserId()) || StringUtil.isNullOrEmpty(input.getFriendUid())) { sendRes...
65
265
330
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/AddGroupMemberAction.java
AddGroupMemberAction
action
class AddGroupMemberAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputAddGroupMember inputAddGroupMember = getRequestBody(request.getNettyRequest(), InputAddGroupMember.class); if (inputAddGroupMember.isValide()) { sendApiMessage(response, inputAddGroupMember.getOperator(), I...
65
206
271
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/AdminAction.java
AdminAction
preAction
class AdminAction extends Action { private static final org.slf4j.Logger LOG = LoggerFactory.getLogger(AdminAction.class); private static String SECRET_KEY = "123456"; private static boolean NO_CHECK_TIME = false; public static void setSecretKey(String secretKey) { SECRET_KEY = secretKey; } ...
if (!adminLimiter.isGranted("admin")) { return ErrorCode.ERROR_CODE_OVER_FREQUENCY; } if(APIPath.Health.equals(request.getUri())) { return ErrorCode.ERROR_CODE_SUCCESS; } String nonce = request.getHeader("nonce"); if (StringUtil.isNullOrEmpty(no...
715
474
1,189
<methods>public non-sealed void <init>() ,public abstract boolean action(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public boolean doAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void init(io.moquette.server.config.IConfig) ...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/AliasGetAction.java
AliasGetAction
action
class AliasGetAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputGetAlias input = getRequestBody(request.getNettyRequest(), InputGetAlias.class); List<FriendData> dataList = messagesStore.getFriendList(input.getOperator(), null, 0); List<String> list = new ArrayList<>(); ...
65
191
256
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/AliasPutAction.java
AliasPutAction
action
class AliasPutAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputUpdateAlias input = getRequestBody(request.getNettyRequest(), InputUpdateAlias.class); if(!StringUtil.isNullOrEmpty(input.getOperator()) && !StringUtil.isNullOrEmpty(input.getTargetId())) { WFCMessage.AddFr...
65
392
457
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/ApplicationGetUserInfoAction.java
ApplicationGetUserInfoAction
action
class ApplicationGetUserInfoAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputApplicationGetUserInfo inputUserToken = getRequestBody(request.getNettyRequest(), InputApplicationGetUserInfo.class); RestResult result; if (inputUserToken == null || StringUtil.isNullOrEmpty(inputUserToken.ge...
66
341
407
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/BlacklistAction.java
BlacklistAction
action
class BlacklistAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputBlacklistRequest inputData = getRequestBody(request.getNettyRequest(), InputBlacklistRequest.class); if (inputData != null && !StringUtil.isNullOrEmpty(inputData.getUserId()) && !StringUtil....
64
281
345
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/BlacklistGetAction.java
BlacklistGetAction
action
class BlacklistGetAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputUserId inputGetFriendList = getRequestBody(request.getNettyRequest(), InputUserId.class); List<FriendData> dataList = messagesStore.getFriendList(inputGetFriendList.getUserId(), null, 0); List<String> list = ne...
65
163
228
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/BlockUserAction.java
BlockUserAction
action
class BlockUserAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputOutputUserBlockStatus inputUserBlock = getRequestBody(request.getNettyRequest(), InputOutputUserBlockStatus.class); if (inputUserBlock != null && !StringUtil.isNullOrEmpty(inputUserBlock.getUserId())) { ...
64
275
339
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/BroadcastMessageAction.java
BroadcastMessageAction
action
class BroadcastMessageAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { BroadMessageData sendMessageData = getRequestBody(request.getNettyRequest(), BroadMessageData.class); if (BroadMessageData.isValide(sendMessageData) && !StringUtil.isNullOrEmpty(sendMessageData.getSender())) { s...
65
293
358
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/ChannelSubscriberAction.java
ChannelSubscriberAction
action
class ChannelSubscriberAction extends AdminAction { @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputSubscribeChannel inputSubscribeChannel = getRequestBody(request.getNettyRequest(), InputSubscribeChannel.class); if (inputSubscribeChannel != null && !io.netty.util.internal.StringUtil.isNullOrEmpty(inputSu...
44
326
370
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CheckUserOnlineAction.java
CheckUserOnlineAction
action
class CheckUserOnlineAction extends AdminAction { @Override public boolean isTransactionAction() { return false; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputGetUserInfo inputUserId = getRequestBody(request.getNettyRequest(), InputGetUserInfo.class); if (inputUserId == null || !StringUtil.isNullOrEmpty(inputUserId.getUserId())) { sendApiMessage(response, inputUs...
65
208
273
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CheckUserSubscribeChannelAction.java
CheckUserSubscribeChannelAction
action
class CheckUserSubscribeChannelAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputSubscribeChannel inputSubscribeChannel = getRequestBody(request.getNettyRequest(), InputSubscribeChannel.class); if (inputSubscribeChannel != null && !StringUtil.isNullOrEmpty(inputSubscribeChannel.getChann...
67
219
286
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateChannelAction.java
CreateChannelAction
action
class CreateChannelAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputCreateChannel inputCreateChannel = getRequestBody(request.getNettyRequest(), InputCreateChannel.class); if (inputCreateChannel != null && !StringUtil.isNullOrEmpty(inputCreateChannel.getName()) ...
64
369
433
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateChatroomAction.java
CreateChatroomAction
action
class CreateChatroomAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { FullHttpRequest fullHttpRequest = (FullHttpRequest)request.getNettyRequest(); byte[] bytes = Utils.readBytesAndRewind(fullHttpRequest.content()); String content = new String(bytes); InputCre...
65
293
358
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateGroupAction.java
CreateGroupAction
action
class CreateGroupAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputCreateGroup inputCreateGroup = getRequestBody(request.getNettyRequest(), InputCreateGroup.class); if (inputCreateGroup.isValide()) { sendApiMessage(response, inputCreateGroup.getOperator(), IMTopic.CreateGr...
64
289
353
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateRobotAction.java
CreateRobotAction
action
class CreateRobotAction extends AdminAction { private static final Logger LOG = LoggerFactory.getLogger(CreateRobotAction.class); @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputCreateRobot inputCreateRobot = getRequestBody(request.getNettyRequest(), InputCreateRobot.class); if (inputCreateRobot != null && !StringUtil.isNullOrEmpty(inputCreateRobot.getName())) { if...
88
446
534
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateUserAction.java
CreateUserAction
action
class CreateUserAction extends AdminAction { private static final Logger LOG = LoggerFactory.getLogger(CreateUserAction.class); @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputOutputUserInfo inputCreateUser = getRequestBody(request.getNettyRequest(), InputOutputUserInfo.class); if (inputCreateUser != null && !StringUtil.isNullOrEmpty(inputCreateUser.getName()) && ...
86
781
867
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/DestoryChatroomAction.java
DestoryChatroomAction
action
class DestoryChatroomAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { FullHttpRequest fullHttpRequest = (FullHttpRequest)request.getNettyRequest(); byte[] bytes = Utils.readBytesAndRewind(fullHttpRequest.content()); String content = new String(bytes); InputDes...
66
215
281
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/DestroyChannelAction.java
DestroyChannelAction
action
class DestroyChannelAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputChannelId inputCreateChannel = getRequestBody(request.getNettyRequest(), InputChannelId.class); if (inputCreateChannel != null && !StringUtil.isNullOrEmpty(inputCreateChannel.channelId)) { W...
65
314
379
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/DestroyUserAction.java
DestroyUserAction
action
class DestroyUserAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputDestroyUser inputDestroyUser = getRequestBody(request.getNettyRequest(), InputDestroyUser.class); if (inputDestroyUser != null && !StringUtil.isNullOrEmpty(inputDestroyUser.getUserId())) { ...
65
233
298
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/DismissGroupAction.java
DismissGroupAction
action
class DismissGroupAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputDismissGroup inputDismissGroup = getRequestBody(request.getNettyRequest(), InputDismissGroup.class); if (inputDismissGroup.isValide()) { sendApiMessage(response, inputDismissGroup.getOperator(), IMTopic.Dis...
66
213
279
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/FriendExtraPutAction.java
FriendExtraPutAction
action
class FriendExtraPutAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputUpdateFriendExtra input = getRequestBody(request.getNettyRequest(), InputUpdateFriendExtra.class); ErrorCode errorCode = messagesStore.setFriendExtraRequest(input.getOperator(), input.getTargetId(), input.getExtra(), new l...
65
107
172
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/FriendRelationAction.java
FriendRelationAction
action
class FriendRelationAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputUpdateFriendStatusRequest friendAdd = getRequestBody(request.getNettyRequest(), InputUpdateFriendStatusRequest.class); if (friendAdd != null && !StringUtil.isNullOrEmpty(friendAdd.getUserId()) ...
65
329
394
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/FriendRelationGetAction.java
FriendRelationGetAction
action
class FriendRelationGetAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputUserId inputGetFriendList = getRequestBody(request.getNettyRequest(), InputUserId.class); List<FriendData> dataList = messagesStore.getFriendList(inputGetFriendList.getUserId(), null, 0); List<String> list = ne...
66
183
249
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/GetAllUserAction.java
GetAllUserAction
action
class GetAllUserAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputGetUserList input = getRequestBody(request.getNettyRequest(), InputGetUserList.class); if (input != null && input.count > 0 && input.offset >= 0) { List<WFCMessage.User> users = messagesStore.getUserInfoLis...
65
238
303
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/GetChannelAction.java
GetChannelAction
action
class GetChannelAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputChannelId inputCreateChannel = getRequestBody(request.getNettyRequest(), InputChannelId.class); if (inputCreateChannel != null && !StringUtil.isNullOrEmpty(inputCreateChannel.channelId)) { W...
64
211
275
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/GetChatroomInfoAction.java
GetChatroomInfoAction
action
class GetChatroomInfoAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputGetChatroomInfo getChatroomInfo = getRequestBody(request.getNettyRequest(), InputGetChatroomInfo.class); String chatroomid = getChatroomInfo.getChatroomId(); if (!StringUtil.isNullOrEmpty(chatroomid)) { ...
66
242
308
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/GetChatroomMembersAction.java
GetChatroomMembersAction
action
class GetChatroomMembersAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputGetChatroomInfo getChatroomInfo = getRequestBody(request.getNettyRequest(), InputGetChatroomInfo.class); String chatroomid = getChatroomInfo.getChatroomId(); if (!StringUtil.isNullOrEmpty(chatroomid)) { ...
66
260
326
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/GetCommonGroupsAction.java
GetCommonGroupsAction
action
class GetCommonGroupsAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { StringPairPojo input = getRequestBody(request.getNettyRequest(), StringPairPojo.class); if (input != null && (!StringUtil.isNullOrEmpty(input.getFirst())) && (!StringUtil.isNullOrEmpty(input.getSecond()))) { ...
65
213
278
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/GetGroupInfoAction.java
GetGroupInfoAction
action
class GetGroupInfoAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputGetGroup inputGetGroup = getRequestBody(request.getNettyRequest(), InputGetGroup.class); if (inputGetGroup != null && (!StringUtil.isNullOrEmpty(inputGetGroup.getGroupId()))) { WFCMessage.G...
65
490
555
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/GetGroupMemberAction.java
GetGroupMemberAction
action
class GetGroupMemberAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputGetGroupMember input = getRequestBody(request.getNettyRequest(), InputGetGroupMember.class); if (input != null && (!StringUtil.isNullOrEmpty(input.getGroupId())) && (!StringUtil.isNullOrEmpt...
65
358
423
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...
wildfirechat_im-server
im-server/broker/src/main/java/com/xiaoleilu/loServer/action/admin/GetGroupMembersAction.java
GetGroupMembersAction
action
class GetGroupMembersAction extends AdminAction { @Override public boolean isTransactionAction() { return true; } @Override public boolean action(Request request, Response response) {<FILL_FUNCTION_BODY>} }
if (request.getNettyRequest() instanceof FullHttpRequest) { InputGetGroup inputGetGroup = getRequestBody(request.getNettyRequest(), InputGetGroup.class); if (inputGetGroup != null && (!StringUtil.isNullOrEmpty(inputGetGroup.getGroupId()))) { List<WFCMess...
65
406
471
<methods>public non-sealed void <init>() ,public static java.lang.String getSecretKey() ,public cn.wildfirechat.common.ErrorCode preAction(com.xiaoleilu.loServer.handler.Request, com.xiaoleilu.loServer.handler.Response) ,public static void setNoCheckTime(java.lang.String) ,public static void setSecretKey(java.lang.Stri...