public class PartitionEventManagerBean extends Object implements PartitionEventManagerLocal
PartitionEvent, and the distribution will either
need to generated a single (or a set of) FailoverList objects that are sent down to
the connected agents. The agents then use these lists to determine which server to fail over
to, if their primary server is unreachable and/or goes down.| Constructor and Description |
|---|
PartitionEventManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.cloud.composite.FailoverListComposite |
agentPartitionEvent(org.rhq.core.domain.auth.Subject subject,
String agentName,
org.rhq.core.domain.cloud.PartitionEventType eventType,
String eventDetail) |
void |
auditPartitionEvent(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.PartitionEventType eventType,
String eventDetail)
This call performs no partitioning activity, it only audits that some event has taken place that could
affect, or contribute to, a future partitioning.
|
Map<org.rhq.core.domain.resource.Agent,org.rhq.core.domain.cloud.composite.FailoverListComposite> |
cloudPartitionEvent(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.PartitionEventType eventType,
String eventDetail)
This call performs a full repartitioning of the agent population at the time of the call.
|
void |
cloudPartitionEventRequest(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.PartitionEventType eventType,
String eventDetail)
This call requests full repartitioning of the agent population by the recurring cluster manager job.
|
void |
createPartitionEvent(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.PartitionEvent partitionEvent) |
void |
deletePartitionEvents(org.rhq.core.domain.auth.Subject subject,
Integer[] partitionEventIds)
This is primarily a test entry point.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.PartitionEvent> |
findPartitionEventsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.PartitionEventCriteria criteria)
Fetches the partition events based on provided criteria.
|
org.rhq.core.domain.cloud.PartitionEvent |
getPartitionEvent(org.rhq.core.domain.auth.Subject subject,
int partitionEventId) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.PartitionEventDetails> |
getPartitionEventDetails(org.rhq.core.domain.auth.Subject subject,
int partitionEventId,
org.rhq.core.domain.util.PageControl pageControl)
Returns the partition event details.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.PartitionEvent> |
getPartitionEvents(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.PartitionEventType type,
org.rhq.core.domain.cloud.PartitionEvent.ExecutionStatus status,
String details,
org.rhq.core.domain.util.PageControl pageControl) |
void |
processRequestedPartitionEvents()
This call queries for and then processed all outstanding, requested partition events resulting from previous
calls to
cloudPartitionEventRequest. |
int |
purgeAllEvents(org.rhq.core.domain.auth.Subject subject)
Deletes all the partition events.
|
public org.rhq.core.domain.cloud.composite.FailoverListComposite agentPartitionEvent(org.rhq.core.domain.auth.Subject subject,
String agentName,
org.rhq.core.domain.cloud.PartitionEventType eventType,
String eventDetail)
agentPartitionEvent in interface PartitionEventManagerLocalpublic void createPartitionEvent(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.PartitionEvent partitionEvent)
createPartitionEvent in interface PartitionEventManagerLocalpublic Map<org.rhq.core.domain.resource.Agent,org.rhq.core.domain.cloud.composite.FailoverListComposite> cloudPartitionEvent(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.cloud.PartitionEventType eventType, String eventDetail)
PartitionEventManagerLocalcloudPartitionEvent in interface PartitionEventManagerLocaleventDetail - Any useful information regarding the event generation. Should be suitable for display.
Typically a relevant server name.public void cloudPartitionEventRequest(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.PartitionEventType eventType,
String eventDetail)
PartitionEventManagerLocalcloudPartitionEventRequest in interface PartitionEventManagerLocalsubject - the callereventDetail - Any useful information regarding the event generation. Should be suitable for display.
Typically a relevant server name.public void auditPartitionEvent(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.PartitionEventType eventType,
String eventDetail)
PartitionEventManagerLocalauditPartitionEvent in interface PartitionEventManagerLocaleventType - Can be any event type although typically a type used here will not also be used in aeventDetail - Any useful information regarding the event generation. Should be suitable for display.
Typically s relevant server or agent name.
server list generating call.public void deletePartitionEvents(org.rhq.core.domain.auth.Subject subject,
Integer[] partitionEventIds)
PartitionEventManagerLocaldeletePartitionEvents in interface PartitionEventManagerLocalpublic int purgeAllEvents(org.rhq.core.domain.auth.Subject subject)
PartitionEventManagerLocalpurgeAllEvents in interface PartitionEventManagerLocalpublic void processRequestedPartitionEvents()
PartitionEventManagerLocalcloudPartitionEventRequest.processRequestedPartitionEvents in interface PartitionEventManagerLocalpublic org.rhq.core.domain.cloud.PartitionEvent getPartitionEvent(org.rhq.core.domain.auth.Subject subject,
int partitionEventId)
getPartitionEvent in interface PartitionEventManagerLocalpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.PartitionEvent> getPartitionEvents(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.cloud.PartitionEventType type,
org.rhq.core.domain.cloud.PartitionEvent.ExecutionStatus status,
String details,
org.rhq.core.domain.util.PageControl pageControl)
getPartitionEvents in interface PartitionEventManagerLocalpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.PartitionEventDetails> getPartitionEventDetails(org.rhq.core.domain.auth.Subject subject,
int partitionEventId,
org.rhq.core.domain.util.PageControl pageControl)
PartitionEventManagerLocalgetPartitionEventDetails in interface PartitionEventManagerLocalsubject - the callerpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.cloud.PartitionEvent> findPartitionEventsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.PartitionEventCriteria criteria)
PartitionEventManagerLocalfindPartitionEventsByCriteria in interface PartitionEventManagerLocalsubject - the callercriteria - the criteriaCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.