-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from JNU-econovation/log_process_interface
Log process interface
- Loading branch information
Showing
11 changed files
with
48 additions
and
22 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...ure/log-writer/src/main/java/com/whoz_in/log_writer/common/process/ContinuousProcess.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,11 @@ | ||
package com.whoz_in.log_writer.common.process; | ||
|
||
//실행 후 종료되지 않는 프로세스 | ||
//꾸준히 출력을 읽을 수 있어야 한다. | ||
public abstract class ContinuousProcess { | ||
|
||
//출력이 없을 땐 블로킹되면 안된다. | ||
public abstract String readLine(); | ||
public abstract boolean isAlive(); | ||
public abstract void terminate(); | ||
} |
12 changes: 12 additions & 0 deletions
12
...ture/log-writer/src/main/java/com/whoz_in/log_writer/common/process/TransientProcess.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,12 @@ | ||
package com.whoz_in.log_writer.common.process; | ||
|
||
import java.util.List; | ||
|
||
//실행 후 종료되어 모든 출력을 얻는 프로세스 | ||
//출력 스트림을 통한 프로세스와의 상호작용은 없다. | ||
public abstract class TransientProcess { | ||
|
||
//종료되었을 때 출력을 얻는다. | ||
//종료되지 않았다면 블로킹된다. | ||
public abstract List<String> results(); | ||
} |
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
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
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
3 changes: 1 addition & 2 deletions
3
...s/infrastructure/log-writer/src/main/java/com/whoz_in/log_writer/monitor/MonitorInfo.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,5 +1,4 @@ | ||
package com.whoz_in.log_writer.monitor; | ||
|
||
//TODO: interfaceName 제거 | ||
//Monitor 프로세스를 생성하고 처리하는 과정에서 필요한 정보를 담는다. | ||
public record MonitorInfo(String interfaceName, String command) {} | ||
public record MonitorInfo(String command) {} |
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