Skip to content

Commit

Permalink
🐳 21.23
Browse files Browse the repository at this point in the history
  • Loading branch information
iohao committed Jan 8, 2025
1 parent 47b1546 commit 405ae48
Show file tree
Hide file tree
Showing 29 changed files with 51 additions and 51 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ ioGame 是轻量级的网络编程框架,**不依赖任何第三方**中间件
<dependency>
<groupId>com.iohao.game</groupId>
<artifactId>run-one-netty</artifactId>
<version>21.22</version>
<version>21.23</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion common/common-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public final class IoGameVersion {
public static final String VERSION;

static {
String internalVersion = "<version>21.22</version>";
String internalVersion = "<version>21.23</version>";

VERSION = internalVersion
.replace("<version>", "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private void scanClass(final List<Class<?>> actionList
private static void extracted() {
if (!Objects.equals(IoGameBanner.flag21, "ioGame21")) {
byte[] bytes = new byte[]{105, 111, 71, 97, 109, 101, 72, 111, 109, 101, 32, 104, 116, 116, 112, 58, 47, 47, 103, 97, 109, 101, 46, 105, 111, 104, 97, 111, 46, 99, 111, 109, 10, 103, 105, 116, 104, 117, 98, 32, 32, 32, 32, 32, 104, 116, 116, 112, 115, 58, 47, 47, 103, 105, 116, 104, 117, 98, 46, 99, 111, 109, 47, 105, 111, 104, 97, 111, 47, 105, 111, 71, 97, 109, 101, 10};
IoGameBanner.println(new String(bytes, StandardCharsets.UTF_8));
IoGameBanner.printlnMsg(new String(bytes, StandardCharsets.UTF_8));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private static void extractedRunners(BarSkeleton barSkeleton) {
IoGameBanner.println(Ansi.ansi().render(title));

var printActionKitClose = Bundle.getMessage(MessageKey.printActionKitPrintClose);
IoGameBanner.println(printActionKitClose + " BarSkeletonBuilder.setting.printRunners");
IoGameBanner.printlnMsg(printActionKitClose + " BarSkeletonBuilder.setting.printRunners");

for (String name : nameList) {
String info = String.format("@|BLUE %s |@", name);
Expand All @@ -100,7 +100,7 @@ void printInout(List<ActionMethodInOut> inOuts) {
printTitle(businessFrameworkPlugin);

var printActionKitClose = Bundle.getMessage(MessageKey.printActionKitPrintClose);
IoGameBanner.println(printActionKitClose + " BarSkeletonBuilder.setting.printInout");
IoGameBanner.printlnMsg(printActionKitClose + " BarSkeletonBuilder.setting.printInout");

for (ActionMethodInOut inOut : inOuts) {
String info = String.format("@|BLUE %s |@", inOut.getClass());
Expand All @@ -118,15 +118,15 @@ void printHandler(List<Handler> handlers) {
var businessFramework = Bundle.getMessage(MessageKey.businessFramework);

printTitle(businessFramework);
IoGameBanner.println(IoGameVersion.VERSION);
IoGameBanner.printlnMsg(IoGameVersion.VERSION);

String colorStr = "@|BLACK BLACK|@ @|RED RED|@ @|GREEN GREEN|@ @|YELLOW YELLOW|@ @|BLUE BLUE|@ @|MAGENTA MAGENTA|@ @|CYAN CYAN|@ @|WHITE WHITE|@ @|DEFAULT DEFAULT|@";
IoGameBanner.println(Ansi.ansi().render(colorStr));

printTitle("Handler");

var printActionKitClose = Bundle.getMessage(MessageKey.printActionKitPrintClose);
IoGameBanner.println(printActionKitClose + " BarSkeletonBuilder.setting.printHandler");
IoGameBanner.printlnMsg(printActionKitClose + " BarSkeletonBuilder.setting.printHandler");

for (Handler handler : handlers) {
String info = String.format("@|BLUE %s |@", handler.getClass());
Expand All @@ -138,10 +138,10 @@ void printActionCommand(ActionCommand[][] behaviors, boolean shortName) {
printTitle("action");

var printActionKitClose = Bundle.getMessage(MessageKey.printActionKitPrintClose);
IoGameBanner.println(printActionKitClose + " BarSkeletonBuilder.setting.printAction");
IoGameBanner.printlnMsg(printActionKitClose + " BarSkeletonBuilder.setting.printAction");

var printActionKitPrintFull = Bundle.getMessage(MessageKey.printActionKitPrintFull);
IoGameBanner.println(printActionKitPrintFull + " BarSkeletonBuilder.setting.printActionShort");
IoGameBanner.printlnMsg(printActionKitPrintFull + " BarSkeletonBuilder.setting.printActionShort");

String cmdName = Bundle.getMessage(MessageKey.cmdName);

Expand Down Expand Up @@ -226,7 +226,7 @@ void printDataCodec() {
printTitle(printActionKitDataCodec);

var printActionKitClose = Bundle.getMessage(MessageKey.printActionKitPrintClose);
IoGameBanner.println(printActionKitClose + " BarSkeletonBuilder.setting.printDataCodec");
IoGameBanner.printlnMsg(printActionKitClose + " BarSkeletonBuilder.setting.printDataCodec");

DataCodec dataCodec = DataCodecKit.dataCodec;
String info = String.format("@|BLUE %s - %s |@", dataCodec.codecName(), dataCodec.getClass().getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public final class DebugInOut implements ActionMethodInOut {
@Setter
BiConsumer<String, FlowContext> printConsumer = (message, flowContext) -> {
// 打印 message
IoGameBanner.println(message);
IoGameBanner.printlnMsg(message);
};

public DebugInOut() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,19 @@ public static void printLine() {
out.println();
}

public static void print(String message) {
public static void printMessage(String message) {
out.print(message);
}

public static void print(Object message) {
public static void printMessage(Object message) {
out.print(message);
}

public static void println(Object message) {
out.println(message);
}

public static void println(String message) {
public static void printlnMsg(String message) {
out.println(message);
}

Expand All @@ -131,7 +131,7 @@ private void renderBanner1() {
if (Objects.nonNull(IoGameBanner.me().countDownLatch)) {
boolean r = IoGameBanner.me().countDownLatch.await(5, TimeUnit.SECONDS);
if (!r) {
IoGameBanner.println("countDownLatch await is false");
IoGameBanner.printlnMsg("countDownLatch await is false");
}
}
} catch (InterruptedException e) {
Expand Down Expand Up @@ -200,21 +200,21 @@ private void extractedBreakingNews() {
System.out.printf("| News | %s%n", news);
}

IoGameBanner.println("+----------+--------------------------------------------------------------------------------------");
IoGameBanner.printlnMsg("+----------+--------------------------------------------------------------------------------------");
}

private void extractedAdv() {
String s = BreakingNewsKit.randomAdv().toString();
String builder = "| adv | %s%n";
System.out.printf(builder, s);
IoGameBanner.println("+----------+--------------------------------------------------------------------------------------");
IoGameBanner.printlnMsg("+----------+--------------------------------------------------------------------------------------");
}

private void extractedIoGameJavadocApi() {
String s = BreakingNewsKit.randomMainNews().toString();
String builder = "| | %s%n";
System.out.printf(builder, s);
IoGameBanner.println("+----------+--------------------------------------------------------------------------------------");
IoGameBanner.printlnMsg("+----------+--------------------------------------------------------------------------------------");
}

private void extractedErrorCount() {
Expand All @@ -224,7 +224,7 @@ private void extractedErrorCount() {

String builder = "| Error | error count : %s%n";
System.out.printf(builder, errorCount.get());
IoGameBanner.println("+----------+--------------------------------------------------------------------------------------");
IoGameBanner.printlnMsg("+----------+--------------------------------------------------------------------------------------");
}

private void extractedPrint(ToyTable table) {
Expand All @@ -237,7 +237,7 @@ private void extractedPrint(ToyTable table) {
String anyBanner = anyFunction.apply(banner);

IoGameBanner.printLine();
IoGameBanner.println(anyBanner);
IoGameBanner.printlnMsg(anyBanner);
table.render();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ public void test() {
inOutList.add(new B_ActionMethodInOut());
inOutList.add(new C_ActionMethodInOut());

IoGameBanner.println("------ 测试多个 inout ------");
IoGameBanner.printlnMsg("------ 测试多个 inout ------");
extracted(InOutManager.ofAbcAbc(), "Ain Bin Cin Aout Bout Cout", inOutList);
extracted(InOutManager.ofPipeline(), "Ain Bin Cin Cout Bout Aout", inOutList);

// 测试单个 inout
IoGameBanner.println("------ 测试 1 个 inout ------");
IoGameBanner.printlnMsg("------ 测试 1 个 inout ------");
extracted(InOutManager.ofAbcAbc(), "Ain Aout", List.of(new A_ActionMethodInOut()));
extracted(InOutManager.ofPipeline(), "Ain Aout", List.of(new A_ActionMethodInOut()));

// 测试 0 个 inout
IoGameBanner.println("------ 测试 0 个 inout ------");
IoGameBanner.printlnMsg("------ 测试 0 个 inout ------");
extracted(InOutManager.ofAbcAbc(), "", Collections.emptyList());
extracted(InOutManager.ofPipeline(), "", Collections.emptyList());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private static void extracted() {
System.out.println(Locale.getDefault().toString());

String value = Bundle.getMessage(MessageKey.printActionKitPrintClose);
IoGameBanner.println(value + " BarSkeletonBuilder.setting.printRunners");
IoGameBanner.printlnMsg(value + " BarSkeletonBuilder.setting.printRunners");
Assert.assertNotNull(value);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void test() {
log.info("hello ioGame {}", "miss");
String title = "!~ @|CYAN ======================== action ========================= |@ ~!";
// AnsiConsole.systemInstall();
IoGameBanner.println("Hello World");
IoGameBanner.printlnMsg("Hello World");

IoGameBanner.println(Ansi.ansi().eraseScreen().render(title));

Expand Down
2 changes: 1 addition & 1 deletion common/common-kit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion common/common-micro-kit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion common/common-validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion external/external-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion external/external-netty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net-bolt/bolt-broker-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion net-bolt/bolt-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion net-bolt/bolt-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,6 @@ private void extracted(StackTraceElement traceElement) {

String format = "className:%s - methodName:%s - line:%d";
String msg = String.format(format, className, methodName, line);
IoGameBanner.println(msg);
IoGameBanner.printlnMsg(msg);
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.22</version>
<version>21.23</version>
<name>ioGame</name>
<description>
生产资料公有制。
Expand Down
2 changes: 1 addition & 1 deletion run-one/run-one-netty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion widget/generate-code/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion widget/light-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ void request(String inputName) {
}

public void help() {
IoGameBanner.println("---------- cmd help ----------");
inputCommandMap.forEach((s, inputCommand) -> IoGameBanner.println(inputCommand.toString()));
IoGameBanner.println("------------------------------");
IoGameBanner.printlnMsg("---------- cmd help ----------");
inputCommandMap.forEach((s, inputCommand) -> IoGameBanner.printlnMsg(inputCommand.toString()));
IoGameBanner.printlnMsg("------------------------------");
}

public void listenHelp() {
IoGameBanner.println("---------- 广播监听 help ----------");
IoGameBanner.printlnMsg("---------- 广播监听 help ----------");
clientUserChannel.getListenMap().values().forEach(IoGameBanner::println);
IoGameBanner.println("------------------------------");
IoGameBanner.printlnMsg("------------------------------");
}

public void start() {
Expand All @@ -156,7 +156,7 @@ private void extracted() {

while (!input.equalsIgnoreCase("q")) {

IoGameBanner.println("提示:[命令执行 : cmd-subCmd] [退出 : q] [帮助 : help]");
IoGameBanner.printlnMsg("提示:[命令执行 : cmd-subCmd] [退出 : q] [帮助 : help]");

try {
input = ScannerKit.nextLine();
Expand Down Expand Up @@ -188,7 +188,7 @@ private void extracted() {
}

if (Objects.equals(input, "q")) {
IoGameBanner.println("88,老哥!顺便帮忙关注一下组织 https://github.com/game-town");
IoGameBanner.printlnMsg("88,老哥!顺便帮忙关注一下组织 https://github.com/game-town");
System.exit(-1);
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion widget/light-domain-event/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion widget/light-game-room/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion widget/light-jprotobuf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.22</version>
<version>21.23</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Loading

0 comments on commit 405ae48

Please sign in to comment.