org.gridrm.client.utilities.sorma.monitoring.coreAttributes
Class Resource

java.lang.Object
  extended by org.gridrm.client.utilities.sorma.monitoring.coreAttributes.Resource

public class Resource
extends Object


Constructor Summary
Resource(String resourceName, String tychoGatewayName)
           
 
Method Summary
 int getCpuSpeed()
           
 Disk getDisk()
           
 DriverType getDriverType()
          Get the driver type that was used to retrieve the resource data.
 String getGatewayName()
          Get the controlling gateway's Tycho name
 float getLast15Min()
          Get the last 15 minute system load
 float getLast1Min()
          Get the last 1 minute system load
 float getLast5Min()
          Get the last 5 minute system load
 Memory getMemory()
          Return the Memory utilisation.
 String getOperatingSystemName()
          Return the name of the Operating System
 String getOperatingSystemRelease()
          Return the Operating System Release
 String getOperatingSystemVersion()
          Get the Operating System Version
 String getPlatformType()
          Get the architecture's platform type
 String getResourceName()
          Get the name of this resource
 int getSmpSize()
          Architecture If the resource is an SMP then returns the number of processors e.g.
 void setArchitecture(String platformType, int smpSize, int cpuSpeed)
          Set the architecture details
 void setDisk(Disk disk)
          Set the disk details for this resource
 void setDriverType(DriverType driver)
          Set the type of driver that was used to query the resource data
 void setLastNmin(float last1Min, float last5Min, float last15Min)
          Set the system load values
 void setMemory(Memory mem)
          Set the memory utilisation
 void setOperatingSystem(String name, String release, String version)
          Set the operating system details
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource(String resourceName,
                String tychoGatewayName)
Method Detail

setLastNmin

public void setLastNmin(float last1Min,
                        float last5Min,
                        float last15Min)
Set the system load values

Parameters:
last11min -
last5min -
last15min -

setOperatingSystem

public void setOperatingSystem(String name,
                               String release,
                               String version)
Set the operating system details

Parameters:
name -
release -
version -

setMemory

public void setMemory(Memory mem)
Set the memory utilisation

Parameters:
mem -

setArchitecture

public void setArchitecture(String platformType,
                            int smpSize,
                            int cpuSpeed)
Set the architecture details

Parameters:
platformType -
smpSize -
cpuSpeed -

setDisk

public void setDisk(Disk disk)
Set the disk details for this resource

Parameters:
disk -

getDisk

public Disk getDisk()
             throws Exception
Throws:
Exception

getMemory

public Memory getMemory()
                 throws Exception
Return the Memory utilisation.

Returns:
Throws:
Exception

getOperatingSystemName

public String getOperatingSystemName()
Return the name of the Operating System

Returns:

getOperatingSystemRelease

public String getOperatingSystemRelease()
Return the Operating System Release

Returns:

getOperatingSystemVersion

public String getOperatingSystemVersion()
Get the Operating System Version

Returns:

getLast1Min

public float getLast1Min()
                  throws Exception
Get the last 1 minute system load

Returns:
Throws:
Exception

getLast5Min

public float getLast5Min()
                  throws Exception
Get the last 5 minute system load

Returns:
Throws:
Exception

getLast15Min

public float getLast15Min()
                   throws Exception
Get the last 15 minute system load

Returns:
Throws:
Exception

getPlatformType

public String getPlatformType()
Get the architecture's platform type

Returns:

getSmpSize

public int getSmpSize()
Architecture If the resource is an SMP then returns the number of processors e.g. 2,4,8,16 If a uniprocessor returns 1

Returns:

getCpuSpeed

public int getCpuSpeed()

getResourceName

public String getResourceName()
Get the name of this resource

Returns:
String: The resource's name

getGatewayName

public String getGatewayName()
Get the controlling gateway's Tycho name

Returns:
String The controlling gateway's Tycho name

setDriverType

public void setDriverType(DriverType driver)
Set the type of driver that was used to query the resource data

Parameters:
driver -

getDriverType

public DriverType getDriverType()
Get the driver type that was used to retrieve the resource data.

Returns:


Copyright © 2007 Garry Smith. All Rights Reserved.