class LauncherMain extends AnyRef
- Alphabetic
- By Inheritance
- LauncherMain
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cli(args0: Array[String]): LauncherStatus
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def connectToBloopBspServer(bloopVersion: String, skipBspConnection: Boolean, bridge: BspBridge, serverJvmOptions: List[String]): Either[LauncherStatus, ConnectionResult]
- def detectServerState(bloopVersion: String): Option[ServerStatus]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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.
- def main(args: Array[String]): Unit
- val nailgunPort: Option[Int]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val out: PrintStream
-
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.
- def runLauncher(bloopVersionToInstall: String, skipBspConnection: Boolean, serverJvmOptions: List[String]): LauncherStatus
- val shell: Shell
-
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )