(String str)
| 63 | } |
| 64 | |
| 65 | public Server queryByString(String str) throws Exception { |
| 66 | List<Server> all = this.queryAll(); |
| 67 | for (Server server : all) { |
| 68 | |
| 69 | if (server.toString().equals(str)) { |
| 70 | |
| 71 | return server; |
| 72 | } |
| 73 | } |
| 74 | return null; |
| 75 | } |
| 76 | |
| 77 | public Server queryByHostNameAndPort(String hostname, int port) throws Exception { |
| 78 | String cache_key = hostname + String.valueOf(port); |
no test coverage detected