Rio Project 4.2 API Documentation



org.rioproject.system.capability.platform
Class Memory

java.lang.Object
  extended by org.rioproject.system.capability.PlatformCapability
      extended by org.rioproject.system.capability.platform.ByteOrientedDevice
          extended by org.rioproject.system.capability.platform.Memory
All Implemented Interfaces:
Serializable, Observer, ResourceCostProducer, PlatformCapabilityMBean

public class Memory
extends ByteOrientedDevice
implements Observer

Describes the amount of memory available for the Java Virtual Machine as a qualitative resource.

Author:
Dennis Reedy
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.rioproject.system.capability.platform.ByteOrientedDevice
AVAILABLE, CAPACITY, GB, KB, MB, TB
 
Fields inherited from class org.rioproject.system.capability.PlatformCapability
capabilities, description, DESCRIPTION, logger, MANUFACTURER, MODEL, NAME, NATIVE_LIBS, PROVISIONABLE, STATIC, VENDOR, VERSION
 
Constructor Summary
Memory()
          Create a Memory capability
Memory(String description)
          Create a Memory capability with a description
 
Method Summary
 void update(Observable o, Object arg)
          Notification from the DiskSpace MeasurableCapability
 
Methods inherited from class org.rioproject.system.capability.platform.ByteOrientedDevice
define, evaluate, supports
 
Methods inherited from class org.rioproject.system.capability.PlatformCapability
addDownloadRecord, addStagedSoftware, calculateResourceCost, clearAll, decrementUsage, defineAll, equals, getCapabilities, getClassPath, getConfigurationFile, getDescription, getDownloadRecords, getLoadableClassPath, getName, getPath, getPlatformKeys, getResourceCostModel, getStagedSoftware, getType, getUsageCount, getValue, hasBasicSupport, hashCode, incrementUsage, loadResources, matches, remove, setClassPath, setConfigurationFile, setDescription, setPath, setResourceCostModel, setType, supports, toString, versionSupported
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Memory

public Memory()
Create a Memory capability


Memory

public Memory(String description)
Create a Memory capability with a description

Parameters:
description - The description
Method Detail

update

public void update(Observable o,
                   Object arg)
Notification from the DiskSpace MeasurableCapability

Specified by:
update in interface Observer
Parameters:
o - The Observable object
arg - The argument, a ProcessMemoryUtilization instance

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.