org.rhq.core.domain.cloud
Class AffinityGroup
java.lang.Object
org.rhq.core.domain.cloud.AffinityGroup
- All Implemented Interfaces:
- Serializable
public class AffinityGroup
- extends Object
- implements Serializable
An object to logically group Server
s and Agent
s
together so that the high-availability distribution algorithm
repartitions the Agent
s with tendencies to connect and
fail over to Server
s in the same AffinityGroup
.
- See Also:
- Serialized Form
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
AffinityGroup
protected AffinityGroup()
AffinityGroup
public AffinityGroup(String name)
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-2011 Red Hat, Inc.. All Rights Reserved.