All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.java.truevfs.ext.pacemaker.PaceMediator.scala Maven / Gradle / Ivy

Go to download

Constrains the number of concurrently mounted archive file systems in order to save some heap space. This module provides a JMX interface for monitoring and management. 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.

There is a newer version: 0.14.0
Show newest version
/*
 * Copyright (C) 2005-2013 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package net.java.truevfs.ext.pacemaker

import net.java.truevfs.comp.inst._
import net.java.truevfs.comp.jmx._
import net.java.truevfs.kernel.spec._

private object PaceMediator extends PaceMediator

/** A mediator for the instrumentation of the TrueVFS Kernel with a
  * [[net.java.truevfs.ext.pace.PaceManager]].
  *
  * @author Christian Schlichtherle
  */
private class PaceMediator extends JmxMediator[PaceMediator] with Immutable {

  override def instrument(subject: FsManager) =
    activate(new PaceManager(this, subject))

  override def instrument(origin: InstrumentingManager[PaceMediator], subject: FsController) =
    new PaceController(origin.asInstanceOf[PaceManager], subject)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy