Package ej.rcommand.connectivity
Interface ConnectivityManager
-
- All Known Implementing Classes:
ConnectivityManagerProxy,RemoteCommandCommPopulator,RemoteCommandServer
public interface ConnectivityManagerClass that answers queries about the connectivity of the console with a client.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddConnectivityListener(ConnectivityListener listener)Adds a listener.intgetAvailable()Returns the numbers of available connections.StringgetConnectionInfo()Returns a String representing how the service can be joined from remote clients.voidremoveConnectivityListener(ConnectivityListener listener)Removes a listener.
-
-
-
Method Detail
-
getAvailable
int getAvailable()
Returns the numbers of available connections.- Returns:
- the numbers of available connections.
-
getConnectionInfo
String getConnectionInfo()
Returns a String representing how the service can be joined from remote clients.Examples of such strings are:
192.168.0.1:4000for a service listening on a TCP port on these addresses and ports.for a service listening on a TCP port on these addresses and ports.comm:com6;baudrate=115200for a service listening on a COMM port with these parameters
- Returns:
- the connectivity URL, as a String.
-
addConnectivityListener
void addConnectivityListener(ConnectivityListener listener)
Adds a listener.- Parameters:
listener- the listener.
-
removeConnectivityListener
void removeConnectivityListener(ConnectivityListener listener)
Removes a listener.- Parameters:
listener- the listener.
-
-