added checkpoints debug shell command (#6574)

This commit is contained in:
Walter Oggioni
2020-08-25 11:10:25 +02:00
committed by GitHub
parent 57f4858a29
commit 49f598308b
7 changed files with 149 additions and 5 deletions

View File

@ -24,4 +24,11 @@ public class CheckpointShellCommand extends InteractiveShellCommand<FlowManagerR
public void dump() {
runDumpCheckpoints(ops());
}
@Command
@Man("Outputs the contents of all started flow checkpoints in a zip file")
@Usage("Outputs the contents of all started flow checkpoints in a zip file")
public void debug() {
runDebugCheckpoints(ops());
}
}

View File

@ -565,6 +565,11 @@ object InteractiveShell {
rpcOps.dumpCheckpoints()
}
@JvmStatic
fun runDebugCheckpoints(rpcOps: FlowManagerRPCOps) {
rpcOps.debugCheckpoints()
}
@JvmStatic
fun runRPCFromString(input: List<String>, out: RenderPrintWriter, context: InvocationContext<out Any>, cordaRPCOps: CordaRPCOps,
inputObjectMapper: ObjectMapper): Any? {