protected void processNodeCreated ( String path ) { if ( path . equals ( masterZnode ) ) { LOG . info ( masterZnode + " created and try to become active master" ) ; handleMasterNodeChange ( ) ; } }
Deal with create node event just call the leader election .