io.parallec.core.util.BeanMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of parallec-core Show documentation
Show all versions of parallec-core Show documentation
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" });
}
}