org.rhq.core.domain.cloud
Class PartitionEvent

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

public class PartitionEvent
extends Object
implements Serializable

An object to capture when the infrastructure used for high availability reconfigures itself for some reason. This object will store the reason for the change, the connection topology after the change takes place, and the time it took place.

See Also:
Serialized Form

Nested Class Summary
static class PartitionEvent.ExecutionStatus
           
 
Field Summary
static String QUERY_FIND_ALL
           
static String QUERY_FIND_BY_EXECUTION_STATUS
           
static long serialVersionUID
           
protected  String subjectName
           
 
Constructor Summary
protected PartitionEvent()
           
  PartitionEvent(String subjectName, PartitionEventType eventType, PartitionEvent.ExecutionStatus executionStatus)
           
  PartitionEvent(String subjectName, PartitionEventType eventType, String eventDetail, PartitionEvent.ExecutionStatus executionStatus)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getCtime()
           
 String getEventDetail()
           
 PartitionEventType getEventType()
           
 PartitionEvent.ExecutionStatus getExecutionStatus()
           
 int getId()
           
 List<PartitionEventDetails> getPartitionDetails()
           
 List<FailoverList> getServerLists()
           
 String getSubjectName()
           
 int hashCode()
           
 void setCtime(long ctime)
           
 void setEventDetail(String eventDetail)
           
 void setEventType(PartitionEventType eventType)
           
 void setExecutionStatus(PartitionEvent.ExecutionStatus executionStatus)
           
 void setId(int id)
           
 void setPartitionDetails(List<PartitionEventDetails> partitionDetails)
           
 void setServerLists(List<FailoverList> serverLists)
           
 void setSubjectName(String subjectName)
           
 
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_EXECUTION_STATUS

public static final String QUERY_FIND_BY_EXECUTION_STATUS
See Also:
Constant Field Values

subjectName

protected String subjectName
Constructor Detail

PartitionEvent

protected PartitionEvent()

PartitionEvent

public PartitionEvent(String subjectName,
                      PartitionEventType eventType,
                      PartitionEvent.ExecutionStatus executionStatus)

PartitionEvent

public PartitionEvent(String subjectName,
                      PartitionEventType eventType,
                      String eventDetail,
                      PartitionEvent.ExecutionStatus executionStatus)
Method Detail

getId

public int getId()

setId

public void setId(int id)

getSubjectName

public String getSubjectName()

setSubjectName

public void setSubjectName(String subjectName)

getCtime

public long getCtime()

setCtime

public void setCtime(long ctime)

getEventType

public PartitionEventType getEventType()

setEventType

public void setEventType(PartitionEventType eventType)

getEventDetail

public String getEventDetail()

setEventDetail

public void setEventDetail(String eventDetail)

getPartitionDetails

public List<PartitionEventDetails> getPartitionDetails()

setPartitionDetails

public void setPartitionDetails(List<PartitionEventDetails> partitionDetails)

getServerLists

public List<FailoverList> getServerLists()

setServerLists

public void setServerLists(List<FailoverList> serverLists)

getExecutionStatus

public PartitionEvent.ExecutionStatus getExecutionStatus()

setExecutionStatus

public void setExecutionStatus(PartitionEvent.ExecutionStatus executionStatus)

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.