All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.parallec.core.util.BeanMapper Maven / Gradle / Ivy

Go to download

Parallec: Parallel Async HTTP/SSH/PING/TCP Client library. Details at: http://www.parallec.io

The newest version!
package io.parallec.core.util;

import io.parallec.core.ParallelTask;
import io.parallec.core.task.ParallelTaskBean;

import org.springframework.beans.BeanUtils;

/**
 * TODO
 * 
 * @author Yuanteng (Jeff) Pei
 *
 */
public class BeanMapper {

    public static void copy(final ParallelTask source,
            final ParallelTaskBean target) {
        BeanUtils.copyProperties(source, target, new String[] { "state",
                "logger", "responseContext", " handler", " parallelTaskResult",
                "executionManager", "replacementVarMapNodeSpecific",
                "replacementVarMap", "submitTime", "executeStartTime",
                "executionEndTime" });
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy