Package com.arbortext.e3
Interface E3Subprocess
public interface E3Subprocess
Describes an E3 Subprocess. Each instance of an object implementing
this interface corresponds to a real, running, E3 subprocess on the
E3 server machine.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidCancel the current operation and free this subprocess.voidFrees this subprocess and returns it to the pool of usable services.evaluateFunction(String commandLine) Passes an ACL function to the E3 subprocess for evaluation.evaluateFunction(String commandLine, com.arbortext.e3.E3Transaction transaction) Passes an ACL function to the E3 subprocess for evaluation.voidexecuteCommand(String commandLine) Passes an ACL command to the E3 subprocess for execution.voidexecuteCommand(String commandLine, com.arbortext.e3.E3Transaction transaction) Passes an ACL command to the E3 subprocess for execution.intgetPid()Returns the process ID of the PE subprocess corresponding to this subprocess object.Returns the subprocess pool containing this subprocess.
-
Field Details
-
UNKNOWN_PROCESS_ID
static final int UNKNOWN_PROCESS_ID- See Also:
-
-
Method Details
-
cancelOperation
void cancelOperation()Cancel the current operation and free this subprocess. -
deallocate
void deallocate()Frees this subprocess and returns it to the pool of usable services. If the subprocess is associated with the thread, it would be deallocate through the method. -
evaluateFunction
Passes an ACL function to the E3 subprocess for evaluation.- Parameters:
commandLine- function to evaluate- Returns:
- result string returned by Epic
- Throws:
com.arbortext.e3.E3RequestException- thrown if evaluation fails
-
evaluateFunction
String evaluateFunction(String commandLine, com.arbortext.e3.E3Transaction transaction) throws com.arbortext.e3.E3RequestException Passes an ACL function to the E3 subprocess for evaluation.- Parameters:
commandLine- function to evaluatetransaction- transaction being processed (so transaction-related data can be included in error messages); may be null.- Returns:
- result string returned by Epic
- Throws:
com.arbortext.e3.E3RequestException- thrown if evaluation fails
-
executeCommand
Passes an ACL command to the E3 subprocess for execution.- Parameters:
commandLine- command to execute- Throws:
com.arbortext.e3.E3RequestException- thrown if execution fails.
-
executeCommand
void executeCommand(String commandLine, com.arbortext.e3.E3Transaction transaction) throws com.arbortext.e3.E3RequestException Passes an ACL command to the E3 subprocess for execution.- Parameters:
commandLine- command to executetransaction- transaction being processed (so transaction-related data can be included in error messages); may be null.- Throws:
com.arbortext.e3.E3RequestException- thrown if execution fails.
-
getPid
int getPid()Returns the process ID of the PE subprocess corresponding to this subprocess object.- Returns:
- integer Process ID.
-
getSubprocessPool
E3SubprocessPool getSubprocessPool()Returns the subprocess pool containing this subprocess.- Returns:
E3SubprocessPoolobject
-