Rio Project 4.2 API Documentation
org.rioproject.system.capability.platform
Class StorageCapability
java.lang.Object
org.rioproject.system.capability.PlatformCapability
org.rioproject.system.capability.platform.ByteOrientedDevice
org.rioproject.system.capability.platform.StorageCapability
- All Implemented Interfaces:
- Serializable, Observer, ResourceCostProducer, PlatformCapabilityMBean
public class StorageCapability
- extends ByteOrientedDevice
- implements Observer
The StorageCapability object provides a definition of storage
support
- Author:
- Dennis Reedy
- See Also:
- Serialized Form
|
Field Summary |
static String |
TYPE
Storage media type |
| Fields inherited from class org.rioproject.system.capability.PlatformCapability |
capabilities, description, DESCRIPTION, logger, MANUFACTURER, MODEL, NAME, NATIVE_LIBS, PROVISIONABLE, STATIC, VENDOR, VERSION |
|
Method Summary |
boolean |
supports(int requestedSize)
Determine if the requested available diskspace can be met by the
StorageCapability |
void |
update(Observable o,
Object arg)
Notification from the DiskSpace MeasurableCapability |
| 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 |
TYPE
public static final String TYPE
- Storage media type
- See Also:
- Constant Field Values
StorageCapability
public StorageCapability()
- Create a StorageCapability
StorageCapability
public StorageCapability(String description)
- Create a StorageCapability with a description
- Parameters:
description - The description
update
public void update(Observable o,
Object arg)
- Notification from the DiskSpace MeasurableCapability
- Specified by:
update in interface Observer
- Parameters:
o - The Observable objectarg - The argument, a
CalculableDiskSpace instance
supports
public boolean supports(int requestedSize)
- Determine if the requested available diskspace can be met by the
StorageCapability
- Parameters:
requestedSize - The request amount of disk space
- Returns:
- Return true is the available amount of disk space is less then
the request amount
Copyright © 2006-2011 Rio Project. All Rights Reserved.