org.figure8.join.businessobjects.environment
Class Machine
java.lang.Object
org.figure8.join.core.EntityObject
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 Service
s.
- 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 |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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
-
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
AbstractResource
s 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.