Top Fields Constructors Methods
org.jabref.logic.remote.server

public Class RemoteListenerServer

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable
Imports
java.io.IOException, java.net.ServerSocket, .Socket, .SocketException, javafx.util.Pair, org.jabref.logic.remote.Protocol, .RemoteMessage, .RemotePreferences, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final int
private static final Logger
private final RemoteMessageHandler
private final ServerSocket
private static final int

Constructor Summary

AccessConstructor and Description
public
RemoteListenerServer(RemoteMessageHandler messageHandler, int port)

Method Summary

Modifier and TypeMethod and Description
public void
private void
handleMessage(Protocol protocol, RemoteMessage type, Object argument)

public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BACKLOGback to summary
private static final int BACKLOG
LOGGERback to summary
private static final Logger LOGGER
messageHandlerback to summary
private final RemoteMessageHandler messageHandler
serverSocketback to summary
private final ServerSocket serverSocket
TIMEOUTback to summary
private static final int TIMEOUT

Constructor Detail

RemoteListenerServerback to summary
public RemoteListenerServer(RemoteMessageHandler messageHandler, int port) throws IOException

Method Detail

closeServerSocketback to summary
public void closeServerSocket()
handleMessageback to summary
private void handleMessage(Protocol protocol, RemoteMessage type, Object argument) throws IOException
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override