public boolean znodeIsMe ( String path ) { String value = ZKUtils . get ( zk , path ) ; return ( value != null && value == myNodeID ) ; }
Given a path determines whether or not the value of a ZNode is my node ID .