mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fixed java doc error
This commit is contained in:
@@ -33,7 +33,7 @@ import com.alibaba.druid.support.logging.LogFactory;
|
||||
/**
|
||||
* 注意:避免直接调用Druid相关对象例如DruidDataSource等,相关调用要到DruidStatManagerFacade里用反射实现
|
||||
*
|
||||
* @author sandzhang<sandzhangtoo@gmail.com>
|
||||
* @author sandzhang[sandzhangtoo@gmail.com]
|
||||
*/
|
||||
public class StatViewServlet extends ResourceServlet {
|
||||
|
||||
|
||||
@@ -48,8 +48,8 @@ import java.util.Set;
|
||||
/**
|
||||
* 用于配置Web和Druid数据源之间的管理关联监控统计
|
||||
*
|
||||
* @author wenshao <szujobs@htomail.com>
|
||||
* @author Zhangming Qi <qizhanming@gmail.com>
|
||||
* @author wenshao [szujobs@htomail.com]
|
||||
* @author Zhangming Qi [qizhanming@gmail.com]
|
||||
*/
|
||||
public class WebStatFilter extends AbstractWebStatImpl implements Filter {
|
||||
|
||||
|
||||
@@ -18,89 +18,6 @@ package com.alibaba.druid.support.http.util;
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
/**
|
||||
* This class represents an IP address represented by an 32 bits integer value. Dotted-decimal notation divides the
|
||||
* 32-bit Internet address into four 8-bit (byte) fields and specifies the value of each field independently as a
|
||||
* decimal number with the fields separated by dots :<br/>
|
||||
* <br/>
|
||||
* <code>
|
||||
* 10010001 . 00001010 . 00100010 . 00000011<br/>
|
||||
* 145
|
||||
* 10 34
|
||||
* 3<br/>
|
||||
* <br/>
|
||||
*
|
||||
* -> 145.10.34.3<br/>
|
||||
* </code> <br/>
|
||||
* <br/>
|
||||
* IP address are classified into three classes :<br/>
|
||||
* <br/>
|
||||
* class A:<br/>
|
||||
* <br/>
|
||||
* <code>
|
||||
* bit# 0 1
|
||||
*
|
||||
* 7 8
|
||||
*
|
||||
* 31<br/>
|
||||
*
|
||||
* +--+-------------------+------------------------------+<br/>
|
||||
*
|
||||
* |0 |
|
||||
* |
|
||||
*
|
||||
*
|
||||
* |<br/>
|
||||
*
|
||||
* +--+-------------------+------------------------------+<br/>
|
||||
*
|
||||
* <-- network number --> <------- host number --------><br/>
|
||||
* </code> <br/>
|
||||
* <br/>
|
||||
* class B:<br/>
|
||||
* <br/>
|
||||
* <code>
|
||||
* bit# 0 2
|
||||
*
|
||||
* 15 16
|
||||
*
|
||||
* 31<br/>
|
||||
*
|
||||
* +--+-------------------------+------------------------+<br/>
|
||||
*
|
||||
* |10|
|
||||
* |
|
||||
*
|
||||
*
|
||||
* |<br/>
|
||||
*
|
||||
* +--+-------------------------+------------------------+<br/>
|
||||
*
|
||||
* <----- network number -----> <---- host number -----><br/>
|
||||
* </code> <br/>
|
||||
* <br/>
|
||||
* class C:<br/>
|
||||
* <br/>
|
||||
* <code>
|
||||
* bit# 0 3
|
||||
*
|
||||
*
|
||||
* 23 24
|
||||
*
|
||||
* 31<br/>
|
||||
*
|
||||
* +---+-----------------------------+-------------------+<br/>
|
||||
*
|
||||
* |110|
|
||||
*
|
||||
* |
|
||||
* |<br/>
|
||||
*
|
||||
* +---+-----------------------------+-------------------+<br/>
|
||||
*
|
||||
* <------- network number --------> <-- host number --><br/>
|
||||
* </code> <br/>
|
||||
* <br/>
|
||||
*
|
||||
* @author Marcel Dullaart
|
||||
* @version 1.0
|
||||
*/
|
||||
@@ -109,25 +26,10 @@ public class IPAddress implements Cloneable {
|
||||
/** IP address */
|
||||
protected int ipAddress = 0;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param ip String representation of the IP address. The format of the ip's string representation must follow the
|
||||
* decimal-dotted notation xxx.xxx.xxx.xxx.
|
||||
* @exception InvalidIPAddressException Throws this exception when the specified string doesn't represent a valid IP
|
||||
* address.
|
||||
*/
|
||||
public IPAddress(String ipAddressStr){
|
||||
ipAddress = parseIPAddress(ipAddressStr);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param ip Binary representation of the IP address.
|
||||
*/
|
||||
public IPAddress(int address){
|
||||
ipAddress = address;
|
||||
}
|
||||
|
||||
@@ -20,22 +20,8 @@ package com.alibaba.druid.support.http.util;
|
||||
* describing modern routing protocols often refer to the extended-network-prefix-length rather than the subnet mask.
|
||||
* The prefix length is equal to the number of contiguous one-bits in the traditional subnet mask. This means that
|
||||
* specifying the network address 130.5.5.25 with a subnet mask of 255.255.255.0 can also be expressed as 130.5.5.25/24.
|
||||
* The /<prefix-length> notation is more compact and easier to understand than writing out the mask in its traditional
|
||||
* dotted-decimal format.<br/>
|
||||
* <br/>
|
||||
* <code>
|
||||
* 130.5.5.25
|
||||
* <b>10</b>000010 . 00000101 . 00000101 . 00011001<br/>
|
||||
* 255.255.255.0
|
||||
* 11111111 . 11111111 . 11111111 . 00000000<br/>
|
||||
*
|
||||
* <--extended-network-prefix --><br/>
|
||||
* or<br/>
|
||||
* 130.5.5.25/24
|
||||
* <b>10</b>000010 . 00000101 . 00000101 . 00011001<br/>
|
||||
* </code> <br/>
|
||||
* This class supports both standards : the extended network prefix and the subnet mask.
|
||||
*
|
||||
* The prefix-length notation is more compact and easier to understand than writing out the mask in its traditional
|
||||
* dotted-decimal format.
|
||||
* @author Marcel Dullaart
|
||||
* @version 1.0
|
||||
* @see IPAddress
|
||||
@@ -51,15 +37,6 @@ public class IPRange {
|
||||
/** extended network prefix */
|
||||
private int extendedNetworkPrefix = 0;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param range String representation of the IP address. The two following formats are supported :<br/>
|
||||
* <li/>xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx <li/>xxx.xxx.xxx.xxx/xx <- extended network prefix
|
||||
* @exception IllegalArgumentException Throws this exception when the specified string doesn't represent a valid IP
|
||||
* address.
|
||||
*/
|
||||
public IPRange(String range){
|
||||
parseRange(range);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user