Nginx smooth upgrade source code analysis, nginx source code
1. Smooth upgrade steps
1. Rename the original sbin/nginx file and put the new nginx file under the sbin/directory.
# Mv./sbin/nginx./sbin/nginx. old
# Cp ~ /Nginx./sbin/
2. Send the USR2 signal to the running nginx to start the new nginx. At this time, both the old and new nginx will receive the reques
AsyncTask source code analysis, asynctask source codeFor the usage of AsyncTask, see the previous blog "AsyncTask resumable upload". This article only parses the source code of AsyncTask. AsyncTask.exe cute method:
1 public final AsyncTaskThe executeOnexecute method is called directly in the execute method. AsyncTask.exe cuteOnexecute method:
1 public fi
DBUtils source code analysis, dbutils source code
In fact, in this article, I only analyzed the operation process of dbutis query.
As for why the class should be designed in this way, the design patterns and other advanced knowledge points should be discussed in the next section.
First, let's take a look at how the simplest DBUtils works.There is a table in the d
Liferay Code Analysis and extension--User Service
Reprint please retain the author information:
Author: 88250
blog:http:/blog.csdn.net/dl88250
MSN Gmail qq:dl88250@gmail.com
Directory
Summary 1
Environment 1
Import Project 1
User Service Analysis 3
User Service Extension 3
Problem Description 4
Solution Analysis 4
So
1. Overview
The following describes how NodeManager starts and registers various services.
Mainly involved Java files
Package org. apache. hadoop. yarn. server. nodemanager under hadoop-yarn-server-nodemanager
NodeManager. java
2. Code Analysis
NodeManager in NodeManager. java: When Hadoop is started, the main function in NodeManager is called.
1). main Function
Output Information to log, create a N
JQuery. Data source code and jquery source code analysis
JQuery. data is the data cache system of jQuery. It is mainly used to add data for common objects or DOM elements.1. Internal Storage Principle
This principle is very simple. The data originally to be added to the DOM element is now centrally stored in the cache set. They are linked by a number key starti
I. What is static code analysis? Static code Analysis ( static analysis ) is a necessary development test behavior that scans code patterns and structures and analyzes logical relationships to find potential defect codes and ultim
Intermediary mode analysis, structure diagram and basic code, mediation structure diagram codeZookeeper
Definition: a mediation object is used to encapsulate a series of object interactions. The intermediary makes the objects do not need to be explicitly referenced to each other, so that the coupling is loose and the interaction between them can be changed independently.Applicability: The intermediary mode
ListView source code analysis, listview source code
1. UML diagram
Scrollview is drawn separately to show that the ViewGroup does not have a built-in recycle mechanism. If Scrollview displays a large number of views, You need to manually process them.
2. division of labor in the inheritance system
(1) AdapterView
An AdapterView is a view whose children aredetermined by an {@ link Adapter }.
A. Abstract fu
Label:
Recently Learning MyBatis official documents, see the "Project Document" section has a lot of content has not seen, make a note, understand.
PMD Scans the Java source code to look for potential problems such as:
Possible bugs, such as an empty Try/catch/finally/switch declaration
Dead code, no local variables, parameters and private methods used
Non-standard
Source code analysis 4-send a message and source code
Reprinted please indicate the source:Http://blog.csdn.net/mxway/article/details/44569831 This article is based on the source code v2.06Fliggy is a software that works on a LAN. It supports message sending and file transmission between different devices in the LAN (
Some advanced applications of Javascript drag-and-drop-by-line code analysis make it easy for you to drag the code line by line.
Let's take a look at the problems that may occur when there is something around the drag? There won't be any problems in the advanced browser. Let's test it under IE7 and the problem will come out.
We can clearly see that all texts hav
Recently busy studying Glusterfs, was going to write a few blog weekend, but due to debug some of the new features of Glusterfs used a whole day, and a day to accompany the wife of adults to go shopping! This evening after browsing the microblogging discovery time has come to blog one, this blog content is mainly in the previous period of time to study the Thrift code generator of the source of detailed analysis
Custom sharing php code analysis and custom php code
I made a custom sharing between the previous sections and accumulated some experience to share with you.
Step 1 and Step 2The developer documentation is very detailed. Start with step 3.
Step 3Parameters except appId are dynamic. Here, the php language is used to generate parameters on the backend. The
Code First Entity Framework 6 passive to active explicit it loading mode practical analysis (with source Code), entityloading
There are three ways to use Entity Framework to load correlated entities:
1. lazy Loading );
2. Greedy loading (eager loading );
3. explicit loading ).
EF uses lazy Loading by default ). Everything is automatically handled by EF.
This meth
ArrayList construction method source code analysis, arraylist construction source code
First, let's take a look at the construction method without parameters:
private static final Object[] DEFAULTCAPACITY_EMPTY_ELEMENTDATA = {}; transient Object[] elementData; public ArrayList() { this.elementData = DEFAULTCAPACITY_EMPTY_ELEMENTDATA; }
If the capacit
String source code analysis, string source code
The String class maintains a char [] type value to store strings. The source code is relatively simpler.1. Immutable
The immutability of String is mainly reflected in three aspects:
The String class is defined as the final type and cannot be inherited.
Value [] In Stri
InnoDB source code analysis-transaction log (2), innodb source code
Original article, reproduced please indicate the original link: http://www.cnblogs.com/wingsless/p/5708992.html
Yesterday I wrote some basic points about the transaction log (http://www.cnblogs.com/wingsless/p/5705314.html), today combined with my recent learning results continue to summarize the
MVC source code analysis, mvc source code
In the previous article, we saw the execution sequence of the Action/Result filter:
OnActionExecuting-> Action-> OnActionExecuted-> OnResultExecuting-> View-> OnResultExecuted
Here are a few examples.
I. Demo
The previous Code may not be easy to understand. first, I can registe
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.