Skip to content

Commit

Permalink
refactor: use full package name for src/main/kotlin/runner
Browse files Browse the repository at this point in the history
  • Loading branch information
jenspots committed Jul 20, 2024
1 parent 7658e99 commit 781e0f8
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/main/kotlin/Orchestrator.kt
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
package technology.idlab

import kotlinx.coroutines.TimeoutCancellationException
import kotlinx.coroutines.cancel
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.isActive
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withTimeout
import runner.Runner
import technology.idlab.intermediate.IRPipeline
import technology.idlab.intermediate.IRProcessor
import technology.idlab.intermediate.IRRunner
import technology.idlab.intermediate.IRStage
import technology.idlab.runner.Runner
import technology.idlab.util.Log

class Orchestrator(
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/runner/Runner.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package runner
package technology.idlab.runner

import kotlinx.coroutines.channels.Channel
import technology.idlab.intermediate.IRProcessor
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/runner/impl/grpc/GRPCRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import kotlinx.coroutines.flow.map
import kotlinx.coroutines.flow.receiveAsFlow
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import runner.Runner
import technology.idlab.intermediate.IRProcessor
import technology.idlab.intermediate.IRStage
import technology.idlab.runner.Runner
import technology.idlab.util.Log

/**
Expand Down
3 changes: 2 additions & 1 deletion src/main/kotlin/runner/impl/grpc/HostedGRPCRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import kotlin.random.Random
import kotlin.random.nextUInt
import kotlinx.coroutines.channels.Channel
import technology.idlab.extensions.rawPath
import technology.idlab.runner.Runner
import technology.idlab.util.ManagedProcess

/**
Expand All @@ -14,7 +15,7 @@ import technology.idlab.util.ManagedProcess
class HostedGRPCRunner
private constructor(
/** The channel to send messages to. */
fromProcessors: Channel<Payload>,
fromProcessors: Channel<Runner.Payload>,
/** The process which contains the gRPC server. */
process: ManagedProcess,
/** The configuration of the gRPC server. */
Expand Down
3 changes: 1 addition & 2 deletions src/main/kotlin/runner/impl/jvm/JVMRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ package technology.idlab.runner.impl.jvm

import arrow.core.zip
import kotlinx.coroutines.TimeoutCancellationException
import kotlinx.coroutines.cancel
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.isActive
import kotlinx.coroutines.launch
import kotlinx.coroutines.withTimeout
import runner.Runner
import technology.idlab.intermediate.IRArgument
import technology.idlab.intermediate.IRParameter
import technology.idlab.intermediate.IRProcessor
import technology.idlab.intermediate.IRStage
import technology.idlab.runner.Runner
import technology.idlab.util.Log

private const val STAGE_NO_CLASS = "Processor has no class key set."
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/runner/impl/jvm/Writer.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package technology.idlab.runner.impl.jvm

import kotlinx.coroutines.channels.Channel
import runner.Runner.Payload
import technology.idlab.runner.Runner
import technology.idlab.util.Log

class Writer(private val channel: Channel<Payload>, private val channelURI: String) {
class Writer(private val channel: Channel<Runner.Payload>, private val channelURI: String) {
suspend fun push(value: ByteArray) {
Log.shared.debug("'${value.decodeToString()}' -> [$channelURI]")
channel.send(Payload(channelURI, value))
channel.send(Runner.Payload(channelURI, value))
}
}
1 change: 1 addition & 0 deletions src/test/kotlin/runner/RunnerTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import technology.idlab.intermediate.IRArgument
import technology.idlab.intermediate.IRParameter
import technology.idlab.intermediate.IRProcessor
import technology.idlab.intermediate.IRStage
import technology.idlab.runner.Runner
import technology.idlab.util.Log

abstract class RunnerTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/runner/impl/jvm/JVMRunnerTest.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package runner.impl.jvm

import kotlinx.coroutines.channels.Channel
import runner.Runner
import runner.RunnerTest
import technology.idlab.runner.Runner
import technology.idlab.runner.impl.jvm.JVMRunner

class JVMRunnerTest : RunnerTest() {
Expand Down

0 comments on commit 781e0f8

Please sign in to comment.