com.atlassian.confluence.event.listeners
Class ClusterSharedHomeSanityCheckEventListener

java.lang.Object
  extended by com.atlassian.confluence.event.listeners.ClusterSharedHomeSanityCheckEventListener
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class ClusterSharedHomeSanityCheckEventListener
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

Listens for events from other nodes in the cluster, requesting that the cluster touch file in shared home is touched and the touch time republished to the cluster for verification.

This listener is not active on the node that sent the event, thus we can be certain that the event can only be handled by remote nodes.

Since:
5.5

Constructor Summary
ClusterSharedHomeSanityCheckEventListener(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, ClusterTouchFile clusterTouchFile)
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 void handleEvent(ClusterEventWrapper eventWrapper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterSharedHomeSanityCheckEventListener

public ClusterSharedHomeSanityCheckEventListener(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
                                                 ClusterTouchFile clusterTouchFile)
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

handleEvent

@EventListener
public void handleEvent(ClusterEventWrapper eventWrapper)

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception


Copyright © 2003–2015 Atlassian. All rights reserved.