
jadex.nfproperty.sensor.memory.MaxMemoryProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nfproperty Show documentation
Show all versions of nfproperty Show documentation
Non functional properties feature
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