第11章 DIP:依赖倒置原则DIP:依赖倒置原则:a.高层模块不应该依赖于低层模块。二者都应该依赖于抽象。b.抽象不应该依赖于细节。细节应该依赖于抽象。11.1 层次化 下图展示了一个简单的层次化方案: 高层的Policy层使用了低层的Mechanism层,而Mechanism层又使用了更细节.....
分类:
其他好文 时间:
2015-08-28 00:33:19
阅读次数:
191
JTAG was the traditional mechanism for debug connections for ARM7/9 parts, but with the Cortex-M family, ARM introduced the Serial Wire Debug (SWD) In...
分类:
其他好文 时间:
2015-08-27 14:59:44
阅读次数:
1530
用户端内核内存参数调整
/proc/sys/vm/ (需要根据内核版本调整)
交换相关
swap_token_timeout
Thisfile contains valid hold time of swap out protection token. The Linux VM hastoken based thrashing control mechanism and uses the...
分类:
系统相关 时间:
2015-08-25 21:42:34
阅读次数:
354
配置neutron-server编辑/etc/neutron/neutron.conf[DEFAULT]
router_distributed=True编辑/etc/neutron/plugins/ml2/ml2_conf.ini,添加l2population[ml2]
mechanism_drivers=openvswitch,l2population配置network节点配置L2,编辑/etc/neutron/plugins/ml2/ml2_conf.ini[ml2]
me..
分类:
其他好文 时间:
2015-08-25 16:58:02
阅读次数:
318
5.2 Leader election Raft uses a heartbeat mechanism to trigger leader election. When servers start up, they begin as followers. A?server remains in follower state as long as it receives valid?RPC...
分类:
编程语言 时间:
2015-08-06 17:09:35
阅读次数:
191
Watto, the owner of a spare parts store, has recently got an order for the mechanism that can process strings in a certain way. Initially the memory o...
分类:
其他好文 时间:
2015-08-05 20:12:26
阅读次数:
198
题目传送门 1 /* 2 hash+set:首先把各个字符串的哈希值保存在set容器里,然后对于查询的每一个字符串的每一位进行枚举 3 用set的find函数查找是否存在替换后的字符串,理解后并不难。另外,我想用64位的自然溢出wa了,不清楚 4 */ 5 /********...
分类:
其他好文 时间:
2015-08-05 17:53:01
阅读次数:
148
CXF的文件传输通过MTOM实现。MTOM(SOAP Message Transmission Optimization Mechanism)SOAP消息传输优化机制,可以在SOAP消息中发送二进制数据。MTOM允许将消息中包含的大型数据元素外部化,并将其作为无任何特殊编码的二进制数据随消息一起传送。相对于把二进制转为base64进行传输,MTOM具有更高的传输效率。...
分类:
Web程序 时间:
2015-07-31 10:38:56
阅读次数:
663
#修改/etc/neutron/plugin.ini文件(网络节点)
[ml2]
type_drivers=flat,vlan,vxlan,gre
tenant_network_types=flat
mechanism_drivers=openvswitch
[ml2_type_flat]
flat_networks=default
[ovs]
enable_tunneling=False
integration_bridge=br-int
bridge_mappings=default:..
分类:
其他好文 时间:
2015-07-28 06:48:46
阅读次数:
786