Skip to content

Commit

Permalink
Codestyle + License Header (#312)
Browse files Browse the repository at this point in the history
* update code style to use eclipse formatter

* format all files

* set up license template

* apply license to all files

* format after rebase

* fix ci

* add comment to push.yml
  • Loading branch information
F43nd1r authored May 6, 2022
1 parent 9a8cc88 commit 0d617f8
Show file tree
Hide file tree
Showing 178 changed files with 6,619 additions and 5,708 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # need git history for spotless license header
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
/*
* Copyright 2018 the original author or authors.
* Copyright 2018-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package de.codecentric.spring.boot.chaos.monkey.assaults;

/**
* A way to interfere with the application. Implementations will be either {@link
* ChaosMonkeyRuntimeAssault} or {@link ChaosMonkeyRequestAssault}, depending if the interference is
* on the request or runtime level.
* A way to interfere with the application. Implementations will be either
* {@link ChaosMonkeyRuntimeAssault} or {@link ChaosMonkeyRequestAssault},
* depending if the interference is on the request or runtime level.
*
* <p>Implementing this interface directly is discouraged, and will generally be treated as a
* Request-level assault
* <p>
* Implementing this interface directly is discouraged, and will generally be
* treated as a Request-level assault
*
* @author Thorsten Deelmann
*/
public interface ChaosMonkeyAssault {

boolean isActive();
boolean isActive();

void attack();
void attack();
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
/*
* Copyright 2018-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.codecentric.spring.boot.chaos.monkey.assaults;

public interface ChaosMonkeyLatencyAssaultExecutor {

void execute(long duration);
void execute(long duration);
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2018-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.codecentric.spring.boot.chaos.monkey.assaults;

public interface ChaosMonkeyRequestAssault extends ChaosMonkeyAssault {}
public interface ChaosMonkeyRequestAssault extends ChaosMonkeyAssault {
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
/*
* Copyright 2018-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.codecentric.spring.boot.chaos.monkey.assaults;

import de.codecentric.spring.boot.chaos.monkey.configuration.AssaultProperties;

public interface ChaosMonkeyRuntimeAssault extends ChaosMonkeyAssault {
String getCronExpression(AssaultProperties assaultProperties);
String getCronExpression(AssaultProperties assaultProperties);
}
Loading

0 comments on commit 0d617f8

Please sign in to comment.