Skip to content

Commit

Permalink
1.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
noear committed Feb 26, 2021
1 parent 4efb5be commit 0f5684b
Show file tree
Hide file tree
Showing 15 changed files with 53 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void start(SolonApp app) {

long time_start = System.currentTimeMillis();

PrintUtil.info("solon.Server:main: Sun.net.HttpServer(jdkhttp)");
PrintUtil.info("solon.server:main: Sun.net.HttpServer(jdkhttp)");

try {
_server = HttpServer.create(new InetSocketAddress(_port), 0);
Expand All @@ -51,8 +51,8 @@ public void start(SolonApp app) {

long time_end = System.currentTimeMillis();

PrintUtil.info("solon.Connector:main: jdkhttp: Started ServerConnector@{HTTP/1.1,[http/1.1]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.Server:main: jdkhttp: Started @" + (time_end - time_start) + "ms");
PrintUtil.info("solon.connector:main: jdkhttp: Started ServerConnector@{HTTP/1.1,[http/1.1]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.server:main: jdkhttp: Started @" + (time_end - time_start) + "ms");
} catch (Exception ex) {
ex.printStackTrace();
}
Expand All @@ -66,6 +66,6 @@ public void stop() throws Throwable {

_server.stop(0);
_server = null;
PrintUtil.info("solon.Server:main: jdkhttp: Has Stopped " + solon_boot_ver());
PrintUtil.info("solon.server:main: jdkhttp: Has Stopped " + solon_boot_ver());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,21 @@ private void start0(SolonApp app) {
}

long time_start = System.currentTimeMillis();
PrintUtil.info("solon.Server:main: Jetty 9.4(jetty)");
PrintUtil.info("solon.server:main: Jetty 9.4(jetty)");

_server.start(app);
app.signalAdd(new SignalSim(_name, _port, "http", SignalType.HTTP));

long time_end = System.currentTimeMillis();

String connectorInfo = "solon.Connector:main: jetty: Started ServerConnector@{HTTP/1.1,[http/1.1]";
String connectorInfo = "solon.connector:main: jetty: Started ServerConnector@{HTTP/1.1,[http/1.1]";
if (app.enableWebSocket()) {
System.out.println(connectorInfo + "[WebSocket]}{0.0.0.0:" + _port + "}");
} else {
System.out.println(connectorInfo + "}{0.0.0.0:" + _port + "}");
}

PrintUtil.info("solon.Server:main: jetty: Started @" + (time_end - time_start) + "ms");
PrintUtil.info("solon.server:main: jetty: Started @" + (time_end - time_start) + "ms");


app.before("**", new XFormContentFilter());
Expand All @@ -80,7 +80,7 @@ public void stop() throws Throwable {
_server.stop();
_server = null;

PrintUtil.info("solon.Server:main: jetty: Has Stopped " + solon_boot_ver());
PrintUtil.info("solon.server:main: jetty: Has Stopped " + solon_boot_ver());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private void start0(SolonApp app) {
MethodType.DELETE.name,
MethodType.PATCH.name);

PrintUtil.info("solon.Server:main: JlHttpServer 2.4(jlhttp)");
PrintUtil.info("solon.server:main: JlHttpServer 2.4(jlhttp)");

try {
_server.setPort(_port);
Expand All @@ -77,8 +77,8 @@ private void start0(SolonApp app) {

long time_end = System.currentTimeMillis();

PrintUtil.info("solon.Connector:main: jlhttp: Started ServerConnector@{HTTP/1.1,[http/1.1]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.Server:main: jlhttp: Started @" + (time_end - time_start) + "ms");
PrintUtil.info("solon.connector:main: jlhttp: Started ServerConnector@{HTTP/1.1,[http/1.1]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.server:main: jlhttp: Started @" + (time_end - time_start) + "ms");
} catch (Exception ex) {
ex.printStackTrace();
}
Expand All @@ -90,7 +90,7 @@ public void stop() throws Throwable {
_server.stop();
_server = null;

PrintUtil.info("solon.Server:main: jlhttp: Has Stopped " + solon_boot_ver());
PrintUtil.info("solon.server:main: jlhttp: Has Stopped " + solon_boot_ver());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private void start0(SolonApp app) {
long time_start = System.currentTimeMillis();

try {
PrintUtil.info("solon.Server:main: Reactornetty 0.9(reactor-netty)");
PrintUtil.info("solon.server:main: Reactornetty 0.9(reactor-netty)");

RnHttpHandler handler = new RnHttpHandler();

Expand All @@ -53,8 +53,8 @@ private void start0(SolonApp app) {

long time_end = System.currentTimeMillis();

PrintUtil.info("solon.Connector:main: reactor-netty: Started ServerConnector@{HTTP/1.1,[http/1.1]}{0.0.0.0:" + app.port() + "}");
PrintUtil.info("solon.Server:main: reactor-netty: Started @" + (time_end - time_start) + "ms");
PrintUtil.info("solon.connector:main: reactor-netty: Started ServerConnector@{HTTP/1.1,[http/1.1]}{0.0.0.0:" + app.port() + "}");
PrintUtil.info("solon.server:main: reactor-netty: Started @" + (time_end - time_start) + "ms");
} catch (Throwable ex) {
ex.printStackTrace();
}
Expand All @@ -66,7 +66,7 @@ public void stop() throws Throwable {
_server.dispose();
_server = null;

PrintUtil.info("solon.Server:main: reactor-netty: Has Stopped " + solon_boot_ver());
PrintUtil.info("solon.server:main: reactor-netty: Has Stopped " + solon_boot_ver());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void start(SolonApp app) {
SessionManager.register(new _SessionManagerImpl());
}

PrintUtil.info("solon.Server:main: SmartHttpServer 1.0.21(smarthttp)");
PrintUtil.info("solon.server:main: SmartHttpServer 1.0.21(smarthttp)");

try {

Expand All @@ -66,14 +66,14 @@ public void start(SolonApp app) {

long time_end = System.currentTimeMillis();

String connectorInfo = "solon.Connector:main: smarthttp: Started ServerConnector@{HTTP/1.1,[http/1.1]";
String connectorInfo = "solon.connector:main: smarthttp: Started ServerConnector@{HTTP/1.1,[http/1.1]";
if (app.enableWebSocket()) {
PrintUtil.info(connectorInfo + "[WebSocket]}{0.0.0.0:" + _port + "}");
} else {
PrintUtil.info(connectorInfo + "}{0.0.0.0:" + _port + "}");
}

PrintUtil.info("solon.Server:main: smarthttp: Started @" + (time_end - time_start) + "ms");
PrintUtil.info("solon.server:main: smarthttp: Started @" + (time_end - time_start) + "ms");
} catch (Exception ex) {
ex.printStackTrace();
}
Expand All @@ -85,7 +85,7 @@ public void stop() throws Throwable {
_server.shutdown();
_server = null;

PrintUtil.info("solon.Server:main: smarthttp: Has Stopped " + solon_boot_ver());
PrintUtil.info("solon.server:main: smarthttp: Has Stopped " + solon_boot_ver());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void start(SolonApp app) {

long time_start = System.currentTimeMillis();

PrintUtil.info("solon.Server:main: java.net.ServerSocket(jdksocket-socketd)");
PrintUtil.info("solon.server:main: java.net.ServerSocket(jdksocket-socketd)");

String _name = app.cfg().get("server.socket.name");
int _port = app.cfg().getInt("server.socket.port", 0);
Expand All @@ -44,8 +44,8 @@ public void start(SolonApp app) {

long time_end = System.currentTimeMillis();

PrintUtil.info("solon.Connector:main: jdksocket-socketd: Started ServerConnector@{[Socket]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.Server:main: jdksocket-socketd: Started @" + (time_end - time_start) + "ms");
PrintUtil.info("solon.connector:main: jdksocket-socketd: Started ServerConnector@{[Socket]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.server:main: jdksocket-socketd: Started @" + (time_end - time_start) + "ms");
} catch (Exception ex) {
ex.printStackTrace();
}
Expand All @@ -59,6 +59,6 @@ public void stop() throws Throwable {

_server.stop();
_server = null;
PrintUtil.info("solon.Server:main: jdksocket-socketd: Has Stopped " + solon_boot_ver());
PrintUtil.info("solon.server:main: jdksocket-socketd: Has Stopped " + solon_boot_ver());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void start(SolonApp app) {
private void start0(SolonApp app) {
long time_start = System.currentTimeMillis();

PrintUtil.info("solon.Server:main: java.net.ServerSocket(netty-socketd)");
PrintUtil.info("solon.server:main: java.net.ServerSocket(netty-socketd)");

String _name = app.cfg().get("server.socket.name");
int _port = app.cfg().getInt("server.socket.port", 0);
Expand All @@ -65,8 +65,8 @@ private void start0(SolonApp app) {

long time_end = System.currentTimeMillis();

PrintUtil.info("solon.Connector:main: netty-socketd: Started ServerConnector@{[Socket]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.Server:main: netty-socketd: Started @" + (time_end - time_start) + "ms");
PrintUtil.info("solon.connector:main: netty-socketd: Started ServerConnector@{[Socket]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.server:main: netty-socketd: Started @" + (time_end - time_start) + "ms");
} catch (Exception ex) {

bossGroup.shutdownGracefully();
Expand All @@ -86,6 +86,6 @@ public void stop() throws Throwable {
_server.channel().close();
_server = null;

PrintUtil.info("solon.Server:main: netty-socketd: Has Stopped " + solon_boot_ver());
PrintUtil.info("solon.server:main: netty-socketd: Has Stopped " + solon_boot_ver());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void start(SolonApp app) {

long time_start = System.currentTimeMillis();

PrintUtil.info("solon.Server:main: java.net.ServerSocket(rsocket-socketd)");
PrintUtil.info("solon.server:main: java.net.ServerSocket(rsocket-socketd)");

String _name = app.cfg().get("server.socket.name");
int _port = app.cfg().getInt("server.socket.port", 0);
Expand All @@ -44,8 +44,8 @@ public void start(SolonApp app) {

long time_end = System.currentTimeMillis();

PrintUtil.info("solon.Connector:main: rsocket-socketd: Started ServerConnector@{[Socket]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.Server:main: rsocket-socketd: Started @" + (time_end - time_start) + "ms");
PrintUtil.info("solon.connector:main: rsocket-socketd: Started ServerConnector@{[Socket]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.server:main: rsocket-socketd: Started @" + (time_end - time_start) + "ms");
}catch (Exception ex){
ex.printStackTrace();
}
Expand All @@ -59,6 +59,6 @@ public void stop() throws Throwable {

_server.stop();
_server = null;
PrintUtil.info("solon.Server:main: rsocket-socketd: Has Stopped " + solon_boot_ver());
PrintUtil.info("solon.server:main: rsocket-socketd: Has Stopped " + solon_boot_ver());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void start(SolonApp app) {

long time_start = System.currentTimeMillis();

PrintUtil.info("solon.Server:main: SmartSocket 1.5.4(smartsocket-socketd)");
PrintUtil.info("solon.server:main: SmartSocket 1.5.4(smartsocket-socketd)");


String _name = app.cfg().get("server.socket.name");
Expand All @@ -58,8 +58,8 @@ public void start(SolonApp app) {

long time_end = System.currentTimeMillis();

PrintUtil.info("solon.Connector:main: smartsocket-socketd: Started ServerConnector@{[Socket]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.Server:main: smartsocket-socketd: Started @" + (time_end - time_start) + "ms");
PrintUtil.info("solon.connector:main: smartsocket-socketd: Started ServerConnector@{[Socket]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.server:main: smartsocket-socketd: Started @" + (time_end - time_start) + "ms");
} catch (Exception ex) {
ex.printStackTrace();
}
Expand All @@ -71,7 +71,7 @@ public void stop() throws Throwable {
server.shutdown();
server = null;

PrintUtil.info("solon.Server:main: smartsocket-socketd: Has Stopped " + solon_boot_ver());
PrintUtil.info("solon.server:main: smartsocket-socketd: Has Stopped " + solon_boot_ver());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public WsServer(int port) {

@Override
public void onStart() {
PrintUtil.info("Solon.Server:Websocket onStart...");
PrintUtil.info("Solon.server:Websocket onStart...");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void start(SolonApp app) {
long time_start = System.currentTimeMillis();


PrintUtil.info("solon.Server:main: org.java_websocket 1.5.0(websocketd)");
PrintUtil.info("solon.server:main: org.java_websocket 1.5.0(websocketd)");

try {
_server = new WsServer(_port);
Expand All @@ -46,8 +46,8 @@ public void start(SolonApp app) {

long time_end = System.currentTimeMillis();

PrintUtil.info("solon.Connector:main: websocketd: Started ServerConnector@{HTTP/1.1,[WebSocket]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.Server:main: websocketd: Started @" + (time_end - time_start) + "ms");
PrintUtil.info("solon.connector:main: websocketd: Started ServerConnector@{HTTP/1.1,[WebSocket]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.server:main: websocketd: Started @" + (time_end - time_start) + "ms");
} catch (Exception ex) {
ex.printStackTrace();
}
Expand All @@ -59,7 +59,7 @@ public void stop() throws Throwable {
_server.stop();
_server = null;

PrintUtil.info("solon.Server:main: websocketd: Has Stopped " + solon_boot_ver());
PrintUtil.info("solon.server:main: websocketd: Has Stopped " + solon_boot_ver());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private void start0(SolonApp app) {
}

long time_start = System.currentTimeMillis();
PrintUtil.info("solon.Server:main: Undertow 2.1.09(undertow)");
PrintUtil.info("solon.server:main: Undertow 2.1.09(undertow)");

Class<?> jspClz = Utils.loadClass("io.undertow.jsp.JspServletBuilder");

Expand All @@ -57,7 +57,7 @@ private void start0(SolonApp app) {

long time_end = System.currentTimeMillis();

String connectorInfo = "solon.Connector:main: undertow: Started ServerConnector@{HTTP/1.1,[http/1.1]";
String connectorInfo = "solon.connector:main: undertow: Started ServerConnector@{HTTP/1.1,[http/1.1]";
if (app.enableWebSocket()) {
System.out.println(connectorInfo + "[WebSocket]}{0.0.0.0:" + _port + "}");
} else {
Expand All @@ -66,7 +66,7 @@ private void start0(SolonApp app) {

app.signalAdd(new SignalSim(_name, _port, "http", SignalType.HTTP));

PrintUtil.info("solon.Server:main: undertow: Started @" + (time_end - time_start) + "ms");
PrintUtil.info("solon.server:main: undertow: Started @" + (time_end - time_start) + "ms");
}

@Override
Expand All @@ -75,7 +75,7 @@ public void stop() throws Throwable {
_server.stop();
_server = null;

PrintUtil.info("solon.Server:main: undertow: Has Stopped " + solon_boot_ver());
PrintUtil.info("solon.server:main: undertow: Has Stopped " + solon_boot_ver());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public WsServer(int port) {

@Override
public void onStart() {
PrintUtil.info("Solon.Server:Websocket onStart...");
PrintUtil.info("solon.server:Websocket onStart...");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void start(SolonApp app) {
long time_start = System.currentTimeMillis();


PrintUtil.info("solon.Server:main: org.java_websocket 1.5.0(websocket)");
PrintUtil.info("solon.server:main: org.java_websocket 1.5.0(websocket)");

try {
_server = new WsServer(_port);
Expand All @@ -46,8 +46,8 @@ public void start(SolonApp app) {

long time_end = System.currentTimeMillis();

PrintUtil.info("solon.Connector:main: websocket: Started ServerConnector@{HTTP/1.1,[WebSocket]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.Server:main: websocket: Started @" + (time_end - time_start) + "ms");
PrintUtil.info("solon.connector:main: websocket: Started ServerConnector@{HTTP/1.1,[WebSocket]}{0.0.0.0:" + _port + "}");
PrintUtil.info("solon.server:main: websocket: Started @" + (time_end - time_start) + "ms");
} catch (Exception ex) {
ex.printStackTrace();
}
Expand All @@ -59,7 +59,7 @@ public void stop() throws Throwable {
_server.stop();
_server = null;

PrintUtil.info("solon.Server:main: websocket: Has Stopped " + solon_boot_ver());
PrintUtil.info("solon.server:main: websocket: Has Stopped " + solon_boot_ver());
}
}
}
Loading

0 comments on commit 0f5684b

Please sign in to comment.