org.ow2.jasmine.jadort.api.entities.topology
Class GroupBean

java.lang.Object
  extended by org.ow2.jasmine.jadort.api.entities.topology.GroupBean
All Implemented Interfaces:
java.io.Serializable

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

Bean that represents a group of server (cluster or farm)

Author:
Malek Chahine, Remy Bresson, S. Ali Tokmen
See Also:
Serialized Form

Constructor Summary
GroupBean()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 java.util.List<ApplicationBean> getApplications()
          Get the applications list for this group.
 boolean getClustered()
          Get whether the group is clustered (i.e.
 boolean getConnected()
          Get whether all group servers are coonecetd (i
 java.lang.Integer getId()
          Get the group id
 java.lang.String getName()
          Get the group name
 java.util.List<ServerBean> getServers()
          Get the servers list for this group
 java.util.List<VMImageBean> getVmImages()
          Get the VM Images list for this group.
 java.util.List<WorkerBean> getWorkers()
          Get the workers list for this group
 void setApplications(java.util.List<ApplicationBean> applications)
          Set the applications list for this group.
 void setClustered(boolean clustered)
          Set whether the group is clustered (i.e.
 void setConnected(boolean connected)
          Set whether all group servers are connected
 void setId(java.lang.Integer id)
           
 void setName(java.lang.String name)
          Set the group name
 void setServers(java.util.List<ServerBean> servers)
          Set the servers list for this group
 void setVmImages(java.util.List<VMImageBean> vmImages)
          Get the VM Images list for this group.
 void setWorkers(java.util.List<WorkerBean> workers)
          Set the workers list for this group
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupBean

public GroupBean()
Method Detail

getId

public java.lang.Integer getId()
Get the group id

Returns:
Group id

setId

public void setId(java.lang.Integer id)

getName

public java.lang.String getName()
Get the group name

Returns:
The group name

setName

public void setName(java.lang.String name)
Set the group name

Parameters:
name - New name for the group

getClustered

public boolean getClustered()
Get whether the group is clustered (i.e. HTTP and EJB sessions are replicated)

Returns:
Whether the group is clustered (i.e. HTTP and EJB sessions are replicated)

getConnected

public boolean getConnected()
Get whether all group servers are coonecetd (i

Returns:
true if all group servers are clustered

setClustered

public void setClustered(boolean clustered)
Set whether the group is clustered (i.e. HTTP and EJB sessions are replicated)

Parameters:
clustered - Whether the group is clustered (i.e. HTTP and EJB sessions are replicated)

setConnected

public void setConnected(boolean connected)
Set whether all group servers are connected


getServers

public java.util.List<ServerBean> getServers()
Get the servers list for this group

Returns:
The servers list for this group

setServers

public void setServers(java.util.List<ServerBean> servers)
Set the servers list for this group

Parameters:
servers - The servers list to set for this group

getWorkers

public java.util.List<WorkerBean> getWorkers()
Get the workers list for this group

Returns:
Workers list for this group

setWorkers

public void setWorkers(java.util.List<WorkerBean> workers)
Set the workers list for this group

Parameters:
workers - The workers list to set for this group

getApplications

public java.util.List<ApplicationBean> getApplications()
Get the applications list for this group. That value is re-set every time the operation state changes on the stateful bean, and not persisted.

Returns:
The applications list for this group

setApplications

public void setApplications(java.util.List<ApplicationBean> applications)
Set the applications list for this group. That value is re-set every time the operation state changes on the stateful bean, and not persisted.

Parameters:
applications - The applications list to set for this group

getVmImages

public java.util.List<VMImageBean> getVmImages()
Get the VM Images list for this group. That value is re-set every time the operation state changes on the stateful bean, and not persisted.

Returns:
The applications list for this group

setVmImages

public void setVmImages(java.util.List<VMImageBean> vmImages)
Get the VM Images list for this group. That value is re-set every time the operation state changes on the stateful bean, and not persisted.

Parameters:
applications - The applications list to set for this group

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object
Returns:
true if obj is a GroupBean and the getId() is the same for both objects, false otherwise.


Copyright © 2010 OW2 Consortium. All Rights Reserved.