Instructions for the use of commons.lang3
ArchUtils (System Information Tool Class for Java Running Environment)
getArch(); // Get 32 bit, 64 bit, unknown computer processor architecture
getType(); // Returns processor types x86, ia64, ppc, unknown
is32Bit(); // Check if the processor is 32 bits
is64Bit(); // / Check whether the process ...
Posted by kennethl on Mon, 23 Sep 2019 07:19:45 +0200
Preliminary Study on Agent Transport Mechanism in OSSIM Sensor
In OSSIM sensor, the conversion of communication protocol and data format between OSSIM proxy and OSSIM server is realized through GET framework. Let's take a brief look at the ossim-agent script:#!/usr/bin/python -OOtimport syssys.path.append('/usr/share/ossim-agent/')sys.path.append('/usr/local/share/ossim-agent/')from ossim_agent.Agent impo ...
Posted by kriss37 on Thu, 19 Sep 2019 06:16:31 +0200
kafka installation and start-up
Kafka's background knowledge has been talked about a lot, let's start to practice now, assuming you don't have Kafka and Zoo Keeper environments.
Step 1: Download the code
Download version 1.1.0 and unzip it.
> tar -xzf kafka_2.12-2.3.0.tgz
> cd kafka_2.12-2.3.0
Step 2: Start the service
Running kafka requir ...
Posted by Osiris Beato on Wed, 18 Sep 2019 05:49:10 +0200
Spring Cloud Learning Notes: Hystrix Fault Tolerance Mechanism
brief introduction
In the micro-service architecture, the dependencies between micro-services are complex, and some services will inevitably fail, resulting in the thread blockage of remote scheduling for service invokers. In high load scenarios, cascade failures may occur if no processing is done, leading to resource exhaustion of service call ...
Posted by beachcomber on Tue, 17 Sep 2019 12:58:42 +0200
Kafka Producer Source Code Analysis
Common terms of Kafka
Broker: Kafka's server is an instance of Kafka. The Kafka cluster consists of one or more Brokers, which are responsible for receiving and processing client requests.
Topic: Topic, a logical container for messages in Kafka. Each message published to Kafka has a corresponding logical container, which is often used to differ ...
Posted by packland on Sun, 15 Sep 2019 15:52:30 +0200
Java background development Tomcat adds https to support small program development process
The original article: > Java background development Tomcat adds https to support applet development process "> blog. ouyangsihai. cn >> Java background development Tomcat adds https to support applet development process)
1 To app ...
Posted by capitala on Sat, 14 Sep 2019 12:36:25 +0200
Android uses its own encapsulated Http, Thread, Handler for asynchronous tasks
Original Link: https://my.oschina.net/zipu888/blog/549739
The directory structure is as follows:
Encapsulation of the Http protocol:
There are two main domains using the HTTP ...
Posted by trystan on Sat, 14 Sep 2019 07:28:00 +0200
apache-commons commons-pool2 integrates commons-net custom FTPClient object pool
Introduction to commons-net package
commons-net is Apache commons tool kit for network. It implements some common network tools, such as smtp, pop3, telnet, ftp, udp and so on. This paper mainly uses its FTP tool.
Problems with FTP Tools
When using the ftp tool provided by commons-net, it is found that the complete connection and login process ...
Posted by slionheart on Fri, 13 Sep 2019 11:12:23 +0200
MapReduce custom k, partition, and counter
1. Introduction Case - WordCount
Requirement: Statistically output the total number of occurrences of each word in a given set of text files
1. Data format preparation
Create a new file
cd /export/servers
vim wordcount.txt
Put the following ...
Posted by Varma69 on Wed, 11 Sep 2019 13:34:17 +0200
Simple spring cloud application building
I. Sprcloud Microsoft Service Architecture
2. Building Sprcloud application step by step
service client
Service: Application that provides services. Port is 808x
Client: The application port for invoking the service is 809x
The whole program uses the client end to call the server end program according to the user id to return user informatio ...
Posted by nightdesigns on Wed, 11 Sep 2019 12:54:50 +0200