Talk about the priority of artemis message
order
This paper mainly studies the priority of artemis message
priority
activemq-artemis-2.11.0/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/CoreMessage.java
public class CoreMessage extends RefCountMessage implements ICoreMessage {
//......
protected byte priority;
public byte getPriority() {
...
Posted by mrinfin1ty on Wed, 29 Jan 2020 16:46:29 +0100
Using shell+crontab to clean up logs regularly
Background introduction
Scan the specified log directory every hour, empty the file directly after it exceeds 100M, and use it as a temporary means of operation and maintenance.
The source code is mainly composed of two functions:
reviewLogs() determines the log size and clears it;
getdir() determines whether it is a dire ...
Posted by Erestar on Tue, 28 Jan 2020 18:02:16 +0100
Talk about scheduled delivery time of artemis
order
This paper focuses on the scheduled delivery time of artemis
HDR_SCHEDULED_DELIVERY_TIME
activemq-artemis-2.11.0/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/CoreMessage.java
public class CoreMessage extends RefCountMessage implements ICoreMessage {
//......
@Override
public Long getScheduledD ...
Posted by uramagget on Tue, 28 Jan 2020 16:52:17 +0100
Talk about the push-pull mode of artemis message
order
This paper mainly studies the push-pull mode of artemis messages
Pull mode
receive
activemq-artemis-2.11.0/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessageConsumer.java
public final class ActiveMQMessageConsumer implements QueueReceiver, TopicSubscriber {
//......
@Override
public Message ...
Posted by raker7 on Fri, 24 Jan 2020 15:31:01 +0100
Talk about the ExpiryScanner of artemis
order
This paper mainly studies the ExpiryScanner of artemis
startExpiryScanner
activemq-artemis-2.11.0/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java
public class PostOfficeImpl implements PostOffice, NotificationListener, BindingsFactory {
//......
private ExpiryReaper expiryReaperRun ...
Posted by bynary on Wed, 22 Jan 2020 15:13:31 +0100
LINUX Install nexus Private Server and Use
Download and unzip the nexus package
#This download version 2.14.3-02 can be updated to 3.13.0-01
# wget "https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.14.3-02-bundle.tar.gz"
# tar xfvz nexus-2.14.3-02-bundle.tar.gz
Configuring nexus environment variables
# cd /etc
# vi profile
i Enter edit ...
Posted by bqheath on Mon, 20 Jan 2020 20:02:19 +0100
Using Kafka under Windows
1, Prepare ZooKeeper
Download the latest stable version from the official website: 3.5.6 . After downloading, extract it to the local location, find zoo_sample.cfg in the conf directory, rename it to zoo.cfg, and modify the data storage directory in it:
#dataDir=/tmp/zookeeper
dataDir=D:/hecg/apache-zookeeper-3.5.6-bin/data
Start with git com ...
Posted by daverules on Mon, 20 Jan 2020 18:22:24 +0100
Using common CSV of Apache to export CSV file
1. Introduction to CSV
The full name of CSV is: Comma Separated Values or character separated values. Its files store tabular data (numbers and text) in plain text. A CSV file consists of any number of records separated by a line break character. Each record consists of fields. The separators between fields are other characters or strings, the ...
Posted by PHPoracle on Mon, 20 Jan 2020 03:58:50 +0100
State & Fault Tolerance of Apache Flink Stream API (Chapter 4)
State & Fault Tolerance
Stateful function s and operators for flow processing can store the calculation state of each Event in the flow calculation process. State computation is the construction of precise operation will not or lack of plate. Flink needs to know the status of the computing node, so ...
Posted by iamtom on Sun, 19 Jan 2020 09:10:52 +0100
Front end cross domain problem solving process record I used
First of all, I'm lazy. I haven't recorded my work for a long time. I hope I don't forget my original intention.
Recently, I have such a demand. We are equipment software companies. Therefore, one of the functions is to modify the IP and port of our own management interface. After the modification, ...
Posted by aconite on Sun, 19 Jan 2020 05:00:43 +0100