org.ops4j.pax.radman.gateway.jpa
Class HostModel

java.lang.Object
  extended by org.ops4j.pax.radman.gateway.jpa.HostModel
All Implemented Interfaces:
java.io.Serializable

public class HostModel
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
HostModel()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.Set<OSGiContainerModel> getContainers()
           
 java.lang.String getDescription()
           
 java.util.Set<HostGroupModel> getHostGroups()
          Returns all host groups associated with this host.
 java.lang.String getHostIP()
          Returns the host ip address.
 java.lang.String getId()
          Returns the id of this host.
 int hashCode()
           
 void sanitize()
           
 void setContainers(java.util.Set<OSGiContainerModel> containers)
           
 void setDescription(java.lang.String aDescription)
           
 void setHostGroups(java.util.Set<HostGroupModel> hostGroups)
           
 void setHostIp(java.lang.String aHostIp)
          Sets the host ip.
 void setId(java.lang.String anId)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostModel

public HostModel()
Method Detail

getId

public java.lang.String getId()
Returns the id of this host. This must not be null.

Returns:
The id of this host.
Since:
0.1.0

setId

public void setId(java.lang.String anId)

getHostIP

public java.lang.String getHostIP()
Returns the host ip address. This must not be null.

Returns:
The host ip of this host instance.
Since:
0.1.0

setHostIp

public void setHostIp(java.lang.String aHostIp)
               throws java.lang.IllegalArgumentException
Sets the host ip.

Parameters:
aHostIp - The host ip.
Throws:
java.lang.IllegalArgumentException - Thrown if the specified aHostIp is null.
Since:
0.1.0

getHostGroups

public java.util.Set<HostGroupModel> getHostGroups()
Returns all host groups associated with this host. Returns an empty list if there is no host group associated to this host.

Returns:
All host groups associated with this host.
Since:
0.1.0
See Also:
HostGroup

setHostGroups

public void setHostGroups(java.util.Set<HostGroupModel> hostGroups)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String aDescription)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getContainers

public java.util.Set<OSGiContainerModel> getContainers()

setContainers

public void setContainers(java.util.Set<OSGiContainerModel> containers)

sanitize

public void sanitize()


Copyright © 2008. All Rights Reserved.