org.rhq.core.domain.cloud
Class AffinityGroup

java.lang.Object
  extended by org.rhq.core.domain.cloud.AffinityGroup
All Implemented Interfaces:
Serializable

public class AffinityGroup
extends Object
implements Serializable

An object to logically group Servers and Agents together so that the high-availability distribution algorithm repartitions the Agents with tendencies to connect and fail over to Servers in the same AffinityGroup.

See Also:
Serialized Form

Field Summary
static String QUERY_DELETE_BY_IDS
           
static String QUERY_FIND_ALL
           
static String QUERY_FIND_ALL_COMPOSITES
           
static String QUERY_FIND_BY_NAME
           
static String QUERY_UPDATE_ADD_AGENTS
           
static String QUERY_UPDATE_ADD_SERVERS
           
static String QUERY_UPDATE_REMOVE_AGENTS
           
static String QUERY_UPDATE_REMOVE_SERVERS
           
static String QUERY_UPDATE_REMOVE_SPECIFIC_AGENTS
           
static String QUERY_UPDATE_REMOVE_SPECIFIC_SERVERS
           
static long serialVersionUID
           
 
Constructor Summary
protected AffinityGroup()
           
  AffinityGroup(String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 List<Agent> getAgents()
           
 int getId()
           
 String getName()
           
 List<Server> getServers()
           
 int hashCode()
           
 void setAgents(List<Agent> agents)
           
 void setId(int id)
           
 void setName(String name)
           
 void setServers(List<Server> servers)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

QUERY_FIND_ALL

public static final String QUERY_FIND_ALL
See Also:
Constant Field Values

QUERY_FIND_BY_NAME

public static final String QUERY_FIND_BY_NAME
See Also:
Constant Field Values

QUERY_FIND_ALL_COMPOSITES

public static final String QUERY_FIND_ALL_COMPOSITES
See Also:
Constant Field Values

QUERY_UPDATE_REMOVE_AGENTS

public static final String QUERY_UPDATE_REMOVE_AGENTS
See Also:
Constant Field Values

QUERY_UPDATE_REMOVE_SERVERS

public static final String QUERY_UPDATE_REMOVE_SERVERS
See Also:
Constant Field Values

QUERY_UPDATE_ADD_AGENTS

public static final String QUERY_UPDATE_ADD_AGENTS
See Also:
Constant Field Values

QUERY_UPDATE_ADD_SERVERS

public static final String QUERY_UPDATE_ADD_SERVERS
See Also:
Constant Field Values

QUERY_UPDATE_REMOVE_SPECIFIC_AGENTS

public static final String QUERY_UPDATE_REMOVE_SPECIFIC_AGENTS
See Also:
Constant Field Values

QUERY_UPDATE_REMOVE_SPECIFIC_SERVERS

public static final String QUERY_UPDATE_REMOVE_SPECIFIC_SERVERS
See Also:
Constant Field Values

QUERY_DELETE_BY_IDS

public static final String QUERY_DELETE_BY_IDS
See Also:
Constant Field Values
Constructor Detail

AffinityGroup

protected AffinityGroup()

AffinityGroup

public AffinityGroup(String name)
Method Detail

getId

public int getId()

setId

public void setId(int id)

getName

public String getName()

setName

public void setName(String name)

getServers

public List<Server> getServers()

setServers

public void setServers(List<Server> servers)

getAgents

public List<Agent> getAgents()

setAgents

public void setAgents(List<Agent> agents)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.