J.Vm

object Vm
class java.lang.Object
trait scala.Matchable
class Any

Member

object Memory extends Able.Doc

J.Memory provides nicer access to 'java.lang.Runtime.getRuntime' memory values

 ```
    J.Vm.Memory.tp

    // Oputput

    J.Vm.Memory{max=15.2gB,total=1.0gB,free=970.0mB,used=59.1mB}
  ```
Source
Memory.scala
opaque type Priority

Priority is an opaque Int value, ranging from 1 to 10.

Source
Priority.scala
object Setup

Scalqa Configuration

Setup contains a set of mutable configuration properties, which adhere to the following rules:

  • Once the property value was accessed, it cannot be chaged anymore
  • If method J.Vm.Setup.seal is executed, all properties become immutable
Source
Setup.scala

Def

inline def address: String

Local host address

Local host address

Inlines following:

java.net.InetAddress.getLocalHost.getHostAddress()
Source
__.scala
inline def availableProcessors: Int

Core count

Core count

Inlines following:

java.lang.Runtime.getRuntime().availableProcessors()
Source
__.scala
inline def exit: Unit

JVM shutdown

JVM shutdown

Inlines following:

println("J.Vm.exit requested")
System.exit(0)
Source
__.scala
inline def host: String

Local host name

Local host name

Inlines following:

java.net.InetAddress.getLocalHost.getHostName()
Source
__.scala
def reload(className: String, paths: Stream[J.Path]): java.lang.Class[_]

Load Class

Load Class

Retreives latest class definition with custom ClassLoader.

Source
__.scala