|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.system.capability.PlatformCapability
org.rioproject.system.capability.platform.ByteOrientedDevice
public class ByteOrientedDevice
Represents a capability that has a capacity thats measured in bytes
| Field Summary | |
|---|---|
static String |
AVAILABLE
Available resource units (in bytes) |
static String |
CAPACITY
Resource capacity (in bytes) |
static double |
GB
Gigabytes |
static double |
KB
Kilobytes |
static double |
MB
Megabytes |
static double |
TB
Terabytes |
| Fields inherited from class org.rioproject.system.capability.PlatformCapability |
|---|
capabilities, description, DESCRIPTION, logger, MANUFACTURER, MODEL, NAME, NATIVE_LIBS, PROVISIONABLE, STATIC, VENDOR, VERSION |
| Constructor Summary | |
|---|---|
ByteOrientedDevice()
|
|
| Method Summary | |
|---|---|
void |
define(String key,
Object value)
Override parents define method to create values for capacity and available |
protected boolean |
evaluate(String input,
double val)
Evaluate the input against a measures amount. |
boolean |
supports(SystemRequirements.SystemComponent requirement)
Override supports to ensure that requirements are supported |
| 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 |
|---|
public static final String AVAILABLE
public static final String CAPACITY
public static final double KB
public static final double MB
public static final double GB
public static final double TB
| Constructor Detail |
|---|
public ByteOrientedDevice()
| Method Detail |
|---|
public void define(String key,
Object value)
define in class PlatformCapabilitykey - The key associated with the platform capability. Can be a name
or another descriptive attribute used to uniquely identify the platform
capabilityvalue - The value associated with the platform capability keypublic boolean supports(SystemRequirements.SystemComponent requirement)
supports in class PlatformCapabilityrequirement - The requirement to test
PlatformCapability.supports(org.rioproject.system.capability.PlatformCapability)
protected boolean evaluate(String input,
double val)
input - The value of either the CAPACITY or the AVAILABLE key. Must
end in 'm' or 'M' for megabytes, 'k' or 'K' for kilobytes, 'g' or 'G'
for gigabytes, and 't' or 'T' for terabytesval - The measured value, either the total or the available
property
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||