| Constructor and Description |
|---|
GroupManagementServiceImpl() |
GroupManagementServiceImpl(String serverToken,
String groupName,
com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType membertype,
Properties properties)
Creates a GMSContext instance with the given paramters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionFactory(com.sun.enterprise.ee.cms.core.FailureNotificationActionFactory failureNotificationActionFactory)
Registers a FailureNotificationActionFactory instance.
|
void |
addActionFactory(com.sun.enterprise.ee.cms.core.FailureSuspectedActionFactory failureSuspectedActionFactory) |
void |
addActionFactory(com.sun.enterprise.ee.cms.core.GroupLeadershipNotificationActionFactory groupLeadershipNotificationActionFactory) |
void |
addActionFactory(com.sun.enterprise.ee.cms.core.JoinedAndReadyNotificationActionFactory joinedAndReadyNotificationActionFactory)
Registers a JoinedAndReadyNotificationActionFactory instance.
|
void |
addActionFactory(com.sun.enterprise.ee.cms.core.JoinNotificationActionFactory joinNotificationActionFactory)
Registers a JoinNotificationActionFactory instance.
|
void |
addActionFactory(com.sun.enterprise.ee.cms.core.MessageActionFactory messageActionFactory,
String componentName)
Registers a MessageActionFactory instance for the specified component name.
|
void |
addActionFactory(com.sun.enterprise.ee.cms.core.PlannedShutdownActionFactory plannedShutdownActionFactory)
Registers a PlannedShuttdownActionFactory instance.
|
void |
addActionFactory(String componentName,
com.sun.enterprise.ee.cms.core.FailureRecoveryActionFactory failureRecoveryActionFactory)
Registers a FailureRecoveryActionFactory instance.
|
void |
announceGroupShutdown(String groupName,
com.sun.enterprise.ee.cms.core.GMSConstants.shutdownState shutdownState)
This method is used to announce that the group is about to be shutdown.
|
void |
announceGroupStartup(String groupName,
com.sun.enterprise.ee.cms.core.GMSConstants.groupStartupState startupState,
List<String> memberTokens) |
void |
announceWatchdogObservedFailure(String serverToken) |
Map<Serializable,Serializable> |
getAllMemberDetails(Serializable key) |
com.sun.enterprise.ee.cms.core.GroupHandle |
getGroupHandle()
Returns an implementation of GroupHandle
|
String |
getGroupName() |
String |
getInstanceName() |
Map<Serializable,Serializable> |
getMemberDetails(String memberToken)
returns the details pertaining to the given member.
|
com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType |
getMemberType() |
void |
initialize(String serverToken,
String groupName,
com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType membertype,
Properties properties) |
boolean |
isGroupBeingShutdown() |
boolean |
isGroupBeingShutdown(String groupName)
Deprecated.
|
void |
join() |
int |
outstandingNotifications() |
void |
removeActionFactory(com.sun.enterprise.ee.cms.core.FailureNotificationActionFactory failureNotificationActionFactory)
Removes a FailureNotificationActionFactory instance To remove a MessageActionFactory for a specific component, use
the method: removeActionFactory(String componentName);
|
void |
removeActionFactory(com.sun.enterprise.ee.cms.core.GroupLeadershipNotificationActionFactory groupLeadershipNotificationActionFactory) |
void |
removeActionFactory(com.sun.enterprise.ee.cms.core.JoinedAndReadyNotificationActionFactory joinedAndReadyNotificationActionFactory)
Removes a JoinedAndReadyNotificationActionFactory instance To remove a MessageActionFactory for a specific component,
use the method: removeActionFactory(String componentName);
|
void |
removeActionFactory(com.sun.enterprise.ee.cms.core.JoinNotificationActionFactory joinNotificationActionFactory)
Removes a JoinNotificationActionFactory instance To remove a MessageActionFactory for a specific component, use the
method: removeActionFactory(String componentName);
|
void |
removeActionFactory(com.sun.enterprise.ee.cms.core.PlannedShutdownActionFactory plannedShutdownActionFactory)
Removes a PlannedShutdownActionFactory instance To remove a MessageActionFactory for a specific component, use the
method: removeActionFactory(String componentName);
|
void |
removeFailureRecoveryActionFactory(String componentName)
Removes a FailureRecoveryActionFactory instance To remove a MessageActionFactory for a specific component, use the
method: removeActionFactory(String componentName);
|
void |
removeFailureSuspectedActionFactory(com.sun.enterprise.ee.cms.core.FailureSuspectedActionFactory failureSuspectedActionFactory) |
void |
removeMessageActionFactory(String componentName)
Removes a MessageActionFactory instance belonging to the specified component
|
void |
reportJoinedAndReadyState()
This API is provided for the parent application to report to the group its joined and ready state to begin processing
its operations.
|
void |
reportJoinedAndReadyState(String groupName)
Deprecated.
use reportJoinedAndReadyState()
|
void |
run() |
void |
setMemberDetails(String serverToken,
Map<? extends Object,? extends Object> keyValuePairs)
for this serverToken, use the map to derive key value pairs that constitute data pertaining to this member's details
|
void |
shutdown(com.sun.enterprise.ee.cms.core.GMSConstants.shutdownType shutdownType)
Sends a shutdown command to the GMS indicating that the parent thread is about to be shutdown as part of a planned
shutdown operation
|
void |
updateMemberDetails(String memberToken,
Serializable key,
Serializable value) |
public GroupManagementServiceImpl(String serverToken, String groupName, com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType membertype, Properties properties)
serverToken - identity token of this member processgroupName - name of the groupmembertype - Type of member as specified in GroupManagementService.MemberTypeproperties - Configuration Propertiespublic GroupManagementServiceImpl()
public void initialize(String serverToken, String groupName, com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType membertype, Properties properties)
initialize in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic void addActionFactory(com.sun.enterprise.ee.cms.core.FailureNotificationActionFactory failureNotificationActionFactory)
addActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicefailureNotificationActionFactory - implementation of this interfacepublic void addActionFactory(String componentName, com.sun.enterprise.ee.cms.core.FailureRecoveryActionFactory failureRecoveryActionFactory)
addActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicecomponentName - name of componentfailureRecoveryActionFactory - implmentation of this interfacepublic void addActionFactory(com.sun.enterprise.ee.cms.core.JoinedAndReadyNotificationActionFactory joinedAndReadyNotificationActionFactory)
addActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicejoinedAndReadyNotificationActionFactory - Implementation of this interface produces a
JoinedAndReadyNotificationAction instance which consumes the member joined and ready notification signal.public void addActionFactory(com.sun.enterprise.ee.cms.core.JoinNotificationActionFactory joinNotificationActionFactory)
addActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicejoinNotificationActionFactory - implementation of this interfacepublic void addActionFactory(com.sun.enterprise.ee.cms.core.PlannedShutdownActionFactory plannedShutdownActionFactory)
addActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServiceplannedShutdownActionFactory - implementation of this interfacepublic void addActionFactory(com.sun.enterprise.ee.cms.core.MessageActionFactory messageActionFactory,
String componentName)
addActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicemessageActionFactory - implementation of this interfacecomponentName - name of component to identify target component for message deliverypublic void addActionFactory(com.sun.enterprise.ee.cms.core.FailureSuspectedActionFactory failureSuspectedActionFactory)
addActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic void addActionFactory(com.sun.enterprise.ee.cms.core.GroupLeadershipNotificationActionFactory groupLeadershipNotificationActionFactory)
addActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic void removeActionFactory(com.sun.enterprise.ee.cms.core.FailureNotificationActionFactory failureNotificationActionFactory)
removeActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicefailureNotificationActionFactory - implementation of this interfacepublic void removeFailureRecoveryActionFactory(String componentName)
removeFailureRecoveryActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicecomponentName - name of componentpublic void removeFailureSuspectedActionFactory(com.sun.enterprise.ee.cms.core.FailureSuspectedActionFactory failureSuspectedActionFactory)
removeFailureSuspectedActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic void removeActionFactory(com.sun.enterprise.ee.cms.core.JoinNotificationActionFactory joinNotificationActionFactory)
removeActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicejoinNotificationActionFactory - implementation of this interfacepublic void removeActionFactory(com.sun.enterprise.ee.cms.core.JoinedAndReadyNotificationActionFactory joinedAndReadyNotificationActionFactory)
removeActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicejoinedAndReadyNotificationActionFactory - implementation of this interfacepublic void removeActionFactory(com.sun.enterprise.ee.cms.core.PlannedShutdownActionFactory plannedShutdownActionFactory)
removeActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServiceplannedShutdownActionFactory - implementation of this interfacepublic void removeMessageActionFactory(String componentName)
removeMessageActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicecomponentName - name of componentpublic void removeActionFactory(com.sun.enterprise.ee.cms.core.GroupLeadershipNotificationActionFactory groupLeadershipNotificationActionFactory)
removeActionFactory in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic com.sun.enterprise.ee.cms.core.GroupHandle getGroupHandle()
getGroupHandle in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic void shutdown(com.sun.enterprise.ee.cms.core.GMSConstants.shutdownType shutdownType)
shutdown in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic void updateMemberDetails(String memberToken, Serializable key, Serializable value) throws com.sun.enterprise.ee.cms.core.GMSException
updateMemberDetails in interface com.sun.enterprise.ee.cms.core.GroupManagementServicecom.sun.enterprise.ee.cms.core.GMSExceptionpublic Map<Serializable,Serializable> getMemberDetails(String memberToken)
getMemberDetails in interface com.sun.enterprise.ee.cms.core.GroupManagementServicememberToken - identity token of the member processpublic Map<Serializable,Serializable> getAllMemberDetails(Serializable key)
getAllMemberDetails in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic String getGroupName()
getGroupName in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType getMemberType()
getMemberType in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic String getInstanceName()
getInstanceName in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic void setMemberDetails(String serverToken, Map<? extends Object,? extends Object> keyValuePairs) throws com.sun.enterprise.ee.cms.core.GMSException
serverToken - - member token id for this member.keyValuePairs - - a Map containing key-value pairscom.sun.enterprise.ee.cms.core.GMSException - wraps underlying exception that caused adding of member details
to fail.public void join()
throws com.sun.enterprise.ee.cms.core.GMSException
join in interface com.sun.enterprise.ee.cms.core.GroupManagementServicecom.sun.enterprise.ee.cms.core.GMSExceptionpublic void announceGroupShutdown(String groupName, com.sun.enterprise.ee.cms.core.GMSConstants.shutdownState shutdownState)
announceGroupShutdown in interface com.sun.enterprise.ee.cms.core.GroupManagementServicegroupName - name of group being shutdown.public void announceGroupStartup(String groupName, com.sun.enterprise.ee.cms.core.GMSConstants.groupStartupState startupState, List<String> memberTokens)
announceGroupStartup in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic void reportJoinedAndReadyState(String groupName)
This API is provided for the parent application to report to the group its joined and ready state to begin processing its operations. The group member that this parent application represents is now ready to process its operations at the time of this announcement to the group. GMS clients in all other group members that are interested in knowing when another member is ready to start processing operations, can subscribe to the event JoinedAndReadyEvent and be notified of this JoinedAndReadyNotificationSignal.
This api should be called only after group join operation has completed.
reportJoinedAndReadyState in interface com.sun.enterprise.ee.cms.core.GroupManagementServicegroupName - name of the grouppublic void reportJoinedAndReadyState()
This API is provided for the parent application to report to the group its joined and ready state to begin processing its operations. The group member that this parent application represents is now ready to process its operations at the time of this announcement to the group. GMS clients in all other group members that are interested in knowing when another member is ready to start processing operations, can subscribe to the event JoinedAndReadyEvent and be notified of this JoinedAndReadyNotificationSignal.
This api should be called only after group join operation has completed.
reportJoinedAndReadyState in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic boolean isGroupBeingShutdown(String groupName)
This API allows applications to query GMS to see if the group is shutting down. This helps with any pre-shutdown processing that may be required to be done on the application's side.
Also returns true when called after the gms context has left the group during a group shutdown.
isGroupBeingShutdown in interface com.sun.enterprise.ee.cms.core.GroupManagementServicegroupName - the group namepublic boolean isGroupBeingShutdown()
isGroupBeingShutdown in interface com.sun.enterprise.ee.cms.core.GroupManagementServicepublic void announceWatchdogObservedFailure(String serverToken) throws com.sun.enterprise.ee.cms.core.GMSException
announceWatchdogObservedFailure in interface com.sun.enterprise.ee.cms.core.GroupManagementServicecom.sun.enterprise.ee.cms.core.GMSExceptionpublic int outstandingNotifications()
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.