root / hci / trunk / eneraptor-web-app / grails-app / controllers / com / eneraptor / hci / LogicRequestController.groovy @ 3
History | View | Annotate | Download (676 Bytes)
1 |
package com.eneraptor.hci
|
---|---|
2 |
|
3 |
class LogicRequestController { |
4 |
|
5 |
def reportService
|
6 |
|
7 |
def testConnection = {
|
8 |
|
9 |
def output = ""; |
10 |
output += reportService.println("Conection test using")
|
11 |
output += reportService.println("Logic IP address: " + InternalConfig.findByConfigId('logic-ip').configVal) |
12 |
output += reportService.println("Logic port number: " + InternalConfig.findByConfigId('logic-port').configVal) |
13 |
|
14 |
output += reportService.println("Test started")
|
15 |
output += reportService.println("<span style='color:red;'>Error: " + "Connection implementation missing.</span>") |
16 |
output += reportService.println("Test ended")
|
17 |
|
18 |
[output:output]
|
19 |
|
20 |
} |
21 |
|
22 |
} |