org.mule.lifecycle
Class PrimaryNodeLifecycleNotificationListener

java.lang.Object
  extended by org.mule.lifecycle.PrimaryNodeLifecycleNotificationListener
All Implemented Interfaces:
ClusterNodeNotificationListener, ServerNotificationListener

public class PrimaryNodeLifecycleNotificationListener
extends Object
implements ClusterNodeNotificationListener

This class will start an Startable mule object that must only be started in the primary node.


Field Summary
protected  Log logger
           
 
Constructor Summary
PrimaryNodeLifecycleNotificationListener(Startable startMeOnPrimaryNodeNotification, MuleContext muleContext)
           
 
Method Summary
 void onNotification(ServerNotification notification)
           
 void register()
           
 void unregister()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient Log logger
Constructor Detail

PrimaryNodeLifecycleNotificationListener

public PrimaryNodeLifecycleNotificationListener(Startable startMeOnPrimaryNodeNotification,
                                                MuleContext muleContext)
Method Detail

register

public void register()

onNotification

public void onNotification(ServerNotification notification)
Specified by:
onNotification in interface ServerNotificationListener

unregister

public void unregister()


Copyright © 2003-2013 MuleSoft, Inc.. All Rights Reserved.