Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.remote.server

public Class RemoteListenerServerManager

extends Object
implements AutoCloseable
Class Inheritance
All Implemented Interfaces
java.lang.AutoCloseable
Imports
java.io.IOException, java.net.BindException, org.slf4j.Logger, .LoggerFactory

Manages the RemoteServerThread through typical life cycle methods.

open -> start -> stop openAndStart -> stop

Observer: isOpen, isNotStartedBefore

Field Summary

Modifier and TypeField and Description
private static final Logger
private RemoteListenerServerThread

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

public boolean
public boolean
public void
open(RemoteMessageHandler messageHandler, int port)

Acquire any resources needed for the server.

public void
openAndStart(RemoteMessageHandler messageHandler, int port)

public void
public void
stop()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER
remoteServerThreadback to summary
private RemoteListenerServerThread remoteServerThread

Constructor Detail

RemoteListenerServerManagerback to summary
public RemoteListenerServerManager()

Method Detail

closeback to summary
public void close()

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
isNotStartedBeforeback to summary
public boolean isNotStartedBefore()
isOpenback to summary
public boolean isOpen()
openback to summary
public void open(RemoteMessageHandler messageHandler, int port)

Acquire any resources needed for the server.

openAndStartback to summary
public void openAndStart(RemoteMessageHandler messageHandler, int port)
startback to summary
public void start()
stopback to summary
public void stop()