Verified Owner
Top Fields Constructors Methods
org.jabref.logic.remote.client

public Class RemoteClient

extends Object
Class Inheritance
Imports
java.io.IOException, java.net.InetSocketAddress, .Socket, javafx.util.Pair, org.jabref.logic.l10n.Localization, org.jabref.logic.remote.Protocol, .RemoteMessage, .RemotePreferences, org.slf4j.Logger, .LoggerFactory

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
RemoteClient(int port)

Method Summary

Modifier and TypeMethod and Description
private Protocol
public boolean
ping()

public boolean

Returns:

true if successful, false otherwise.
sendCommandLineArguments
(String[]
command line arguments.
args
)

Attempt to send command line arguments to already running JabRef instance.

public boolean

Returns:

true if successful, false otherwise.
sendFocus
()

Attempt to send a focus command to already running JabRef instance.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER
portback to summary
private final int port
TIMEOUTback to summary
private static final int TIMEOUT

Constructor Detail

RemoteClientback to summary
public RemoteClient(int port)

Method Detail

openNewConnectionback to summary
private Protocol openNewConnection() throws IOException
pingback to summary
public boolean ping()
sendCommandLineArgumentsback to summary
public boolean sendCommandLineArguments(String[] args)

Attempt to send command line arguments to already running JabRef instance.

Parameters
args:String[]

command line arguments.

Returns:boolean

true if successful, false otherwise.

sendFocusback to summary
public boolean sendFocus()

Attempt to send a focus command to already running JabRef instance.

Returns:boolean

true if successful, false otherwise.