Skip to content

Commit

Permalink
Rename AbstractTheiaCloudOperator to BasicTheiaCloudOperator
Browse files Browse the repository at this point in the history
Also remove the abstract so it can directly be used.
Use it directly in the DefaultTheiaCloudOperatorModule.
Remove the DefaultTheiaCloudOperator as it is no longer needed.
Extract LeaderElection in separate method for easier customization.
Also make the other methods in the leader election protected.
  • Loading branch information
sgraband committed Jul 16, 2024
1 parent 5f1c797 commit 820b426
Show file tree
Hide file tree
Showing 5 changed files with 330 additions and 345 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
********************************************************************************/
package org.eclipse.theia.cloud.defaultoperator;

import org.eclipse.theia.cloud.operator.BasicTheiaCloudOperator;
import org.eclipse.theia.cloud.operator.TheiaCloudOperator;
import org.eclipse.theia.cloud.operator.TheiaCloudOperatorArguments;
import org.eclipse.theia.cloud.operator.di.AbstractTheiaCloudOperatorModule;
Expand All @@ -28,7 +29,7 @@ public DefaultTheiaCloudOperatorModule(TheiaCloudOperatorArguments arguments) {

@Override
protected Class<? extends TheiaCloudOperator> bindTheiaCloudOperator() {
return DefaultTheiaCloudOperator.class;
return BasicTheiaCloudOperator.class;
}

}

This file was deleted.

Loading

0 comments on commit 820b426

Please sign in to comment.