Class TestService
- java.lang.Object
-
- test.de.iip_ecosphere.platform.security.services.kodex.TestService
-
public class TestService extends java.lang.ObjectIntegration of KIPROTECT KODEX as a service.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringVERSIONstatic intWAITING_TIME
-
Constructor Summary
Constructors Constructor Description TestService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ProcesscreateProcess(java.io.File dir, java.lang.String... args)Creates and starts a Python process.static voidmain(java.lang.String... args)Test execution of Kodex.
-
-
-
Field Detail
-
WAITING_TIME
public static final int WAITING_TIME
- See Also:
- Constant Field Values
-
VERSION
private static final java.lang.String VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
createProcess
public static java.lang.Process createProcess(java.io.File dir, java.lang.String... args) throws java.io.IOExceptionCreates and starts a Python process.- Parameters:
dir- the home dir where to find the script/run it withinargs- the process arguments for the script including python arguments (first), script and script arguments- Returns:
- the created process
- Throws:
java.io.IOException- if process creation fails
-
main
public static void main(java.lang.String... args) throws java.io.IOException, java.lang.InterruptedExceptionTest execution of Kodex.- Parameters:
args- command line arguments- Throws:
java.io.IOException- in case that the command line streams breakjava.lang.InterruptedException- in case that the Kodex process is interrupted unexpectedly
-
-