|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gridlab.gat.resources.ResourceDescription
org.gridlab.gat.resources.HardwareResourceDescription
public class HardwareResourceDescription
An instance of this class is a description of a hardware resource, a physical entity, which a may be required by a hardware or software component.
To clarify the concept of a HardwareResourceDescription
, let us give
various examples. Memory is described by a
HardwareResourceDescription
; a network is described by a
HardwareResourceDescription
; disk space is described by a
HardwareResourceDescription
; a monitor is described a
HardwareResourceDescription
\ldots However, an application is not
described by a HardwareResourceDescription
. In general any resource
which corresponds to a physical entity is described by a
HardwareResourceDescription
.
Hardware is generally useless without software. For example, a disk drive
without the appropriate software driver is all but useless. Similarly,
hardware often depends upon other hardware. For example, having a disk drive
without a computer again is not of much use. Hence, in describing a hardware
component one needs to also describe the software and hardware that this
hardware component requires. This is reflected in the fact that a
HardwareResourceDescription
contains in addition to a description of
a hardware component a list of HardwareResourceDescription
s, each
element of which describes a hardware component upon which the parent
hardware component depends. It also contains a list of
SoftwareResourceDescription
s, each element of which describes a
software component upon which the parent hardware component depends. Hence,
the entire structure is recursive.
To construct an instance of a HardwareResourceDescription
one
requires three quantities:
SoftwareResourceDescription
instances each of which
describes a software resource upon which the parent hardware resource
depends.HardwareResourceDescription
instances each of which
describes a hardware resource upon which the parent hardware resource
depends.
Name | Type | Description |
---|---|---|
memory.size
| Float
| The minimum memory in GB. |
memory.accesstime
| Float
| The minimum memory access time in ns. |
memory.str
| Float
| The minimum sustained transfer rate in GB/s. |
machine.type
| String
| The machine type as returned from uname -m
|
machine.node
| String
| The machine node as returned from uname -n ,
alternatively, this can be an array of String s, if the job
can run on multiple hosts.
|
cpu.type
| String
| The generic cpu type as returned from uname -p
|
cpu.count
| Integer
| the number of proccessors to use |
cpu.speed
| Float
| The minimum cpu speed in GHz. |
disk.size
| Float
| The minimum size of the hard drive in GB. |
disk.accesstime
| Float
| The minimum disk access time in ms. |
disk.str
| Float
| The minimum sustained transfer rate in MB/s. |
Field Summary | |
---|---|
static String |
CPU_COUNT
the number of proccessors to use. |
static String |
CPU_SPEED
The minimum cpu speed in GHz. |
static String |
CPU_TYPE
The generic cpu type as returned from uname -p . |
static String |
DISK_ACCESSTIME
The minimum disk access time in ms. |
static String |
DISK_SIZE
The minimum size of the hard drive in GB. |
static String |
DISK_STR
The minimum sustained transfer rate in MB/s. |
static String |
MACHINE_NODE
The machine node as returned from uname -n . |
static String |
MACHINE_TYPE
The machine type as returned from uname -m . |
static String |
MEMORY_ACCESS_TIME
The minimum memory access time in ns. |
static String |
MEMORY_SIZE
The minimum memory in GB. |
static String |
MEMORY_STR
The minimum sustained transfer rate in GB/s. |
Constructor Summary | |
---|---|
HardwareResourceDescription()
Constructs a HardwareResourceDescription associated without
attributes and dependencies. |
|
HardwareResourceDescription(Map<String,Object> attributes)
Constructs a HardwareResourceDescription associated with the
passed attributes. |
|
HardwareResourceDescription(Map<String,Object> attributes,
List<ResourceDescription> resourceDescriptions)
Constructs a HardwareResourceDescription associated with the passed objects. |
Method Summary |
---|
Methods inherited from class org.gridlab.gat.resources.ResourceDescription |
---|
addResourceAttribute, addResourceDescription, equals, getDescription, getResourceAttribute, hashCode, removeResourceAttribute, removeResourceDescription, setDescription, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String MEMORY_SIZE
public static final String MEMORY_ACCESS_TIME
public static final String MEMORY_STR
public static final String MACHINE_TYPE
uname -m
.
public static final String MACHINE_NODE
uname -n
.
Alternatively, this can be an array of String
s, if the job
can run on multiple hosts.
public static final String CPU_TYPE
uname -p
.
public static final String CPU_COUNT
public static final String CPU_SPEED
public static final String DISK_SIZE
public static final String DISK_ACCESSTIME
public static final String DISK_STR
Constructor Detail |
---|
public HardwareResourceDescription()
HardwareResourceDescription
associated without
attributes and dependencies.
public HardwareResourceDescription(Map<String,Object> attributes)
HardwareResourceDescription
associated with the
passed attributes. There are no further dependencies
attributes
- A Map
<String
, Object
>,
which describes the attributes of this Resource
.public HardwareResourceDescription(Map<String,Object> attributes, List<ResourceDescription> resourceDescriptions)
attributes
- A Map
<String
, Object
>,
which describes the attributes of this Resource
.resourceDescriptions
- A List
, which is a list of
ResourceDescription
s each of which describes a
software component upon which this software component
depends.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |