-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9146b6c
commit ef8ffdd
Showing
11 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
shared/src/main/java/com/workup/shared/commands/controller/AddCommandRequest.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.workup.shared.commands.controller; | ||
|
||
/** Adds a new command to the commands maps. */ | ||
public class AddCommandRequest { | ||
// TODO: Add fields | ||
} |
6 changes: 6 additions & 0 deletions
6
shared/src/main/java/com/workup/shared/commands/controller/ContinueRequest.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.workup.shared.commands.controller; | ||
|
||
/** Makes a service start accepting requests and acquire resources again. */ | ||
public class ContinueRequest { | ||
// No fields are required? | ||
} |
6 changes: 6 additions & 0 deletions
6
shared/src/main/java/com/workup/shared/commands/controller/DeleteCommandRequest.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.workup.shared.commands.controller; | ||
|
||
/** Deletes a command from the commands map. */ | ||
public class DeleteCommandRequest { | ||
// TODO: Add fields | ||
} |
6 changes: 6 additions & 0 deletions
6
shared/src/main/java/com/workup/shared/commands/controller/FreezeRequest.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.workup.shared.commands.controller; | ||
|
||
/** Makes a service stop accepting requests and release resources. */ | ||
public class FreezeRequest { | ||
// No fields are required? | ||
} |
14 changes: 14 additions & 0 deletions
14
...ed/src/main/java/com/workup/shared/commands/controller/SetErrorReportingLevelRequest.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.workup.shared.commands.controller; | ||
|
||
import com.workup.shared.enums.ErrorLevel; | ||
import lombok.Getter; | ||
import lombok.experimental.SuperBuilder; | ||
import lombok.extern.jackson.Jacksonized; | ||
|
||
/** Set the severity level of an error to be reported. */ | ||
@Getter | ||
@SuperBuilder(setterPrefix = "with") | ||
@Jacksonized | ||
public class SetErrorReportingLevelRequest { | ||
ErrorLevel errorLevel; | ||
} |
13 changes: 13 additions & 0 deletions
13
shared/src/main/java/com/workup/shared/commands/controller/SetMaxDBConnectionsRequest.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.workup.shared.commands.controller; | ||
|
||
import lombok.Getter; | ||
import lombok.experimental.SuperBuilder; | ||
import lombok.extern.jackson.Jacksonized; | ||
|
||
/** Sets the number of DB connections in the pool of a service. */ | ||
@Getter | ||
@SuperBuilder(setterPrefix = "with") | ||
@Jacksonized | ||
public class SetMaxDBConnectionsRequest { | ||
int maxDBConnections; | ||
} |
13 changes: 13 additions & 0 deletions
13
shared/src/main/java/com/workup/shared/commands/controller/SetMaxThreadsRequest.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.workup.shared.commands.controller; | ||
|
||
import lombok.Getter; | ||
import lombok.experimental.SuperBuilder; | ||
import lombok.extern.jackson.Jacksonized; | ||
|
||
/** Set the maximum number of threads that a service can use. */ | ||
@Getter | ||
@SuperBuilder(setterPrefix = "with") | ||
@Jacksonized | ||
public class SetMaxThreadsRequest { | ||
int maxThreads; | ||
} |
14 changes: 14 additions & 0 deletions
14
shared/src/main/java/com/workup/shared/commands/controller/SetMessageQueueRequest.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.workup.shared.commands.controller; | ||
|
||
import com.workup.shared.enums.ServiceQueueNames; | ||
import lombok.Getter; | ||
import lombok.experimental.SuperBuilder; | ||
import lombok.extern.jackson.Jacksonized; | ||
|
||
/** Sets the name of the message queue the service is listening to. */ | ||
@Getter | ||
@SuperBuilder(setterPrefix = "with") | ||
@Jacksonized | ||
public class SetMessageQueueRequest { | ||
ServiceQueueNames messageQueue; | ||
} |
6 changes: 6 additions & 0 deletions
6
shared/src/main/java/com/workup/shared/commands/controller/UpdateClassRequest.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.workup.shared.commands.controller; | ||
|
||
/** Updates a single class in the system. Not sure how, when, or why this would be used. */ | ||
public class UpdateClassRequest { | ||
// TODO: Implement this class | ||
} |
6 changes: 6 additions & 0 deletions
6
shared/src/main/java/com/workup/shared/commands/controller/UpdateCommandRequest.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.workup.shared.commands.controller; | ||
|
||
/** Updates the logic of a certain command. */ | ||
public class UpdateCommandRequest { | ||
// TODO: Implement this class | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.workup.shared.enums; | ||
|
||
public enum ErrorLevel { | ||
INFO, | ||
WARNING, | ||
ERROR, | ||
FATAL | ||
} |