jmeter testing java code

Sometimes you always have to write code. You have to be able to write code. If you don't look down on java requests, you need to write code. First, implement a class,     package com.company.jemeters; public class Hello { public int sum(int a,int b) { return a+b; } } To implement an addition, let's write the test class Yo ...

Posted on Wed, 01 Apr 2020 11:16:13 -0700 by rahnel

Android remove underline from autoLink

Many times, we use the autoLink property of TextView in our development, which can easily identify the URL, phone, email and so on in a text. But usually, the link recognized by the system automatically has an underline, so how to remove this underline? First, we need to know where the underline comes from. Open the parent cla ...

Posted on Tue, 31 Mar 2020 12:46:16 -0700 by blear

Prevent storage XSS attacks

XSS attack is a cross site script attack, which is divided into storage type and reflection type. The storage XSS attack is to store the attack script to the database, so that all visitors will be attacked. The attack script will generally send the user's cookie to the attacker, and then the attacker forges the user's login. The reflective XSS ...

Posted on Tue, 31 Mar 2020 06:20:06 -0700 by flash-genie

IDEA, SparkSql read data in HIve

The traditional hive computing engine is MapReduce. After Spark 1.3, SparkSql was officially released, and it is basically compatible with apache hive. Based on the powerful computing power of Spark, the data processing speed of using Spark to process hive is far faster than that of traditional hive.Using SparkSql in idea to read the data in H ...

Posted on Mon, 30 Mar 2020 14:23:09 -0700 by bl00dshooter

Talk about skywalking's remote client manager

order This paper focuses on skywalking's remote client manager RemoteClientManager skywalking-6.6.0/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/remote/client/RemoteClientManager.java public class RemoteClientManager implements Service { private static final Logger logger = LoggerFactory.getLogger(RemoteClient ...

Posted on Mon, 30 Mar 2020 11:54:32 -0700 by bothwell

Implementation, cluster submission and operation of wordcount in mapReduce

This example implements the statistics of the number of words in all files in a directory in hdfs. Three java classes are used: WordcountMapper is responsible for the reputation mapTask WordcountReducer is responsible for the reputation ReduceTask WordcountDriver is responsible for submitting tasks to yarn.   Related code Mapper packag ...

Posted on Sun, 29 Mar 2020 09:02:12 -0700 by tech603

God, how many holes have I stepped on in a simple unified log format

In recent days, we have received a requirement that the configuration file of log4j should be packaged into a jar file. At the same time, the jar relies on skywalking related packages. On a large level, in order to unify the log output format of the whole company, it is convenient to access skywalking and elk. How do I think about it The globa ...

Posted on Sun, 29 Mar 2020 01:54:24 -0700 by Amy1980

Dubbo Source Analysis - Dubbo SPI gets extended interface instances through getExtension

Beginning Four previous articles have analyzed several uses of Dubbo SPI and how it can be used in Dubbo. Use of Dubbo SPI (1) - Extension point automatic packaging Usage of Dubbo SPI (2) - Extension point adaptive Dubbo SPI usage method (3) - automatic assembly of extension points Dubbo Source Code Analysis - Application of Dubbo SPI in Proto ...

Posted on Sat, 28 Mar 2020 09:31:38 -0700 by rem

Talk about skywalking's storage Zipkin plugin

order This paper focuses on the storage Zipkin plugin of skywalking ZipkinStorageModuleElasticsearchProvider skywalking-6.6.0/oap-server/server-storage-plugin/storage-zipkin-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/zipkin/elasticsearch/ZipkinStorageModuleElasticsearchProvider.java public class ZipkinStorageModuleElas ...

Posted on Fri, 27 Mar 2020 08:08:36 -0700 by brokenme

8. Chapter 8 of spring cloud, upgrade, service registration and discovery Eureka, Zookeeper and Consule

Chapter 7 of spring cloud, upgrade, service registration and discovery Eureka, Zookeeper and Consule 1, Basic concepts 1. Service governance In the traditional remote RPC remote call framework, it is very complex to manage the dependency between each service and service. So we need to use service governance to manage services and services ...

Posted on Fri, 27 Mar 2020 07:01:01 -0700 by threaders