org.rhq.core.domain.cloud
Class PartitionEventDetails

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

public class PartitionEventDetails
extends Object
implements Serializable

An object to capture when the infrastructure used for high availability reconfigures itself for some reason. This object will store a snapshot of the topology, so you can go back in history and figure out which servers were connected to which agents at any given point in time.

See Also:
Serialized Form

Field Summary
protected  String agentName
           
protected  PartitionEvent partitionEvent
           
static String QUERY_FIND_BY_EVENT_ID
           
static long serialVersionUID
           
protected  String serverName
           
 
Constructor Summary
protected PartitionEventDetails()
           
  PartitionEventDetails(PartitionEvent partitionEvent, Agent agent, Server server)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAgentName()
           
 int getId()
           
 PartitionEvent getPartitionEvent()
           
 String getServerName()
           
 int hashCode()
           
 void setAgentName(String agentName)
           
 void setId(int id)
           
 void setPartitionEvent(PartitionEvent partitionEvent)
           
 void setServerName(String serverName)
           
 
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_BY_EVENT_ID

public static final String QUERY_FIND_BY_EVENT_ID
See Also:
Constant Field Values

partitionEvent

protected PartitionEvent partitionEvent

agentName

protected String agentName

serverName

protected String serverName
Constructor Detail

PartitionEventDetails

protected PartitionEventDetails()

PartitionEventDetails

public PartitionEventDetails(PartitionEvent partitionEvent,
                             Agent agent,
                             Server server)
Method Detail

getPartitionEvent

public PartitionEvent getPartitionEvent()

setPartitionEvent

public void setPartitionEvent(PartitionEvent partitionEvent)

getId

public int getId()

setId

public void setId(int id)

getAgentName

public String getAgentName()

setAgentName

public void setAgentName(String agentName)

getServerName

public String getServerName()

setServerName

public void setServerName(String serverName)

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.