Skip to content

Extend the visibility of fields in base implementations #426 #429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,38 +47,38 @@

public class BasicTheiaCloudOperator implements TheiaCloudOperator {

private static final ScheduledExecutorService STOP_EXECUTOR = Executors.newSingleThreadScheduledExecutor();
private static final ScheduledExecutorService WATCH_EXECUTOR = Executors.newSingleThreadScheduledExecutor();
protected static final ScheduledExecutorService STOP_EXECUTOR = Executors.newSingleThreadScheduledExecutor();
protected static final ScheduledExecutorService WATCH_EXECUTOR = Executors.newSingleThreadScheduledExecutor();

private static final Logger LOGGER = LogManager.getLogger(BasicTheiaCloudOperator.class);

private static final String COR_ID_APPDEFINITIONPREFIX = "appdefinition-watch-";
private static final String COR_ID_WORKSPACEPREFIX = "workspace-watch-";
private static final String COR_ID_SESSIONPREFIX = "session-watch-";
private static final String COR_ID_TIMEOUTPREFIX = "timeout-";
protected static final String COR_ID_APPDEFINITIONPREFIX = "appdefinition-watch-";
protected static final String COR_ID_WORKSPACEPREFIX = "workspace-watch-";
protected static final String COR_ID_SESSIONPREFIX = "session-watch-";
protected static final String COR_ID_TIMEOUTPREFIX = "timeout-";

@Inject
private TheiaCloudClient resourceClient;
protected TheiaCloudClient resourceClient;

@Inject
protected Set<OperatorPlugin> operatorPlugins;

@Inject
private AppDefinitionHandler appDefinitionAddedHandler;
protected AppDefinitionHandler appDefinitionAddedHandler;

@Inject
private WorkspaceHandler workspaceHandler;
protected WorkspaceHandler workspaceHandler;

@Inject
private SessionHandler sessionHandler;
protected SessionHandler sessionHandler;

@Inject
private TheiaCloudOperatorArguments arguments;
protected TheiaCloudOperatorArguments arguments;

private final Map<String, AppDefinition> appDefinitionCache = new ConcurrentHashMap<>();
private final Map<String, Workspace> workspaceCache = new ConcurrentHashMap<>();
private final Map<String, Session> sessionCache = new ConcurrentHashMap<>();
private final Set<SpecWatch<?>> watches = new LinkedHashSet<>();
protected final Map<String, AppDefinition> appDefinitionCache = new ConcurrentHashMap<>();
protected final Map<String, Workspace> workspaceCache = new ConcurrentHashMap<>();
protected final Map<String, Session> sessionCache = new ConcurrentHashMap<>();
protected final Set<SpecWatch<?>> watches = new LinkedHashSet<>();

@Override
public void start() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

public abstract class TheiaCloudOperatorLauncher {

static final String COR_ID_INIT = "init";
protected static final String COR_ID_INIT = "init";

private static final Logger LOGGER = LogManager.getLogger(TheiaCloudOperatorLauncher.class);

Expand Down
Loading