object Launcher extends LauncherMain
- Alphabetic
- By Inheritance
- Launcher
- LauncherMain
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
ConnectionResult = Either[Unit, Option[Socket]]
- Definition Classes
- LauncherMain
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
- Definition Classes
- LauncherMain
-
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]
- Definition Classes
- LauncherMain
-
def
detectServerState(bloopVersion: String): Option[ServerStatus]
- Definition Classes
- LauncherMain
-
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.
- Definition Classes
- LauncherMain
-
def
main(args: Array[String]): Unit
- Definition Classes
- LauncherMain
-
val
nailgunPort: Option[Int]
- Definition Classes
- LauncherMain
-
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
- Definition Classes
- LauncherMain
-
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.
- Definition Classes
- LauncherMain
-
def
runLauncher(bloopVersionToInstall: String, skipBspConnection: Boolean, serverJvmOptions: List[String]): LauncherStatus
- Definition Classes
- LauncherMain
-
val
shell: Shell
- Definition Classes
- LauncherMain
-
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.
- Definition Classes
- LauncherMain
-
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( ... )