Added comment
This commit is contained in:
parent
b7ae9b69bc
commit
870779d55d
1 changed files with 3 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ public class IMDGApplication {
|
||||||
SpringApplicationBuilder builder = new SpringApplicationBuilder(IMDGApplication.class);
|
SpringApplicationBuilder builder = new SpringApplicationBuilder(IMDGApplication.class);
|
||||||
ConfigurableApplicationContext configurableApplicationContext = builder.run(args);
|
ConfigurableApplicationContext configurableApplicationContext = builder.run(args);
|
||||||
|
|
||||||
|
//Поиск таблиц которым нужно добавить mapStore и вывод результата в консоль
|
||||||
List<String> nameTables = new ArrayList<>();
|
List<String> nameTables = new ArrayList<>();
|
||||||
Connection jdbcConnection = DriverManager.getConnection("jdbc:postgresql://10.200.200.133:5432/postgres", "clearing", "Aa111111");
|
Connection jdbcConnection = DriverManager.getConnection("jdbc:postgresql://10.200.200.133:5432/postgres", "clearing", "Aa111111");
|
||||||
DatabaseMetaData md = jdbcConnection.getMetaData();
|
DatabaseMetaData md = jdbcConnection.getMetaData();
|
||||||
|
|
@ -33,7 +34,7 @@ public class IMDGApplication {
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
nameTables.add(rs.getString(3));
|
nameTables.add(rs.getString(3));
|
||||||
}
|
}
|
||||||
|
|
||||||
HazelcastInstance hazelcastInstance = configurableApplicationContext.getBean(HazelcastInstance.class);
|
HazelcastInstance hazelcastInstance = configurableApplicationContext.getBean(HazelcastInstance.class);
|
||||||
hazelcastInstance.getMap("");
|
hazelcastInstance.getMap("");
|
||||||
for (String mapName : hazelcastInstance.getConfig().getMapConfigs().keySet()) {
|
for (String mapName : hazelcastInstance.getConfig().getMapConfigs().keySet()) {
|
||||||
|
|
@ -53,6 +54,7 @@ public class IMDGApplication {
|
||||||
}
|
}
|
||||||
nameTables.remove(tableName.toLowerCase());
|
nameTables.remove(tableName.toLowerCase());
|
||||||
}
|
}
|
||||||
|
//вывод результата поиска
|
||||||
nameTables.forEach(System.out::println);
|
nameTables.forEach(System.out::println);
|
||||||
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue