// Path: src/main/java/com/baidu/unbiz/multitask/constants/TaskConfig.java
// public interface TaskConfig {
// 
//     long TASK_TIMEOUT_MILL_SECONDS = 15 * 1000L;
//     int QUEUE_FULL_SLEEP_TIME = 20;
//     int MAX_CACHE_TASK_NUM = 2;
//     int CORE_TASK_NUM = Math.min(15, Runtime.getRuntime().availableProcessors());
//     int MAX_TASK_NUM = Math.max(20, Runtime.getRuntime().availableProcessors());
// 
//     char TASKNAME_SEPARATOR = '#';
//     long NOT_LIMIT = -1;
// }


import com.baidu.unbiz.multitask.constants.TaskConfig;
package com.baidu.unbiz.multitask.utils;


/**
 * Created by wangchongjie on 15/12/21.
 */
public class AssistUtils {

    /**
     * 去除taskBean中的版本标识
     *
     * @param taskBean
     * @return
     */
    public static String removeTaskVersion(String taskBean) {
// Path: src/main/java/com/baidu/unbiz/multitask/constants/TaskConfig.java
// public interface TaskConfig {
// 
//     long TASK_TIMEOUT_MILL_SECONDS = 15 * 1000L;
//     int QUEUE_FULL_SLEEP_TIME = 20;
//     int MAX_CACHE_TASK_NUM = 2;
//     int CORE_TASK_NUM = Math.min(15, Runtime.getRuntime().availableProcessors());
//     int MAX_TASK_NUM = Math.max(20, Runtime.getRuntime().availableProcessors());
// 
//     char TASKNAME_SEPARATOR = '#';
//     long NOT_LIMIT = -1;
// }


// Path: src/main/java/com/baidu/unbiz/multitask/utils/AssistUtils.java
import com.baidu.unbiz.multitask.constants.TaskConfig;

package com.baidu.unbiz.multitask.utils;


/**
 * Created by wangchongjie on 15/12/21.
 */
public class AssistUtils {

    /**
     * 去除taskBean中的版本标识
     *
     * @param taskBean
     * @return
     */
    public static String removeTaskVersion(String taskBean) {
        return taskBean.replaceAll(TaskConfig.TASKNAME_SEPARATOR + ".*", "");