final class Fork extends AnyRef
Represents a command that can be forked.
- Alphabetic
- By Inheritance
- Fork
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Fork(commandName: String, runnerClass: Option[String])
- commandName
The java-like binary to fork. This is expected to exist in bin/ of the Java home directory.
- runnerClass
If Some, this will be prepended to the
arguments
passed to theapply
orfork
methods.
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(config: ForkOptions, arguments: Seq[String]): Int
Forks the configured process, waits for it to complete, and returns the exit code.
Forks the configured process, waits for it to complete, and returns the exit code. The command executed is the
commandName
defined for this Fork instance. It is configured according toconfig
. IfrunnerClass
is defined for this Fork instance, it is prepended toarguments
to define the arguments passed to the forked command. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val commandName: String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fork(config: ForkOptions, arguments: Seq[String]): Process
Forks the configured process and returns a
Process
that can be used to wait for completion or to terminate the forked process.Forks the configured process and returns a
Process
that can be used to wait for completion or to terminate the forked process. The command executed is thecommandName
defined for this Fork instance. It is configured according toconfig
. IfrunnerClass
is defined for this Fork instance, it is prepended toarguments
to define the arguments passed to the forked command. -
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
-
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 runnerClass: Option[String]
-
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
- @throws( ... ) @native()