org.figure8.join.businessobjects.environment
Class Machine

java.lang.Object
  extended by org.figure8.join.core.EntityObject
      extended by org.figure8.join.businessobjects.environment.Machine
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Machine
extends EntityObject

This is an entity object representing a physical machine managed by the software project integration team. Such a machine can host Services.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Constructor Summary
Machine()
          Creates a new Machine
Machine(java.lang.String name, java.lang.String ipAddress)
          Creates a new Machine with mandatory attributes
 
Method Summary
 void addHostedResource(AbstractResource resource)
          Convenient method for adding an hosted resource to this machine and managing the 2 sides of the bidirectionnal relationship.
 java.lang.String getCpuInfo()
           
 java.lang.String getIpAddress()
           
 java.lang.String getName()
           
 java.lang.String getOsInfo()
           
 int getRamAmount()
           
 java.util.List getResources()
           
 int getRomAmount()
           
 void setCpuInfo(java.lang.String cpuInfo)
           
 void setIpAddress(java.lang.String ipAddress)
           
 void setName(java.lang.String name)
           
 void setOsInfo(java.lang.String osInfo)
           
 void setRamAmount(int ramAmount)
           
 void setResources(java.util.List resources)
           
 void setRomAmount(int romAmount)
           
 
Methods inherited from class org.figure8.join.core.EntityObject
clone, equals, getId, hashCode, isTransient
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Machine

public Machine()
Creates a new Machine


Machine

public Machine(java.lang.String name,
               java.lang.String ipAddress)
Creates a new Machine with mandatory attributes

Parameters:
name -
ipAddress -
Method Detail

getName

public java.lang.String getName()
Returns:
This machine full network name

setName

public void setName(java.lang.String name)
Parameters:
name - This machine full network name

getIpAddress

public java.lang.String getIpAddress()
Returns:
This machine IP address

setIpAddress

public void setIpAddress(java.lang.String ipAddress)
Parameters:
ipAddress - This machine IP address

getOsInfo

public java.lang.String getOsInfo()
Returns:
Information on machine OS

setOsInfo

public void setOsInfo(java.lang.String osInfo)
Parameters:
osInfo - Information on machine OS

getCpuInfo

public java.lang.String getCpuInfo()
Returns:
Information on machine CPU

setCpuInfo

public void setCpuInfo(java.lang.String cpuInfo)
Parameters:
cpuInfo - Information on machine CPU

getRamAmount

public int getRamAmount()
Returns:
This machine RAM amount

setRamAmount

public void setRamAmount(int ramAmount)
Parameters:
ramAmount - This machine RAM amount

getRomAmount

public int getRomAmount()
Returns:
This machine ROM amount

setRomAmount

public void setRomAmount(int romAmount)
Parameters:
romAmount - This machine ROM amount

getResources

public java.util.List getResources()
Returns:
A set of AbstractResources hosted on this machine

setResources

public void setResources(java.util.List resources)
Parameters:
resources - The list of resources hosted by this machine

addHostedResource

public void addHostedResource(AbstractResource resource)
Convenient method for adding an hosted resource to this machine and managing the 2 sides of the bidirectionnal relationship.

Parameters:
resource - The resource to host on this machine


Copyright © 2005-2008 Join. All Rights Reserved.