org.rhq.enterprise.server.cloud
Interface PartitionEventManagerLocal

All Known Implementing Classes:
PartitionEventManagerBean

public interface PartitionEventManagerLocal

Author:
Joseph Marques, Jay Shaughnessy

Method Summary
 org.rhq.core.domain.cloud.composite.FailoverListComposite agentPartitionEvent(org.rhq.core.domain.auth.Subject subject, String agentToken, 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.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)
           
 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)
           
 

Method Detail

agentPartitionEvent

org.rhq.core.domain.cloud.composite.FailoverListComposite agentPartitionEvent(org.rhq.core.domain.auth.Subject subject,
                                                                              String agentToken,
                                                                              org.rhq.core.domain.cloud.PartitionEventType eventType,
                                                                              String eventDetail)

createPartitionEvent

void createPartitionEvent(org.rhq.core.domain.auth.Subject subject,
                          org.rhq.core.domain.cloud.PartitionEvent partitionEvent)

cloudPartitionEvent

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.

Parameters:
subject -
eventType -
eventDetail - Any useful information regarding the event generation. Should be suitable for display. Typically a relevant server name.

cloudPartitionEventRequest

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.

Parameters:
subject -
eventType -
eventDetail - Any useful information regarding the event generation. Should be suitable for display. Typically a relevant server name.

auditPartitionEvent

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. For example, SERVER_DOWN, AGENT_LOAD_CHANGE, etc.

Parameters:
subject -
eventType - Can be any event type although typically a type used here will not also be used in a
eventDetail - Any useful information regarding the event generation. Should be suitable for display. Typically s relevant server or agent name. server list generating call.

processRequestedPartitionEvents

void processRequestedPartitionEvents()
This call queries for and then processed all outstanding, requested partition events resulting from previous calls to cloudPartitionEventRequest.


deletePartitionEvents

void deletePartitionEvents(org.rhq.core.domain.auth.Subject subject,
                           Integer[] partitionEventIds)
This is primarily a test entry point.

Parameters:
event -

purgeAllEvents

int purgeAllEvents(org.rhq.core.domain.auth.Subject subject)

getPartitionEvent

org.rhq.core.domain.cloud.PartitionEvent getPartitionEvent(org.rhq.core.domain.auth.Subject subject,
                                                           int partitionEventId)

getPartitionEvents

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)

getPartitionEventDetails

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)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.