object State extends Serializable
- Alphabetic
- By Inheritance
- State
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- def apply(build: Build, pool: ClientPool, opts: CommonOptions, logger: Logger): State
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
loadActiveStateFor(configDir: AbsolutePath, pool: ClientPool, opts: CommonOptions, logger: Logger): Task[State]
Loads an state active for the given configuration directory.
Loads an state active for the given configuration directory.
- configDir
The configuration directory to load a state for.
- pool
The pool of listeners that are connected to this client.
- opts
The common options associated with the state.
- logger
The logger to be used to instantiate the state.
- returns
An state (cached or not) associated with the configuration directory.
-
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()
-
def
setCores(state: State, threads: Int): State
Sets up the cores for the execution context to be used for compiling and testing the project.
Sets up the cores for the execution context to be used for compiling and testing the project.
The execution context is for now global and it's reused across different states. When the number of threads that can be used is changed by the user, all the states of the builds are affected. This is the most reasonable way to do it since, I believe, having a thread pool per build state can end up being too expensive (this, however, must be tested and benchmarked in order to be truth, and that's left for the future).
The following implementation relies that the thread pool we get is backed up by the executor in
ExecutionContext
. If this invariant changes, this implementation must change, as explained inExecutionContext
.The implementation of this method is forcibly mutable.
-
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( ... )