|
|
|
@ -148,11 +148,11 @@ public class IecClient implements ClientEventListener {
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void getFile(String remotePath, String filename, String localPath, Integer todel) throws Exception {
|
|
|
|
|
public void getFile(String remotePath, String localPath, Integer todel) throws Exception {
|
|
|
|
|
GetFileAction gfa = new GetFileAction(localPath);
|
|
|
|
|
clientAssociation.getFile(remotePath + filename, gfa);
|
|
|
|
|
clientAssociation.getFile(remotePath, gfa);
|
|
|
|
|
if (todel != null && todel == Constants.TRUE) {
|
|
|
|
|
clientAssociation.deleteFile(remotePath + filename);
|
|
|
|
|
clientAssociation.deleteFile(remotePath);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -213,7 +213,7 @@ public class IecClient implements ClientEventListener {
|
|
|
|
|
str = iecClient.getValue("OMDLMONT/SPDC1.MaxDsch.t", "MX");
|
|
|
|
|
System.out.println(str);
|
|
|
|
|
List<FileInformation> list = iecClient.listFile("/fdata");
|
|
|
|
|
iecClient.getFile("/fdata/web/comtrade/1/18/6/", "20241021_113736_703_0_0.dat", "/eqmid/20241021_113736_703_0_0.dat", 1);
|
|
|
|
|
iecClient.getFile("/fdata/web/comtrade/1/18/6/20241021_113736_703_0_0.dat", "/eqmid/20241021_113736_703_0_0.dat", 1);
|
|
|
|
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|