Proxy Class Reference
List of all members.
Member Function Documentation
| void Proxy::closeProxy |
( |
|
) |
[inline] |
00023 {
00024
00025 if (rs != null) {
00026 try {
00027 rs.close();
00028 } catch (Exception e) { }
00029 rs = null;
00030 }
00031
00032
00033
00034
00035
00036
00037
00038 }
| void Proxy::setProxyList |
( |
|
) |
[inline] |
00011 {
00012
00013 try {
00014 rs = db.getResult("SELECT SQL_CALC_FOUND_ROWS ProxyID, Url, Port FROM Proxies WHERE Used = 0");
00015 crs = db.getResult("SELECT FOUND_ROWS()");
00016 crs.next();
00017
00018 } catch (Exception e) {
00019 System.out.println("Proxy list failed with " + e);
00020 }
00021 }
| void Proxy::updateStatus |
( |
|
) |
[inline] |
00040 {
00041
00042 if (updateIds != ""){
00043 try {
00044
00045 db.execute("UPDATE Proxies SET Used = 1 WHERE ProxyID IN (" + updateIds + ")");
00046 } catch (Exception e) {
00047 System.out.println(e);
00048 }
00049 } else {
00050 System.out.println("Nothing to update");
00051 }
00052 }
Member Data Documentation
The documentation for this class was generated from the following file: