-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
178 changed files
with
6,619 additions
and
5,708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
...ot/src/main/java/de/codecentric/spring/boot/chaos/monkey/assaults/ChaosMonkeyAssault.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |
17 changes: 16 additions & 1 deletion
17
...a/de/codecentric/spring/boot/chaos/monkey/assaults/ChaosMonkeyLatencyAssaultExecutor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
18 changes: 17 additions & 1 deletion
18
...main/java/de/codecentric/spring/boot/chaos/monkey/assaults/ChaosMonkeyRequestAssault.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} |
17 changes: 16 additions & 1 deletion
17
...main/java/de/codecentric/spring/boot/chaos/monkey/assaults/ChaosMonkeyRuntimeAssault.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
Oops, something went wrong.