net.java.truevfs.ext.insight.I5tIoStatisticsView.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truevfs-ext-insight Show documentation
Show all versions of truevfs-ext-insight Show documentation
Instruments the TrueVFS Kernel for statistics monitoring via JMX. Add the JAR artifact of this module to the run time class path to make its services available for service location in the client API modules.
/*
* Copyright (C) 2005-2013 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package net.java.truevfs.ext.insight
import javax.annotation.concurrent._
import javax.management._
/**
* A view for [[net.java.truevfs.ext.insight.stats.IoStatistics]].
*
* @author Christian Schlichtherle
*/
@ThreadSafe
private final class I5tIoStatisticsView(controller: I5tStatistics)
extends I5tStatisticsView(classOf[I5tIoStatisticsMXBean], true)
with I5tIoStatisticsMXBean {
assert(null ne controller)
protected override def getDescription(info: MBeanInfo) = "A log of I/O statistics."
override def stats = controller.stats
override def getSubject = controller.subject
override def rotate { controller.rotate }
}