Modifier and Type | Class and Description |
---|---|
class |
Client
Client This class represent a Raspberry working as client
|
Modifier and Type | Method and Description |
---|---|
Server |
Client.getServer(int pos)
getServer: return the server in the specified position
|
Server |
Client.getServer(java.lang.String serverName)
getServer: return the server whit the specified name
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Server> |
Client.getListServers()
getListServers: return the list of servers in the network.
|
Modifier and Type | Method and Description |
---|---|
void |
Client.addServer(Server server)
addServer: add a server to the array list of servers.
|
static java.lang.String |
Utilities.getAddress(Server server)
getAddress: return the URL address of server with specified name
|
static boolean |
Communication.sendGET(Client client,
Server server,
java.lang.String order)
sendGET: This method send a GET request with the order to the server specified.
|
static boolean |
Communication.testOnline(Client client,
Server server)
testOnLine: Check if the server specified are online
|
void |
Client.updateServer(Server server,
int pos)
updateServer: This method update the data of devices connected to a RPi.
|
Modifier and Type | Method and Description |
---|---|
void |
Client.setListServers(java.util.ArrayList<Server> listServers)
setListServers: set the array list with the servers in the network.
|