[jboss-jira] [JBoss JIRA] (JGRP-1543) RELAY2: provide SITE-UNREACHABLE notifications

Bela Ban (JIRA) jira-events at lists.jboss.org
Tue Nov 27 07:34:21 EST 2012


    [ https://issues.jboss.org/browse/JGRP-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12737291#comment-12737291 ] 

Bela Ban commented on JGRP-1543:
--------------------------------

RELAY2 on the *original sender* of a message to an unreachable site X gets an event SITE_UNREACHABLE sent up the stack. This can be caught in a JChannel setting an UpHandler, or using an RpcDispatcher by creating a subclass and overriding handleUpEvent().
The latter case is relevant for Infinispan: CommandAwareRpcDispatcher extends RpcDispatcher and it should now override handleUpEvent():

{code}
protected Object handleUpEvent(Event evt) {
    switch(evt.getType) {
         case Event.SITE_UNREACHABLE:
              SiteMaster unreachable_sm=(SiteMaster)evt.getArg();
              short site=unreachable_sm.getSite();
              String site_name=SiteUUID.getSiteName(site); // "SFO"
              // do something with the site
         break;
    }
    return super.handleUpEvent();
}
{code}
                
> RELAY2: provide SITE-UNREACHABLE notifications
> ----------------------------------------------
>
>                 Key: JGRP-1543
>                 URL: https://issues.jboss.org/browse/JGRP-1543
>             Project: JGroups
>          Issue Type: Feature Request
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>             Fix For: 3.2.3, 3.3
>
>
> Provide notifications when a site is down, every time a message is sent to a SiterMaster(X) and X is down, a notification SITE-UNREACHABLE should be emitted.
> This can be:
> - A SITE_UNREACHABLE event being sent up the stack of the message sender
> - A callback being invoked on registered listeners in RELAY2

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list