Rio Project 4.2 API Documentation



org.rioproject.system.capability.platform
Class StorageCapability

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.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.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
StorageCapability()
          Create a StorageCapability
StorageCapability(String description)
          Create a StorageCapability with a description
 
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.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
 

Field Detail

TYPE

public static final String TYPE
Storage media type

See Also:
Constant Field Values
Constructor Detail

StorageCapability

public StorageCapability()
Create a StorageCapability


StorageCapability

public StorageCapability(String description)
Create a StorageCapability 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 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 © Rio Project.

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