[Daemon] Introduce the way to get Kotlin daemon compiler version

#KT-48294 In Progress
This commit is contained in:
Alexander Likhachev
2021-08-27 17:53:09 +03:00
committed by Space
parent 815329df15
commit 612b96bd54
8 changed files with 43 additions and 0 deletions
@@ -80,6 +80,9 @@ interface CompileService : Remote {
@Throws(RemoteException::class)
fun getDaemonInfo(): CallResult<String>
@Throws(RemoteException::class)
fun getKotlinVersion(): CallResult<String>
@Throws(RemoteException::class)
fun getDaemonJVMOptions(): CallResult<DaemonJVMOptions>
@@ -20,6 +20,8 @@ interface CompileServiceAsync {
suspend fun getDaemonInfo(): CompileService.CallResult<String>
suspend fun getKotlinVersion(): CompileService.CallResult<String>
suspend fun getDaemonJVMOptions(): CompileService.CallResult<DaemonJVMOptions>
suspend fun registerClient(aliveFlagPath: String?): CompileService.CallResult<Nothing>
@@ -58,6 +58,8 @@ class CompileServiceAsyncWrapper(
override suspend fun getDaemonInfo() =
rmiCompileService.getDaemonInfo()
override suspend fun getKotlinVersion() =
rmiCompileService.getKotlinVersion()
override suspend fun getDaemonJVMOptions() =
rmiCompileService.getDaemonJVMOptions()
@@ -144,6 +144,9 @@ class CompileServiceClientRMIWrapper(
asyncCompileService.getDaemonInfo()
}
override fun getKotlinVersion() = runBlocking {
asyncCompileService.getKotlinVersion()
}
override fun getDaemonJVMOptions() = runBlocking {
asyncCompileService.getDaemonJVMOptions()