-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better error handling and management of daemon.
- Loading branch information
1 parent
d875c25
commit 230433a
Showing
4 changed files
with
105 additions
and
55 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
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
21 changes: 21 additions & 0 deletions
21
jgrab-runner/src/main/java/com/athaydes/jgrab/daemon/CodeRunRequest.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,21 @@ | ||
package com.athaydes.jgrab.daemon; | ||
|
||
import com.athaydes.jgrab.code.JavaCode; | ||
|
||
interface Request { | ||
|
||
} | ||
|
||
enum StatelessRequest implements Request { | ||
DO_NOTHING, DIE | ||
} | ||
|
||
final class CodeRunRequest implements Request { | ||
public final JavaCode code; | ||
public final String[] args; | ||
|
||
public CodeRunRequest( JavaCode code, String[] args ) { | ||
this.code = code; | ||
this.args = args; | ||
} | ||
} |
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