Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Remove action execute method
Browse files Browse the repository at this point in the history
  • Loading branch information
vigyasharma committed Jul 25, 2020
1 parent 5d75f29 commit a0a3d3a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ public interface Action {
/** Time to wait since last recommendation, before suggesting this action again */
long coolOffPeriodInMillis();

/**
* Called when the action is invoked.
*
* <p>Specific implementation may include executing the action, or invoking downstream APIs
*/
void execute();

/** Returns a list of Elasticsearch nodes impacted by this action. */
List<NodeKey> impactedNodes();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,6 @@ public Map<NodeKey, ImpactVector> impact() {
return Collections.singletonMap(esNode, impactVector);
}

@Override
public void execute() {
// Making this a no-op for now
// TODO: Modify based on downstream agent API calls
assert true;
}

@Override
public String summary() {
if (!isActionable()) {
Expand Down

0 comments on commit a0a3d3a

Please sign in to comment.