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 java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

Creates a temporary file in shared home directory, that can be read by the node that generated this event.

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, ClusterManager clusterManager)
           
 
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,
                                                 ClusterManager clusterManager)
Method Detail

afterPropertiesSet

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

handleEvent

@EventListener
public void handleEvent(ClusterEventWrapper eventWrapper)

destroy

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.