org.rhq.core.domain.cloud
Class FailoverListDetails

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

public class FailoverListDetails
extends Object
implements Serializable

An object to capture a snapshot of the order in which particular agents will fail over to particular servers. The FailoverListDetails will contain the ordered references back to other Servers.

See Also:
Serialized Form

Field Summary
protected  FailoverList failoverList
           
static String QUERY_DELETE_VIA_AGENT
           
static String QUERY_DELETE_VIA_SERVER
           
static String QUERY_GET_ASSIGNED_LOADS
           
static String QUERY_GET_VIA_AGENT_ID
           
static String QUERY_GET_VIA_AGENT_ID_WITH_SERVERS
           
static String QUERY_TRUNCATE
           
static long serialVersionUID
           
protected  Server server
           
 
Constructor Summary
protected FailoverListDetails()
           
  FailoverListDetails(FailoverList failoverList, int ordinal, Server server)
           
 
Method Summary
 boolean equals(Object obj)
           
 FailoverList getFailoverList()
           
 int getId()
           
 int getOrdinal()
           
 Server getServer()
           
 int hashCode()
           
 void setFailoverList(FailoverList failoverList)
           
 void setId(int id)
           
 void setOrdinal(int ordinal)
           
 void setServer(Server agent)
           
 
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_GET_VIA_AGENT_ID

public static final String QUERY_GET_VIA_AGENT_ID
See Also:
Constant Field Values

QUERY_GET_VIA_AGENT_ID_WITH_SERVERS

public static final String QUERY_GET_VIA_AGENT_ID_WITH_SERVERS
See Also:
Constant Field Values

QUERY_DELETE_VIA_AGENT

public static final String QUERY_DELETE_VIA_AGENT
See Also:
Constant Field Values

QUERY_DELETE_VIA_SERVER

public static final String QUERY_DELETE_VIA_SERVER
See Also:
Constant Field Values

QUERY_GET_ASSIGNED_LOADS

public static final String QUERY_GET_ASSIGNED_LOADS
See Also:
Constant Field Values

QUERY_TRUNCATE

public static final String QUERY_TRUNCATE
See Also:
Constant Field Values

failoverList

protected FailoverList failoverList

server

protected Server server
Constructor Detail

FailoverListDetails

protected FailoverListDetails()

FailoverListDetails

public FailoverListDetails(FailoverList failoverList,
                           int ordinal,
                           Server server)
Method Detail

getFailoverList

public FailoverList getFailoverList()

setFailoverList

public void setFailoverList(FailoverList failoverList)

getOrdinal

public int getOrdinal()

setOrdinal

public void setOrdinal(int ordinal)

getId

public int getId()

setId

public void setId(int id)

getServer

public Server getServer()

setServer

public void setServer(Server agent)

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.