docker builds ELK, logstash reads data from kafka
Set up ELK to do log analysis for recording. Installation of kafka and docker is not explained here.
First, build elastic search
docker run -d elasticsearch
es has an official image, so there is no other requirement, so you can run an elastic search container, but I specify the port mapping and configuration file and data file volume, so ...
Posted by pliant on Tue, 21 May 2019 23:09:47 +0200
App Network Framework Warfare III: Download Progress and Breakpoint Resume
App Network Request Actual Warfare III: Download Progress and Breakpoint Renewal
Boss, salvage.
Original formula, no illustration diao
Needs analysis and problem solving steps
It appears that the rxjava and retrofit combination cannot return synchronously as follows:
Response<BaseResponse<ResEntity1.DataBean& ...
Posted by clartsonly on Sun, 19 May 2019 20:20:20 +0200
Android Design Patterns - Builder Patterns (Builder Patterns)
Summary
Separating the construction of a complex object from its representation enables the same construction process to create different representations.
Raise a chestnut.
Here's an example of a pet hospital recording pet dog information
//Wang Wang's Information Class
public class Dog{
private int identifier;//numb ...
Posted by Dark-Hawk on Sun, 19 May 2019 13:02:52 +0200
Encapsulation of OkHttp (parameters are all submitted using Json)
OkHttp believes it's not unfamiliar. Android is a useful framework for web requests. GitHub has more than 2 weeks of Start s on it and Square is one of Jake Wharton's masterpieces (Jake Wharton left Square to join Google), where he worships God for three seconds...
I encapsulated OkHttp twice as needed for the project because, ...
Posted by KyleVA on Sat, 18 May 2019 09:54:33 +0200
Android Design Patterns - Responsibility Chain Patterns
Preface
Android Design Patterns series articles, welcome attention, ongoing updates:
1. definition
A request is passed along a "chain" until a handler on the "chain" processes it.
2. introduction
Responsibility chain model belongs to behavioral model.
In multiple objects, each object holds a reference to the next ob ...
Posted by lathifmca on Sat, 18 May 2019 04:17:41 +0200
App Network Request Actual Warfare III: Download Files and Breakpoint Renewals
App Network Request Actual Warfare III: Download Files and Breakpoint Renewals
Melon skin is online, hey hey.Want to fight back, there is no!
Boss, salvage.
Or the original formula, no pictures diao
This article records how download functions are integrated into a network framework.
Solving Steps
1. Big aspect to un ...
Posted by dancer on Tue, 14 May 2019 21:57:16 +0200
OKHttp3 Part Source Reading
When we want to integrate OKHttp3 into our project, we need to use the OkHttpClient.Builder() method to create an instance of OkHttpClient, which contains the following attributes:
final Dispatcher dispatcher;
final Proxy proxy;
final List<Protocol> protocols;
final List<ConnectionSpec> connectionSpecs;
fin ...
Posted by sribala on Sat, 11 May 2019 00:48:53 +0200
Seconds Understanding File Download Implementation of Retrofit2 Zone Progress Bar
Copyright Statement) Notes for non-commercial purposes are free to be reproduced
Blog address: https://blog.csdn.net/ShuSheng0007/article/details/82428733
From: shusheng007
Summary
Achieving results
Implementation Method
Specific implementation
Step 1: Introduce the Retrofit class library
Step 2: Define the ser ...
Posted by ali_mac1 on Thu, 09 May 2019 08:09:09 +0200
Source code analysis of android okhttp
okhttp, a powerful development contribution of Square, is now the mainstream Android network framework.
Now let's look at this framework and explore its source code.
compile 'com.squareup.okhttp3:okhttp:3.8.0'
The version we analyzed was 3.8.0.
public class OkHttpClient implements Cloneable, Call.Factory, WebSocket.Factory ...
Posted by Evoke on Mon, 06 May 2019 06:15:03 +0200