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

jadex.nfproperty.sensor.memory.MaxMemoryProperty Maven / Gradle / Ivy

There is a newer version: 5.0-alpha6
Show newest version
package jadex.nfproperty.sensor.memory;

import jadex.common.OperatingSystemMXBeanFacade;
import jadex.core.IComponent;

/**
 *  The maximum physical memory.
 */
public class MaxMemoryProperty extends MemoryProperty
{
	/** The name of the property. */
	public static final String NAME = "max memory";
	
	/**
	 *  Create a new property.
	 */
	public MaxMemoryProperty(final IComponent comp)
	{
		super(NAME, comp, -1);
	}
	
	/**
	 *  Measure the value.
	 */
	public Long measureValue()
	{
		return Long.valueOf(OperatingSystemMXBeanFacade.getTotalPhysicalMemorySize());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy