Package uk.co.jemos.experiments.jmx

Examples of uk.co.jemos.experiments.jmx.MemoryWarningService


  @ManagedOperation(description = "Sets the memory threshold for the memory warning system")
  @ManagedOperationParameters({ @ManagedOperationParameter(description = "The memory threshold", name = "memoryThreshold"), })
  public void setMemoryThreshold(double memoryThreshold) {

    MemoryWarningService memoryWarningService = (MemoryWarningService) ctx
        .getBean("memoryWarningService");
    memoryWarningService.setPercentageUsageThreshold(memoryThreshold);

    LOG.info("Memory threshold set to " + memoryThreshold);
  }
View Full Code Here

TOP

Related Classes of uk.co.jemos.experiments.jmx.MemoryWarningService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.