Package gda.jython
Class JythonServer.JythonServerThread
java.lang.Object
java.lang.Thread
gda.jython.JythonServer.JythonServerThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
JythonServer
Base class for all the types of thread started by the JythonServer to run Jython commands.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJythonServerThread(JythonServer server, BatonManager baton, String jsf, boolean scripted) protectedJythonServerThread(JythonServer server, String jsf) protectedJythonServerThread(JythonServer server, String jsf, boolean scripted) -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, yield
-
Constructor Details
-
JythonServerThread
-
JythonServerThread
-
JythonServerThread
-
-
Method Details
-
run
public abstract void run() -
requestInput
- Throws:
InterruptedException
-
getJythonServerThreadId
-
getCommand
Access the command responsible for the thread- Returns:
- command string
-
isScript
public boolean isScript()Check if this thread is running a scriptUsed when pausing scripts.
- Returns:
- true if this thread represents a script
-
getCommandThreadType
-
getCreationTimestamp
-
getThreadInfo
-
toString
-
getAuthorisationLevel
public int getAuthorisationLevel() -
clientId
Get the client ID of the current thread if available
-