桥梁(Bridge)模式:桥梁模式是一个非常有用的模式,也是比较复杂的一个模式。熟悉这个模式对于理解面向对象的设计原则,包括"开-闭"原则(OCP)以及组合/聚合复用原则(CARP)都很有帮助。理解好这两个原则,有助于形成正确的设计思想和培养良好的设计风格 /* * 抽象化(Abstract...
分类:
其他好文 时间:
2014-06-18 15:47:29
阅读次数:
444
我们这一节主要来看Controller Controller有两种: Primary Controller: 真正控制vswitch的flow table,vswitch会保持和controller的连接,如果失败,取决于bridge的fail mode。一个vswitch可以连接多个Control...
分类:
其他好文 时间:
2014-06-18 14:31:58
阅读次数:
530
There are two places that SSL will need to be configured if SSL is to be used between the controller and the Open vSwtich. The instructions below assu...
分类:
其他好文 时间:
2014-06-15 21:59:43
阅读次数:
337
Open vSwitch with SSL and Mininet By default, Mininet uses the unencrypted port in Open vSwitch for OpenFlow. This makes total sense since the purpose...
分类:
Web程序 时间:
2014-06-15 21:39:36
阅读次数:
367
周末无事约了以前同事去听了开源中国源创会的活动,感觉不错。简单说一下。
docker最近真是很火,昨天才刚听完一个同事的分享,使用linux containers和aufs减少虚拟化的overhead,build ship and run,有好感。今天是七牛一哥们做的分享,docker适合做paas,vm适合做iaas,使用范围仍然不同,他们内部使用docker做云处理api调用。后面thoug...
分类:
其他好文 时间:
2014-06-15 15:36:35
阅读次数:
222
expected expression 一般为 标点符号引起的警告 () 或{}
//
使用 core foundation 框架,ARC环境下需要:(__bridge NSString*)
修饰或(__bridge id)修饰
NSString * s = (id) (__bridge
NSString*)kSecAttrAccount;
[wra...
分类:
其他好文 时间:
2014-06-14 10:47:30
阅读次数:
211
一、摘要 An Adapter object acts as a bridge between
anAdapterViewand the underlying data for that view. The Adapter provides access
to the data items. Th....
分类:
移动开发 时间:
2014-06-12 18:27:55
阅读次数:
503
6月10号docker 1.0稳定版本发布,找了台ubuntu的机器,装了下ubuntu
version:12.04docker
version:1.0.0装docker的步骤可以看官方文档:https://docs.docker.com/installation/ubuntulinux/装好之后,...
分类:
移动开发 时间:
2014-06-12 07:13:23
阅读次数:
293