Verified Owner
Top Fields Constructors Methods
org.jabref.languageserver

public Class LspLauncher

extends Thread
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream, java.net.ServerSocket, .Socket, java.util.concurrent.ExecutorService, .Executors, java.util.function.Function, org.jabref.logic.journals.JournalAbbreviationLoader, .JournalAbbreviationRepository, org.jabref.logic.preferences.CliPreferences, .JabRefCliPreferences, org.jabref.logic.remote.server.RemoteMessageHandler, org.jabref.model.entry.BibEntryTypesManager, org.eclipse.lsp4j.jsonrpc.Launcher, org.eclipse.lsp4j.launch.LSPLauncher, org.eclipse.lsp4j.services.LanguageClient, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final JournalAbbreviationRepository
private final BibEntryTypesManager
private final CliPreferences
private static final Logger
private final RemoteMessageHandler
private final int
private volatile boolean
private ServerSocket
private boolean
private final ExecutorService
Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
public
LspLauncher(RemoteMessageHandler messageHandler, CliPreferences cliPreferences, JournalAbbreviationRepository abbreviationRepository, BibEntryTypesManager bibEntryTypesManager, int port)

public
LspLauncher(RemoteMessageHandler messageHandler, CliPreferences cliPreferences, int port)

public

Method Summary

Modifier and TypeMethod and Description
private void
public void
interrupt()

Overrides java.lang.Thread.interrupt.

Interrupts this thread.

public boolean
public boolean
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:
activeCountcheckAccessclonecurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitsetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadthreadIdtoStringyield

Field Detail

abbreviationRepositoryback to summary
private final JournalAbbreviationRepository abbreviationRepository
bibEntryTypesManagerback to summary
private final BibEntryTypesManager bibEntryTypesManager
cliPreferencesback to summary
private final CliPreferences cliPreferences
LOGGERback to summary
private static final Logger LOGGER
messageHandlerback to summary
private final RemoteMessageHandler messageHandler
portback to summary
private final int port
runningback to summary
private volatile boolean running
serverSocketback to summary
private ServerSocket serverSocket
standaloneback to summary
private boolean standalone
threadPoolback to summary
private final ExecutorService threadPool

Constructor Detail

LspLauncherback to summary
public LspLauncher(RemoteMessageHandler messageHandler, CliPreferences cliPreferences, JournalAbbreviationRepository abbreviationRepository, BibEntryTypesManager bibEntryTypesManager, int port)
LspLauncherback to summary
public LspLauncher(RemoteMessageHandler messageHandler, CliPreferences cliPreferences, int port)
LspLauncherback to summary
public LspLauncher(JabRefCliPreferences instance, Integer port)

Method Detail

handleClientback to summary
private void handleClient(Socket socket)
interruptback to summary
public void interrupt()

Overrides java.lang.Thread.interrupt.

Doc from java.lang.Thread.interrupt.

Interrupts this thread.

If this thread is blocked in an invocation of the wait(), wait(long), or wait(long, int) methods of the Object class, or of the join(), join(long), join(long, int), sleep(long), or sleep(long, int) methods of this class, then its interrupted status will be cleared and it will receive an InterruptedException.

If this thread is blocked in an I/O operation upon an InterruptibleChannel then the channel will be closed, the thread's interrupted status will be set, and the thread will receive a java.nio.channels.ClosedByInterruptException.

If this thread is blocked in a java.nio.channels.Selector then the thread's interrupted status will be set and it will return immediately from the selection operation, possibly with a non-zero value, just as if the selector's wakeup method were invoked.

If none of the previous conditions hold then this thread's interrupted status will be set.

Interrupting a thread that is not alive need not have any effect.

Annotations
@Override
isRunningback to summary
public boolean isRunning()
isStandaloneback to summary
public boolean isStandalone()
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.

Annotations
@Override