class MasterRegistry {

    public void unRegistry() {
        String address = getLocalAddress();
        String localNodePath = getMasterPath();
        heartBeatExecutor.shutdownNow();
        zookeeperRegistryCenter.getZookeeperCachedOperator().remove(localNodePath);
        logger.info("master node : {} unRegistry from ZK path {}."
                , address, localNodePath);
    }

}