上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 25 下一页
摘要: 几种不同的实现方法: (一)单线程递归方式 package com.taobao.test; import java.io.File; public class TotalFileSizeSequential { public static String fileName = "C:\\Docume 阅读全文
posted @ 2019-10-29 18:26 SoyWang 阅读(1438) 评论(0) 推荐(0) 编辑
摘要: 说明:需要只获得第一级文件夹目录 上面代码可能会出现线程阻塞(客户端等待服务器应答信息),参考下面方式解决 使用ch.ethz.ssh2中sess.execCommand方法导致线程卡死的原因分析 技术标签: ssh2 sess.execCommand 线程卡死 背景 前几天有同事反馈,说生产上的定 阅读全文
posted @ 2019-10-24 16:06 SoyWang 阅读(4562) 评论(2) 推荐(1) 编辑
摘要: 一:前言 写这个程序主要是用来理解生产者消费者模型,以及通过这个Demo来理解Redis的单线程取原子任务是怎么实现的和巩固一下并发相关的知识;这个虽然是个Demo,但是只要稍加改下Appender部分也是可以用于项目中的,假设项目里确实不需要log4j/logback之类的日志组件的时候; 二:实 阅读全文
posted @ 2019-10-23 17:54 SoyWang 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 需要的jar包: 去maven仓库自己搜索com.jcraft下载jar包 上传: ftp方式: package com.sunsheen.jfids.studio.monitor.sender; import java.io.File; import java.io.FileInputStream 阅读全文
posted @ 2019-10-12 16:17 SoyWang 阅读(1272) 评论(0) 推荐(1) 编辑
摘要: 配置hadoop环境 配置flume环境 配置flume文件 D:\Soft\apache-flume-1.8.0-bin\conf 将 flume-conf.properties.template 重新命名为 hdfs.properties # 组装 agenta1.sources = s1a1. 阅读全文
posted @ 2019-10-12 09:41 SoyWang 阅读(1205) 评论(0) 推荐(0) 编辑
摘要: Kafka 入门 什么是 Kafka kafka最初是 LinkedIn 的一个内部基础设施系统。最初开发的起因是,LinkedIn虽然有了数据库和其他系统可以用来存储数据,但是缺乏一个可以帮助处理持续数据流的组件。所以在设计理念上,开发者不想只是开发一个能够存储数据的系统,如关系数据库、Nosql 阅读全文
posted @ 2019-10-11 22:27 SoyWang 阅读(638) 评论(0) 推荐(0) 编辑
摘要: System.out.println(System.getProperty("user.dir"));//当前工作空间 System.out.println(Platform.getInstanceLocation().getURL().getPath());//当前运行空间 阅读全文
posted @ 2019-10-11 14:58 SoyWang 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 1.Axis2方式 Axis是apache下一个开源的webservice开发组件,出现的算是比较早了,也比较成熟。这里主要介绍Axis+eclipse开发webservice,当然不用eclipse也可以开发和发布webservice,只是用eclipse会比较方便。 (1)下载eclipse的J 阅读全文
posted @ 2019-10-11 14:48 SoyWang 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: public class TestProperties { /** * * @Title: printAllProperty * @Description: 输出所有配置信息 * @param props * @return void * @throws */ private static void 阅读全文
posted @ 2019-10-11 14:44 SoyWang 阅读(722) 评论(0) 推荐(0) 编辑
摘要: String[] str1 = {"Hello","world","java"}; String[] str2 = {"Veriable","syntax","interator"}; int str1Length = str1.length; int str2length = str2.length; str1 = Arrays.copyOf(str1, str1Length+str2lengt 阅读全文
posted @ 2019-10-11 14:43 SoyWang 阅读(105) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 25 下一页