Top Description Fields Constructors Methods
bsh.util

public Class Sessiond

Additional top-level class in compilation unit: SessiondConnection.

extends Thread
Class Inheritance
Imports
java.io.*, java.net.Socket, .ServerSocket, bsh.*

BeanShell remote session server. Starts instances of bsh for client connections.

Note

the sessiond effectively maps all connections to the same interpreter (shared namespace).

Field Summary

Modifier and TypeField and Description
pack-priv NameSpace
private ServerSocket
Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
public
Sessiond(NameSpace globalNameSpace, int port)

Method Summary

Modifier and TypeMethod and Description
public void
run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

This method is run by the thread when it executes.
Inherited from java.lang.Thread:
activeCountcheckAccessclonecountStackFramescurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitresumesetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadstopsuspendthreadIdtoStringyield

Field Detail

globalNameSpaceback to summary
pack-priv NameSpace globalNameSpace
ssback to summary
private ServerSocket ss

Constructor Detail

Sessiondback to summary
public Sessiond(NameSpace globalNameSpace, int port) throws IOException

Method Detail

runback to summary
public void run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

Doc from java.lang.Thread.run.

This method is run by the thread when it executes. Subclasses of Thread may override this method.

This method is not intended to be invoked directly. If this thread is a platform thread created with a Runnable task then invoking this method will invoke the task's run method. If this thread is a virtual thread then invoking this method directly does nothing.