class ClusterPathChildrenCacheListener implements PathChildrenCacheListener {

    @Override
    public void childEvent(CuratorFramework client, PathChildrenCacheEvent event) throws Exception
    {
        String node;
        String nodeId;

        try {
            node = ZKPaths.getNodeFromPath(event.getData().getPath());
            nodeId = node.substring(node.indexOf("_") + 1);

            clusterSyncManagerInstance.updateNodeStatus(nodeId, event.getType());

        }catch (Exception e){
            logger.error("Exception receiving event {}: {}", event, e.getMessage());
        }

    }

    public  ClusterPathChildrenCacheListener(ClusterSyncManager clusterSyncManagerInstance);

}