BloopRifle

object BloopRifle
class Object
trait Matchable
class Any

Type members

Classlikes

sealed abstract class BloopAboutFailure extends Product with Serializable
final case class BloopServerRuntimeInfo(bloopVersion: BloopVersion, jvmVersion: Int, javaHome: String)
final case class ParsingFailed(bloopAboutOutput: String) extends BloopAboutFailure

Value members

Concrete methods

def bsp(config: BloopRifleConfig, workingDir: Path, logger: BloopRifleLogger): BspConnection

Opens a BSP connection to a running bloop server.

Opens a BSP connection to a running bloop server.

Starts a thread to read output from the nailgun connection, and another one to pass input to it.

Returns:

A BspConnection object, that can be used to close the connection.

def check(config: BloopRifleConfig, logger: BloopRifleLogger): Boolean

Checks whether a bloop server is running at this host / port.

Checks whether a bloop server is running at this host / port.

Returns:

Whether a server is running or not.

def exit(config: BloopRifleConfig, workingDir: Path, logger: BloopRifleLogger): Int
def getCurrentBloopVersion(config: BloopRifleConfig, logger: BloopRifleLogger, workdir: Path, scheduler: ScheduledExecutorService): Either[BloopAboutFailure, BloopServerRuntimeInfo]
def startServer(config: BloopRifleConfig, scheduler: ScheduledExecutorService, logger: BloopRifleLogger, version: String, bloopJava: String): Future[Unit]

Starts a new bloop server.

Starts a new bloop server.

Returns:

A future, that gets completed when the server is done starting (and can thus be used).