package cn.myapps.runtime.excutor.async;

import java.io.Serializable;

public class RuntimeDaoCommand implements Serializable {
	private static final long serialVersionUID = -8260229527298904718L;
	private String className;
	private String methodName;
	private Object[] args;
	private String applicationId;

	public String getApplicationId() {
		return applicationId;
	}

	public String getClazzName() {
		return className;
	}

	public String getMethodName() {
		return methodName;
	}

	public Object[] getArgs() {
		return args;
	}

	public RuntimeDaoCommand(String className, String methodName, Object[] args, String applicationId) {
		this.className = className;
		this.methodName = methodName;
		this.args = args;
		this.applicationId = applicationId;
	}

	public String toString() {
		return this.className + "." + this.methodName + "(" + this.args + ")@"+applicationId;
	}
}
