public static NodeType convert(String value) {
        if (StringUtils.isEmpty(value)) {
            return null;
        }
        return NodeType.valueOf(value);
    }
@author Robert HG (254963746@qq.com) on 6/22/14.
lts-core/src/main/java/com/github/ltsopensource/core/cluster/NodeType.java