use of org.jkiss.dbeaver.registry.DataSourceDescriptor in project dbeaver by serge-rider.
the class KeepAliveJob method run.
@Override
protected IStatus run(DBRProgressMonitor monitor) {
if (DBeaverCore.isClosing()) {
return Status.OK_STATUS;
}
final DBeaverCore core = DBeaverCore.getInstance();
final ProjectRegistry projectRegistry = core.getProjectRegistry();
if (projectRegistry == null) {
return Status.OK_STATUS;
}
for (DataSourceDescriptor ds : DataSourceRegistry.getAllDataSources()) {
checkDataSourceAlive(monitor, ds);
}
if (!DBeaverCore.isClosing()) {
scheduleMonitor();
}
return Status.OK_STATUS;
}
Aggregations