Packages

c

bloop.launcher

LauncherMain

class LauncherMain extends AnyRef

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LauncherMain
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LauncherMain(clientIn: InputStream, clientOut: OutputStream, out: PrintStream, charset: Charset, shell: Shell, nailgunPort: Option[Int], startedServer: Promise[Unit])

Type Members

  1. type ConnectionResult = Either[Unit, Option[Socket]]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def cli(args0: Array[String]): LauncherStatus
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. def connectToBloopBspServer(bloopVersion: String, skipBspConnection: Boolean, bridge: BspBridge, serverJvmOptions: List[String]): Either[LauncherStatus, ConnectionResult]
  8. def detectServerState(bloopVersion: String): Option[ServerStatus]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def isValidBloopVersion(version: String): Option[Boolean]

    Checks that a bloop version can be used with the launcher.

    Checks that a bloop version can be used with the launcher. Compatible bloop versions are those that are the same or bigger than 1.1.2.

    version

    The bloop version we want to install if it's missing.

    returns

    Whether the version in compatible or not depending on if it can be parsed or not.

  16. def main(args: Array[String]): Unit
  17. val nailgunPort: Option[Int]
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. val out: PrintStream
  22. def recoverFromUninstalledServer(bloopVersion: String): Option[ServerStatus]

    Install the server by the universal method (install.py) or, if that fails, by resolving it.

    Install the server by the universal method (install.py) or, if that fails, by resolving it.

    When the server is not installed, we need to figure out a way to bring it to the user's computer. Therefore, we first try the install.py universal method to install bloop and all its scripts. This method can fail if, for example, python is not in the classpath or the installation script errors. As a fallback, we resolve bloop with coursier and execute an embedded cli as the last attempt to obtain a bloop instance running. This method does not depend on bloop, it just requires internet connection.

    bloopVersion

    The version we want to install, passed in by the client.

    returns

    An optional server state depending on whether any of the installation method succeeded.

  23. def runLauncher(bloopVersionToInstall: String, skipBspConnection: Boolean, serverJvmOptions: List[String]): LauncherStatus
  24. val shell: Shell
  25. def startServerViaScriptInBackground(binary: List[String], jvmOptions: List[String]): Unit

    Start a server in the background by using the python script bloop server.

    Start a server in the background by using the python script bloop server.

    This operation can take a while in some operating systems (most notably Windows, Unix is fast). After running a thread in the background, we will wait until the server is up.

    binary

    The list of arguments that make the python binary script we want to run.

  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped