Examples of MemoryWarningService


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
Copyright © 2018 www.massapi.com. 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.