Package org.jppf.client
Interface JPPFClientConnection
- All Superinterfaces:
AutoCloseable,ClientConnectionStatusHandler
- All Known Implementing Classes:
ChannelWrapperLocal,JPPFClientConnectionImpl
Interface for a client connection to a JPPF driver.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Shutdown this connection and release all the resources it is using.Get the pool this connection belongs to.Get the unique ID for this connection and its two channels.Get the unique identifier of the remote driver.getHost()Get the driver's host name or ip address.getName()Get the name assigned to this client connection.intgetPort()Get the port number on which the dirver is listeneing for connections.intGet the priority assigned to this connection.org.jppf.management.JPPFSystemInformationGet the system information for the remote driver this connection refers to.booleanisClosed()Determine whether this connection was closed.default booleanisLocal()Determine whether this connection is local, that is, whether it executes jobs in the local JVM.booleanDetermines if this connection is over SSL.Methods inherited from interface org.jppf.client.event.ClientConnectionStatusHandler
addClientConnectionStatusListener, getStatus, removeClientConnectionStatusListener, setStatus
-
Method Details
-
getPriority
int getPriority()Get the priority assigned to this connection.- Returns:
- a priority as an int value.
-
close
void close()Shutdown this connection and release all the resources it is using.- Specified by:
closein interfaceAutoCloseable
-
isClosed
boolean isClosed()Determine whether this connection was closed.- Returns:
trueif the connection is closed,falseotherwise.
-
getName
String getName()Get the name assigned to this client connection.- Returns:
- the name as a string.
-
isSSLEnabled
boolean isSSLEnabled()Determines if this connection is over SSL.- Returns:
trueif this is an SSL connection,falseotherwise.
-
getHost
String getHost()Get the driver's host name or ip address.- Returns:
- the host as a stirng.
-
getPort
int getPort()Get the port number on which the dirver is listeneing for connections.- Returns:
- the port number as an int.
-
getDriverUuid
String getDriverUuid()Get the unique identifier of the remote driver.- Returns:
- the uuid as a string.
-
getSystemInfo
org.jppf.management.JPPFSystemInformation getSystemInfo()Get the system information for the remote driver this connection refers to.- Returns:
- a
JPPFSystemInformationinstance.
-
getConnectionUuid
String getConnectionUuid()Get the unique ID for this connection and its two channels.- Returns:
- the id as a string.
-
getConnectionPool
JPPFConnectionPool getConnectionPool()Get the pool this connection belongs to.- Returns:
- a
JPPFConnectionPoolinstance.
-
isLocal
default boolean isLocal()Determine whether this connection is local, that is, whether it executes jobs in the local JVM.- Returns:
trueif this connection is local,falseotherwise.
-