-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDaemonRpc.java
More file actions
31 lines (23 loc) · 1.04 KB
/
Copy pathDaemonRpc.java
File metadata and controls
31 lines (23 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package io.github.randomcodespace.sonarpredict.cli;
import java.util.List;
import io.github.randomcodespace.sonarpredict.protocol.dto.AnalyzeRequest;
import io.github.randomcodespace.sonarpredict.protocol.dto.AnalyzeResponse;
import io.github.randomcodespace.sonarpredict.protocol.dto.PingResponse;
import io.github.randomcodespace.sonarpredict.protocol.dto.RuleMetadata;
/**
* The RPC surface the CLI commands depend on, so a command can be exercised
* against a stub without a live daemon. {@link DaemonClient} is the real,
* socket-backed implementation.
*/
public interface DaemonRpc {
/** Returns the daemon's liveness/identity payload. */
PingResponse ping();
/** Analyzes the requested files and returns the findings. */
AnalyzeResponse analyze(AnalyzeRequest request);
/** Returns static metadata for one rule key. */
RuleMetadata ruleMetadata(String ruleKey);
/** Returns static metadata for every rule the daemon knows. */
List<RuleMetadata> ruleCatalog();
/** Asks the daemon to stop. */
void shutdown();
}