Package daikon.simplify
Class SessionManager
- Object
-
- SessionManager
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class SessionManager extends Object implements Closeable
A SessionManager is a component which handles the threading interaction with the Session.
-
-
Field Summary
Fields Modifier and Type Field Description static LoggerdebugDebug tracer common to all Simplify classes.static intprover_instantiate_count
-
Constructor Summary
Constructors Constructor Description SessionManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @Nullable SessionManagerattemptProverStartup()voidclose()Shutdown this session.static voiddebugln(String s)log debug messagestatic voidmain(String[] args)Entry point for testing.voidrequest(Cmd command)Performs the given command, or times out if too much time elapses.
-
-
-
Field Detail
-
prover_instantiate_count
public static int prover_instantiate_count
-
-
Constructor Detail
-
SessionManager
public SessionManager()
-
-
Method Detail
-
request
public void request(Cmd command) throws TimeoutException
Performs the given command, or times out if too much time elapses.- Throws:
TimeoutException
-
close
public void close(@GuardSatisfied SessionManager this)
Shutdown this session. No further commands may be executed.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
attemptProverStartup
public static @Nullable SessionManager attemptProverStartup()
-
main
public static void main(String[] args) throws TimeoutException
Entry point for testing.- Parameters:
args- command-line arguments- Throws:
TimeoutException- if SessionManager times out
-
-