| 62 |
|
//---PUBLIC METHODS--- |
| 63 |
|
|
| 64 |
|
public InetAddress getFilterName(){ |
| 65 |
< |
// will return the most recient IP address (if it is dynamic for whatever reason |
| 65 |
> |
// will return the most recent IP address (if it is dynamic for whatever reason) |
| 66 |
|
try { |
| 67 |
|
return InetAddress.getByName(filterName); |
| 68 |
|
} |
| 76 |
|
/** |
| 77 |
|
* Used to retrieve the port to send UDP packets to on the filter |
| 78 |
|
* |
| 79 |
< |
* @return an integer corrisponding to the UDP port of the filter |
| 79 |
> |
* @return an integer corresponding to the UDP port of the filter |
| 80 |
|
*/ |
| 81 |
|
public int getFilterUDPPort(){ |
| 82 |
|
|
| 86 |
|
/** |
| 87 |
|
* Used to retrieve the port to send TCP heartbeats to on the filter |
| 88 |
|
* |
| 89 |
< |
* @return an integer corrisponding to the TCP of the filter |
| 89 |
> |
* @return an integer corresponding to the TCP of the filter |
| 90 |
|
*/ |
| 91 |
|
public int getFilterTCPPort(){ |
| 92 |
|
|
| 131 |
|
// everything is fine |
| 132 |
|
// sendCommand("LASTMODIFIED"); |
| 133 |
|
lastModified = sendCommand("LASTMODIFIED"); |
| 134 |
< |
|
| 134 |
> |
|
| 135 |
|
fileList = sendCommand("FILELIST"); |
| 136 |
+ |
|
| 137 |
+ |
fQDN = sendCommand("FQDN"); |
| 138 |
|
// get all the properties |
| 139 |
|
if ( numProperties > 0 ){ |
| 140 |
|
// sendCommand("CONFIG"); |
| 247 |
|
private boolean configChanged; |
| 248 |
|
private String lastModified; |
| 249 |
|
private String fileList; |
| 250 |
+ |
private String fQDN; |
| 251 |
|
private int numProperties; |
| 252 |
|
private HashMap myProperties; |
| 253 |
|
private String filterName; |
| 262 |
|
|
| 263 |
|
//---STATIC ATTRIBUTES--- |
| 264 |
|
|
| 265 |
< |
} // class |
| 265 |
> |
} // class |