Packages

o

java.lang.management

ManagementFactory

object ManagementFactory

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ManagementFactory
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): scala.Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): scala.Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def getGarbageCollectorMXBeans(): List[GarbageCollectorMXBean]

    Returns a list of GarbageCollectorMXBean.

    Returns a list of GarbageCollectorMXBean.

    Example:
    1. val gcBean = ManagementFactory.getGarbageCollectorMXBeans().get(0)
      println(s"Total collection time (ms): $${gcBean.getCollectionTime()}")
  11. def getMemoryMXBean(): MemoryMXBean

    Returns the memory-specific bean.

    Returns the memory-specific bean.

    Example:
    1. val memoryBean = ManagementFactory.getMemoryMXBean()
      println(s"current heap: $${memoryBean.getHeapMemoryUsage().getUsed()}")
      
      val list = List.fill(Short.MaxValue)(0) // allocate memory
      println(s"current heap: $${memoryBean.getHeapMemoryUsage().getUsed()}")
  12. def getMemoryManagerMXBeans(): List[MemoryManagerMXBean]

    Returns a list of MemoryManagerMXBean.

    Returns a list of MemoryManagerMXBean.

    Example:
    1. val mmBean = ManagementFactory.getMemoryManagerMXBeans().get(0)
      println(s"Memory manager: $${mmBean.getName()}")
  13. def getOperatingSystemMXBean(): OperatingSystemMXBean

    Returns the OS-specific bean.

    Returns the OS-specific bean.

    Example:
    1. val osBean = ManagementFactory.getOperatingSystemMXBean()
      println(s"OS: $${osBean.getName()}")
  14. def getRuntimeMXBean(): RuntimeMXBean

    Returns the runtime-specific bean.

    Returns the runtime-specific bean.

    Example:
    1. val runtimeBean = ManagementFactory.getRuntimeMXBean()
      println(s"pid: $${runtimeBean.getPid()}")
  15. def getThreadMXBean(): ThreadMXBean

    Returns the thread-specific bean.

    Returns the thread-specific bean.

    Example:
    1. val threadBean = ManagementFactory.getThreadMXBean()
      println(s"total threads: $${threadBean.getThreadCount()}")
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: scala.Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: scala.Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: scala.Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped