Skip to content

gRPC support for ArcadeDB#2462

Closed
oc007us wants to merge 37 commits into
ArcadeData:mainfrom
oc007us:main
Closed

gRPC support for ArcadeDB#2462
oc007us wants to merge 37 commits into
ArcadeData:mainfrom
oc007us:main

Checkpoint Commit

33e55f5
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Sep 9, 2025 in 0s

91 new issues (0 max.) of at least severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 91
           

Complexity increasing per file
==============================
- network/src/main/java/com/arcadedb/remote/RemoteImmutableDocument.java  20
- network/src/main/java/com/arcadedb/remote/RemoteImmutableVertex.java  28
- server/src/main/java/com/arcadedb/server/monitor/ServerMonitor.java  21
- network/src/main/java/com/arcadedb/remote/RemoteDocumentType.java  3
- network/src/main/java/com/arcadedb/remote/RemoteServer.java  13
- grpcw/src/main/java/com/arcadedb/server/grpc/GrpcMetricsInterceptor.java  3
- grpcw/src/main/java/com/arcadedb/server/grpc/CompressionAwareService.java  13
- grpcw/src/main/java/com/arcadedb/server/grpc/ArcadeDbGrpcService.java  657
- grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java  190
- grpcw/src/main/java/com/arcadedb/server/grpc/GrpcServerPlugin.java  55
- grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcTransactionExplicitLock.java  6
- grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabaseWithCompression.java  1
- grpcw/src/main/java/com/arcadedb/server/grpc/GrpcAuthInterceptor.java  22
- grpcw/src/main/java/com/arcadedb/server/grpc/GrpcCompressionInterceptor.java  11
- grpcw/src/main/java/com/arcadedb/server/grpc/GrpcLoggingInterceptor.java  9
- grpc-client/src/test/java/com/arcadedb/remote/grpc/ArcadeDbHTTPTvsGRPCBench.java  28
- grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcServer.java  39
- grpcw/src/main/java/com/arcadedb/server/grpc/ArcadeDbGrpcAdminService.java  89
- grpc-client/src/main/java/com/arcadedb/remote/grpc/utils/ProtoUtils.java  102
- grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcConfig.java  7
         

See the complete overview on Codacy

Annotations

Check warning on line 126 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L126

Avoid unused constructor parameters such as 'grpcPort'.

Check notice on line 588 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L588

Unnecessary use of fully qualified name 'io.grpc.StatusException' due to existing import 'io.grpc.StatusException'

Check warning on line 1052 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L1052

Avoid using a branching statement as the last in a loop.

Check notice on line 1594 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L1594

Unnecessary use of fully qualified name 'com.arcadedb.database.Record' due to existing import 'com.arcadedb.database.Record'

Check notice on line 1598 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L1598

Unnecessary use of fully qualified name 'com.arcadedb.database.Record' due to existing import 'com.arcadedb.database.Record'

Check notice on line 1656 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L1656

Unnecessary use of fully qualified name 'java.util.concurrent.CountDownLatch' due to existing import 'java.util.concurrent.CountDownLatch'

Check notice on line 1657 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L1657

Unnecessary use of fully qualified name 'java.util.concurrent.atomic.AtomicReference' due to existing import 'java.util.concurrent.atomic.AtomicReference'

Check notice on line 1658 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L1658

Unnecessary use of fully qualified name 'java.util.concurrent.atomic.AtomicLong' due to existing import 'java.util.concurrent.atomic.AtomicLong'

Check notice on line 1662 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L1662

Unnecessary use of fully qualified name 'java.util.concurrent.atomic.AtomicReference' due to existing import 'java.util.concurrent.atomic.AtomicReference'

Check notice on line 1665 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L1665

Unnecessary use of fully qualified name 'java.util.concurrent.atomic.AtomicReference' due to existing import 'java.util.concurrent.atomic.AtomicReference'

Check notice on line 1675 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L1675

Unnecessary use of fully qualified name 'java.util.concurrent.atomic.AtomicReference' due to existing import 'java.util.concurrent.atomic.AtomicReference'

Check notice on line 1916 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L1916

Avoid unused private methods such as 'txNone()'.

Check notice on line 2204 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L2204

Unnecessary use of fully qualified name 'java.util.concurrent.atomic.AtomicLong' due to existing import 'java.util.concurrent.atomic.AtomicLong'

Check notice on line 2205 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L2205

Use one line for each declaration, it enhances code readability.

Check warning on line 2231 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L2231

Perhaps 'txDebugEnabled' could be replaced by a local variable.

Check warning on line 2264 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L2264

Use equals() to compare object references.

Check notice on line 2315 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L2315

Unnecessary use of fully qualified name 'io.grpc.StatusRuntimeException' due to existing import 'io.grpc.StatusRuntimeException'

Check notice on line 2330 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L2330

Unnecessary use of fully qualified name 'java.util.concurrent.TimeUnit.MILLISECONDS' due to existing import 'java.util.concurrent.TimeUnit'

Check warning on line 2340 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L2340

Avoid unused method parameters such as 'request'.

Check notice on line 2340 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L2340

Avoid unused private methods such as 'callAsyncServerStreaming(String,long,Req,java.util.function.BiConsumer,StreamObserver)'.

Check warning on line 2384 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L2384

Avoid unused method parameters such as 'opName'.

Check notice on line 2387 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L2387

Unnecessary use of fully qualified name 'io.grpc.stub.ClientCallStreamObserver' due to existing import 'io.grpc.stub.ClientCallStreamObserver'

Check warning on line 2416 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L2416

Avoid unused method parameters such as 'opName'.

Check notice on line 2434 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L2434

Unnecessary use of fully qualified name 'io.grpc.StatusRuntimeException' due to existing import 'io.grpc.StatusRuntimeException'

Check notice on line 2437 in grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

grpc-client/src/main/java/com/arcadedb/remote/grpc/RemoteGrpcDatabase.java#L2437

Unnecessary use of fully qualified name 'io.grpc.StatusException' due to existing import 'io.grpc.StatusException'