org.rhq.core.domain.cloud
Class FailoverList

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

public class FailoverList
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  Agent agent
           
protected  PartitionEvent partitionEvent
           
static String QUERY_DELETE_VIA_AGENT
           
static String QUERY_DELETE_VIA_PARTITION_EVENT
           
static String QUERY_GET_VIA_AGENT
           
static String QUERY_TRUNCATE
           
static long serialVersionUID
           
 
Constructor Summary
protected FailoverList()
           
  FailoverList(PartitionEvent event, Agent agent)
           
 
Method Summary
 boolean equals(Object obj)
           
 Agent getAgent()
           
 long getCtime()
           
 int getId()
           
 PartitionEvent getPartitionEvent()
           
 List<FailoverListDetails> getServerList()
           
 int hashCode()
           
 void setAgent(Agent agent)
           
 void setId(int id)
           
 void setPartitionEvent(PartitionEvent partitionEvent)
           
 void setServerList(List<FailoverListDetails> serverList)
           
 
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_DELETE_VIA_AGENT

public static final String QUERY_DELETE_VIA_AGENT
See Also:
Constant Field Values

QUERY_DELETE_VIA_PARTITION_EVENT

public static final String QUERY_DELETE_VIA_PARTITION_EVENT
See Also:
Constant Field Values

QUERY_GET_VIA_AGENT

public static final String QUERY_GET_VIA_AGENT
See Also:
Constant Field Values

QUERY_TRUNCATE

public static final String QUERY_TRUNCATE
See Also:
Constant Field Values

partitionEvent

protected PartitionEvent partitionEvent

agent

protected Agent agent
Constructor Detail

FailoverList

protected FailoverList()

FailoverList

public FailoverList(PartitionEvent event,
                    Agent agent)
Method Detail

getPartitionEvent

public PartitionEvent getPartitionEvent()

setPartitionEvent

public void setPartitionEvent(PartitionEvent partitionEvent)

getId

public int getId()

setId

public void setId(int id)

getAgent

public Agent getAgent()

setAgent

public void setAgent(Agent agent)

getCtime

public long getCtime()

getServerList

public List<FailoverListDetails> getServerList()

setServerList

public void setServerList(List<FailoverListDetails> serverList)

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.