b7fde2d2b97d56ffa1a5920ed27158dec9c950d2
Files Diff
- Added: 2
- Removed: 0
- Renamed: 0
- Modified: 10
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Replace Attribute | 1 | ||
| Replace Attribute private connNum : int from class com.mpush.client.gateway.connection.GatewayTCPConnectionFactory with public gateway_client_num : int from class com.mpush.tools.config.CC.mp.net | From | To | |
| Move Method | 1 | ||
| Move Method public getHostAndPort() : String from class com.mpush.netty.client.NettyTCPClient to private getHostAndPort(host String, port int) : String from class com.mpush.client.gateway.connection.GatewayTCPConnectionFactory | From | To | |
| Rename Variable | 1 | ||
| Rename Variable clients : List<GatewayClient> to connections : List<Connection> in method public getConnection(hostAndPort String) : Connection in class com.mpush.client.gateway.connection.GatewayTCPConnectionFactory | From | To | |
| Move Attribute | 1 | ||
| Move Attribute private connection : Connection from class com.mpush.client.gateway.handler.GatewayClientChannelHandler to public connection : Connection from class com.mpush.api.event.ConnectionConnectEvent | From | To | |
| Replace Variable With Attribute | 1 | ||
| Replace Variable With Attribute b : Bootstrap to bootstrap : Bootstrap in method private createClient(listener Listener, workerGroup EventLoopGroup, channelFactory ChannelFactory<? extends Channel>) : void in class com.mpush.netty.client.NettyTCPClient | From | To | |
| Rename Attribute | 1 | ||
| Rename Attribute gateway_work : int to gateway_server_work : int in class com.mpush.tools.config.CC.mp.thread.pool | From | To | |
| Change Variable Type | 2 | ||
| Change Variable Type clients : List<GatewayClient> to connections : List<Connection> in method public getConnection(hostAndPort String) : Connection in class com.mpush.client.gateway.connection.GatewayTCPConnectionFactory | From | To | |
| Change Variable Type clients : List<GatewayClient> to clients : List<Connection> in method private removeClient(node ZKServerNode) : void in class com.mpush.client.gateway.connection.GatewayTCPConnectionFactory | From | To | |
| Change Attribute Type | 1 | ||
| Change Attribute Type ip_client : Map<String,List<GatewayClient>> to ip_client : Map<String,List<Connection>> in class com.mpush.client.gateway.connection.GatewayTCPConnectionFactory | From | To |