QA Official

Android Gradle Tips 4.1 Write Your Own Custom Task

https://qaofficial.com/post/2019/05/17/71968-android-gradle-tips-4.1-write-your-own-custom-task.html 2019-05-17
4.1编写您自己的自定义任务 问题 你想用你自己的任务来定制Gradle构建过程。 解 将任务元素添加到Gradle构建文件。使用Android插件

ElasticSearch+Canal to Set up Search System (in Process)

https://qaofficial.com/post/2019/05/17/72036-elasticsearch-canal-to-set-up-search-system-in-process.html 2019-05-17
1. Canal Installation 1.Canal Download Address: https://github.com/alibaba/canal/releases 2. Zookeeper Cluster Installation is mainly zoo.cfg to modify the following configuration, from sample assignment to modify the configuration;As well as the creation of data,dataLog directory;Create a myid file under the data folder and specify the id value of server 1 or 2, etc. dataDir=/home/centos/es/zookeeper-3.4.11_1/data dataLogDir=/home/centos/es/zookeeper-3.4.11_1/dataLog clientPort=2181 server.1=10.144.130.183:2888:3888 server.2=10.144.130.183:2889:3889 server.3=10.144.130.185:2890:3890 #server.A=B:C:D 其中A是一个数字,代表这

Gradle Learning (1)

https://qaofficial.com/post/2019/05/17/72014-gradle-learning-1.html 2019-05-17
"Android Qunying Biography" reading notes Related Websites AndroidStudio Google Docs Gradle User Manual official website 1. Common Commands 1. task View task under Project gradle task View the specific function of each task and the calling relationship between each task gradle task --all 2. assemble task assemblytask is used to combine all the output of the project. it contains two Task: assembleDebug and assembleRelease.By executing the Gradle assemble instruction, gradle

Gradle Rapid Construction (1) Advanced Construction Configuration of AS Project

https://qaofficial.com/post/2019/05/17/72013-gradle-rapid-construction-1-advanced-construction-configuration-of-as-project.html 2019-05-17
When building Android Studio projects with Gradle, there will be a basic configuration by default. On this basis, we will aggregate variables together, which is both clear and concise. 1. Configure the source code compilation path AS we all know, AS will have a default source code compilation path. For example, java's reference to the. so library is under main/jniLibs. Modify its reference address as follows: Configure Resource Directory Learn

MaxWell Installation Deployment

https://qaofficial.com/post/2019/05/17/72022-maxwell-installation-deployment.html 2019-05-17
Before we begin, we still need to look at Maxwell's official website to have a simple understanding of Maxwell. Maxwell parses binlog through canal and sends it to Apache Kafka. Then we process the binlog log through our own business logic and it is OK.When I used it before, the company wanted to synchronize the data of the business library to the HBase in real time, and then realized some real-time query services.

Otto Source Code Analysis

https://qaofficial.com/post/2019/05/17/72018-otto-source-code-analysis.html 2019-05-17
constructor 使用Otto通常是通过一个Provider提供一个Bus单例。 首先我们来分析一下Bus的构造函数,Bus类的构造函数最终都会调用Bus(T

android Building Tools: Ant and Gradle

https://qaofficial.com/post/2019/05/17/71998-android-building-tools-ant-and-gradle.html 2019-05-17
Currently, the JVM ecosystem is dominated by three building tools:Apache Ant with IvyMavenGradel Ant with IvyAnt is the first "modern" building tool, and in many ways it is somewhat like Make.Released in 2000, it became the most popular building tool for Java projects in a short time.Its learning curve is very slow, so it can be started without any special preparation.It is based on idea of Procedural programming.After the initial version, it gradually has the function of supporting plug-ins.

canal Cluster Deployment and java Access

https://qaofficial.com/post/2019/05/17/72061-canal-cluster-deployment-and-java-access.html 2019-05-17
Canal application The document is generally divided into 5 parts 1. Application scenario; 2. How to deploy the environment; 3. How to use the application end; 4. Treading pit; 5. Stability and real-time performance;  application scenario: canal's principle is to listen to binlog; disguised as a slave of rds;So canal can be used in: 1. Data synchronization, such as data synchronization between/offline databases; 2. Data consumption, for example: search increment should be made according to the changes of the concerned database tables;

canal Dry Goods (I): Writing Client Programs

https://qaofficial.com/post/2019/05/17/72029-canal-dry-goods-i-writing-client-programs.html 2019-05-17
canal needs to write its own client program to push the data synchronized from the database.The following describes how to write the canal client program. Start canal Server First Reference: canal Beginner-Level (III): canal Installation Build maven <dependency> <groupId>com.alibaba.otter</groupId> <artifactId>canal.client</artifactId> <version>1.0.12</version> </dependency> sample code import java.net.InetSocketAddress; import java.util.List; import com.alibaba.otter.canal.client.CanalConnectors; import com.alibaba.otter.canal.client.CanalConnector; import com.alibaba.otter.canal.common.utils.AddressUtils; import com.alibaba.otter.canal.protocol.Message; import com.alibaba.otter.canal.protocol.CanalEntry.Column; import com.alibaba.otter.canal.protocol.CanalEntry.Entry; import com.alibaba.otter.canal.protocol.CanalEntry.EntryType; import com.alibaba.otter.canal.protocol.CanalEntry.EventType; import com.alibaba.otter.canal.protocol.CanalEntry.RowChange; import com.alibaba.otter.canal.protocol.CanalEntry.RowData; public class

canal Installation and Use

https://qaofficial.com/post/2019/05/17/72041-canal-installation-and-use.html 2019-05-17
canal Installation and Use Canal Introduction Name: canal Translation: Watercourses/Pipelines/Ditches language: pure java development Positioning: Based on database incremental log analysis, incremental data subscription & consumption is provided. Currently mysql is mainly supported keywords: MySQL binlogparser/real-time/queue & topic working principle:   principle is relatively simple: 1.canal simulates mysql slave's interaction protocol, disguises itself as mysql slave, and sends dump protocol to mysql master 2.mysql master receives dump request and starts pushing binary log to slave (i.