Modifier and Type | Method and Description |
---|---|
static Client |
Processing.getClientConfig(Client client)
getClientConfig Read the configuration file and update the client.
|
static Client |
Processing.initServers(Client client)
initServers: this method create the server objects, making a array of n Server with IP address,
etc..
|
Modifier and Type | Method and Description |
---|---|
static boolean |
Processing.applyManualMode(Client client,
java.util.ArrayList<ManualOrder> listOrders,
java.sql.Connection sqlConnection)
applyManualMode: Execute the orders specified in manual configuration file.
|
static void |
SQLUtils.dbInsertStatus(Client client,
java.sql.Connection sqlConnection)
dbStoreStatus: this method store the current status in the database.
|
static void |
SQLUtils.dbStoreStatus(Client client,
java.sql.Connection sqlConnection)
dbStoreStatus: this method store the current status in the database.
|
static void |
SQLUtils.dbStoreTemperature(Client client,
java.sql.Connection sqlConnection,
java.lang.String t1,
java.lang.String t2)
dbStoreTemperature: store the temperature values in the database.
|
static void |
SQLUtils.dbUpdateStatus(Client client,
java.sql.Connection sqlConnection)
dbUpdateStatus: this method update the current status in the database.
|
static void |
Processing.determineAction(Client client)
determineAction: this method determine the action to execute according to the state.
|
static void |
Processing.doAutomaticMode(Client client)
doAutomaticMode: This method do all work to process automatically.
|
static boolean |
Processing.doManualMode(Client client,
java.sql.Connection sqlConnection)
doManualMode: Prepare the list with the orders indicated in the database.
|
static java.lang.String |
Utilities.getAddress(Client client,
int pos)
getAddress: return the URL address of server with specified position into
the client list of servers
|
static Client |
Processing.getClientConfig(Client client)
getClientConfig Read the configuration file and update the client.
|
static Client |
Processing.initServers(Client client)
initServers: this method create the server objects, making a array of n Server with IP address,
etc..
|
static Automatic |
Processing.readAutomaticConfig(Client client)
readAutomaticConfig: read the file with the automatic configuration.
|
static java.util.ArrayList<ManualOrder> |
Processing.readManualConfig(Client client,
java.sql.Connection sqlConnection)
readManualConfig: Read the manual configuration from the database.
|
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 Response |
Communication.sendGET(Client client,
java.lang.String urlAddress)
sendGET: This method send a GET request to the url specified.
|
static Response |
Communication.sendPOST(Client client,
java.lang.String urlAddress,
Request objRequest)
sendPOST: This method send through POST, a Request object to server specified by URL
|
static Response |
Communication.sendPOST(Client client,
java.lang.String strServer,
java.lang.String strCommand,
java.lang.String strParameter)
sendPOST: This method send a POST request with the command + parameters to the server specified.
|
static boolean |
Communication.testOnline(Client client,
int i)
testOnLine: Test if server number "i" are online.
|
static boolean |
Communication.testOnline(Client client,
Server server)
testOnLine: Check if the server specified are online
|
static void |
Processing.updateStatusInServers(Client client)
updateStatusInServers: this method updates the current status in the servers.
|
static void |
Communication.waitForAllServersOnline(Client client)
waitForAllServersOnline: wait for all servers go online.
|
static void |
Utilities.Welcome(Client client)
Welcome: Shows the welcome message
|