Integer port = (Integer) params.get(PORT.key);
String database = (String) params.get(DATABASE.key);
String user = (String) params.get(USER.key);
String pass = (String) params.get(PASSWD.key);
PostgisLookUpSchemaRunnable runnable = new PostgisLookUpSchemaRunnable(host, port, user,
pass, database);
runnable.run(monitor);
if (runnable.getError() != null) {
message = new Exception(runnable.getError());
status = Status.BROKEN;
return null;
}
Set<TableDescriptor> tables = runnable.getTableDescriptors();
Multimap<String, TableDescriptor> schemas = HashMultimap.create();
for( TableDescriptor schema : tables ) {
schemas.put(schema.schema,schema);
}
return schemas.asMap();