Skip to content

Commit

Permalink
CB-5151 fix infinity server restart
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-skoblikov committed May 23, 2024
1 parent 1e599fd commit 95b1cd0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

import java.nio.file.Files;
import java.nio.file.Path;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

Expand All @@ -66,7 +67,7 @@ public abstract class BaseWebApplication extends BaseApplicationImpl implements
private static final Log log = Log.getLog(BaseWebApplication.class);

private String instanceId;

private LocalDateTime startTime = LocalDateTime.now();
@NotNull
@Override
public DBPWorkspace createWorkspace(@NotNull DBPPlatform platform, @NotNull IWorkspace eclipseWorkspace) {
Expand Down Expand Up @@ -282,4 +283,10 @@ public WSEventController getEventController() {
public boolean isEnvironmentVariablesAccessible() {
return false;
}

@NotNull
@Override
public LocalDateTime getStartTime() {
return startTime;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.jkiss.dbeaver.model.websocket.event.WSEventController;

import java.nio.file.Path;
import java.time.LocalDateTime;

/**
* Base interface for web application
Expand Down Expand Up @@ -95,4 +96,10 @@ default String getRootURI() {
int getServerPort();

boolean isLicenseRequired();

/**

Check warning on line 100 in server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/WebApplication.java

View check run for this annotation

Jenkins-CI-integration / CheckStyle Java Report

server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/WebApplication.java#L100

Summary javadoc is missing.
* @return - server start time
*/
@NotNull
LocalDateTime getStartTime();
}

0 comments on commit 95b1cd0

Please sign in to comment.