ceilometer openstack project create --domain default --description "Service Project" service yum -y install redis libvirt epel-release yum -y install ...
分类:
其他好文 时间:
2020-06-22 12:52:24
阅读次数:
81
kubernetes operator安装,如果不会安装可以查看我前面的博客。 前提:创建企业微信,创建应用 然后配置altermanager.yaml global: resolve_timeout: 5m receivers: - name: wechat wechat_configs: - a ...
分类:
微信 时间:
2020-06-21 23:16:41
阅读次数:
175
插入或更新节点 根据(n - 1) & hash计算得到插入的数组下标i,然后进行判断 table[i]==null 那么说明当前数组下标下,没有hash冲突的元素,直接新建节点添加。 table[i].hash == hash &&(table[i]== key || (key != null & ...
分类:
其他好文 时间:
2020-06-21 15:33:26
阅读次数:
57
名称: 原型模式(prototype) 问题: Specify the kind of objects to create using a prototypical instance, and create new objects by copying this prototype. 解决方案: 1 ...
分类:
其他好文 时间:
2020-06-21 13:42:56
阅读次数:
56
JDK动态代理实现原理 动态代理机制 通过实现 InvocationHandler 接口创建自己的调用处理器 通过为 Proxy 类指定 ClassLoader 对象和一组 interface 来创建动态代理类 通过反射机制获得动态代理类的构造函数,其唯一参数类型是调用处理器接口类型 通过构造函数创 ...
分类:
编程语言 时间:
2020-06-21 11:45:06
阅读次数:
62
一、面向对象三大特征 """面向对象三大特征""""""封装(隐藏),继承,多态封装:隐藏对象的属性和实现的细节,只对外提供必要的方法继承:继承可以让子类具有父类的特性,提高了代码的重用性,代码复用的重要手段多态:是指同一个方法调用由于对象不同产生的不同行为 二、继承 如下例子: class Per ...
分类:
编程语言 时间:
2020-06-20 19:01:18
阅读次数:
62
OpenStack Queens版本的 All-in-one 部署过程
分类:
其他好文 时间:
2020-06-20 10:56:23
阅读次数:
57
在java中有很多方法可以取到系统时间,记一下最简单的那种 //使用Calendar 获取当前日期和时间 Calendar calendar = Calendar.getInstance(); // get current instance of the calendar //转换格式 使用form ...
分类:
编程语言 时间:
2020-06-19 23:25:39
阅读次数:
98
1)导入依赖 mybatis-spring mybatis的Spring兼容包,帮助Spring整合MyBatis <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> <version ...
分类:
编程语言 时间:
2020-06-19 21:20:45
阅读次数:
70
对于私有属性常常会添加set以及get方法,此时可以使用Python内置的@property装饰器,将set以及get方法简化为如同属性一样调用 示例: 普通情况: class book: _score = 0 def __init__(self): self._score = 100 def ge ...
分类:
编程语言 时间:
2020-06-19 16:30:50
阅读次数:
74