资源简介
t-io是什么?和netty类似的通讯框架,比netty更易上手。使用t-io通讯框架实现多协议的分类处理,最后将解析后的消息送入activemq队列,方便后续分析、存库等操作。
代码片段和文件信息
/*
* Copyright 2007-present the original author or authors.
*
* Licensed under the Apache License Version 2.0 (the “License“);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.net.*;
import java.io.*;
import java.nio.channels.*;
import java.util.Properties;
public class MavenWrapperDownloader {
private static final String WRAPPER_VERSION = “0.5.6“;
/**
* Default URL to download the maven-wrapper.jar from if no ‘downloadUrl‘ is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL = “https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/“
+ WRAPPER_VERSION + “/maven-wrapper-“ + WRAPPER_VERSION + “.jar“;
/**
* Path to the maven-wrapper.properties file which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
“.mvn/wrapper/maven-wrapper.properties“;
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
“.mvn/wrapper/maven-wrapper.jar“;
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = “wrapperUrl“;
public static void main(String args[]) {
System.out.println(“- Downloader started“);
File baseDirectory = new File(args[0]);
System.out.println(“- Using base directory: “ + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if (mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL url);
} catch (IOException e) {
System.out.println(“- ERROR loading ‘“ + MAVEN_WRAPPER_PROPERTIES_PATH + “‘“);
} finally {
try {
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 364 2020-05-31 10:50 springboot-tio-activemq\.gitignore
文件 50710 2020-05-31 10:50 springboot-tio-activemq\.mvn\wrapper\maven-wrapper.jar
文件 220 2020-05-31 10:50 springboot-tio-activemq\.mvn\wrapper\maven-wrapper.properties
文件 5069 2020-05-31 10:50 springboot-tio-activemq\.mvn\wrapper\MavenWrapperDownloader.java
文件 10380 2020-05-31 10:50 springboot-tio-activemq\mvnw
文件 6790 2020-05-31 10:50 springboot-tio-activemq\mvnw.cmd
文件 3047 2020-05-31 10:50 springboot-tio-activemq\pom.xm
文件 1360 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\activemq\ActiveMQConfig.java
文件 865 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\activemq\ActiveMQListener.java
文件 2335 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\client\handler\JJTSTRespHandler.java
文件 2331 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\client\handler\YYTSRespHandler.java
文件 4013 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\client\ShowcaseClientAioHandler.java
文件 4061 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\client\ShowcaseClientAioListener.java
文件 4768 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\client\ShowcaseClientStarter.java
文件 3539 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\common\AbsCommonAioHandler.java
文件 1943 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\common\Const.java
文件 3026 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\common\intf\AbsCommonBsHandler.java
文件 2165 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\common\intf\AbsCommonBsHandlerIntf.java
文件 2479 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\common\SPPacket.java
文件 2121 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\common\Type.java
文件 417 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\DemoApplication.java
文件 2363 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\server\handler\HeartbeatReqHandler.java
文件 2956 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\server\handler\JJTSTReqHandler.java
文件 2820 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\server\handler\YYTSTReqHandler.java
文件 3939 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\server\SPServerAioHandler.java
文件 3785 2020-05-31 10:50 springboot-tio-activemq\src\main\java\com\example\demo\server\SPServerAioListener.java
文件 987 2020-05-31 10:50 springboot-tio-activemq\src\main\resources\application.yml
文件 438 2020-05-31 10:50 springboot-tio-activemq\src\main\resources\logback.properties
文件 4994 2020-05-31 10:50 springboot-tio-activemq\src\main\resources\logback.xm
文件 901 2020-05-31 10:50 springboot-tio-activemq\src\test\java\com\example\demo\MqTest.java
............此处省略25个文件信息
相关资源
- swift-iOS非越狱版微信自动抢红包微信
- SpringBoot使用JMS的小ActiveMQ实现
- activeMQ从入门到精通视频教程
- activemq 入门
- ActiveMQ中文文档.pdf
- qt activemq mqtt 动态库
- SpringBoot整合ActiveMQ(消息中间件)实
- MSMQ、RabbitMQ、ActiveMQ消息队列调试工具
- SpringBoot+ActiveMq+MQTT实现消息的发送和
- 消息中间件项目
- SpringActiveMQ
- activemqdubbolinuxredisshirosolr笔记整合,基
- swift-iOS原生Socket和CocoaAsyncSocket框架的
评论
共有 条评论