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

prerna.tcp.PayloadStruct Maven / Gradle / Ivy

The newest version!
package prerna.tcp;

import java.io.Serializable;

public class PayloadStruct implements Serializable {
	
	public String epoc = null;
	// other operations to introduce
	// ENGINE 
	// SET
	
	public enum OPERATION {R, PYTHON, CHROME, ECHO, ENGINE, REACTOR, INSIGHT, PROJECT, CMD, STDOUT, STDERR}; 
	public OPERATION operation = OPERATION.R; // setting default to R
	public String methodName = "method";
	public Object [] payload = null;
	public Class [] payloadClasses = null;
	
	// this is because python cant marshal java classes
	public String [] payloadClassNames = null;
	public String engineType = null;
	
	public String ex = null;
	public boolean processed = false;
	public boolean longRunning = false;
	public String env = null;
	public boolean interim = false;
	
	// this is a little bit of a complex logic
	// the idea here is say you hve something that is not serializable
	// you can keep it on that end and then work it through that
	public String [] inputAlias = null; // this should be the same size as payload
	public String aliasReturn = null;
	
	public boolean hasReturn = true; // if it is a void set this to true
	
	// parent epoc
	// to make sure that this is something that is a follow on
	public String parentEpoc = null; // do we need this other than for trace ?
	// is this request or response
	public boolean response = false;
	
	// object identifier
	// this is specifically useful for things like engine etc. 
	public String objId = null;
	
	// specify the project id for reactor loads
	public String projectId = null;
	
	// set the project name
	public String projectName = null;
	
	// specify the portal id for reactor loads
	public String portalId = null;
	
	// set the insight id
	public String insightId = null;
	
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy