为了使用简单,需要先写一个单件类,头文件的代码如下:其中静态方法Instance保证IconHelper的实例全局唯一(注意构造函数已经私有化了)#ifndefICONHELPER_H#defineICONHELPER_H#include#include#include#include#includ...
分类:
其他好文 时间:
2014-06-28 16:48:08
阅读次数:
242
#include "stdafx.h"#include using namespace std;class Singleton{private: static Singleton *m_instance; Singleton() { cout << "Singleto...
分类:
编程语言 时间:
2014-06-26 00:06:29
阅读次数:
245
单例模式是设计模式中最简单的形式之一。这一模式的目的是使得类的一个对象成为系统中的唯一实例。单例代码如下: private static JobManager _instance; private static Object padlock = new Object(); public stat.....
分类:
其他好文 时间:
2014-06-24 12:39:57
阅读次数:
181
今天在进行代码检查的时候出现下面的异常:1 type parameters of T cannot be determined; no unique maximal instance exists for type variable T with upper bounds int,java.lang...
分类:
编程语言 时间:
2014-06-23 08:05:13
阅读次数:
381
今天是2014-06-18,在复制数据的时候出现如下错误:
RMAN-05537: DUPLICATE without TARGET connection when auxiliary instance is started with spfile cannot use SPFILE clause
操作过程如下:
[oracle@dg1 dbs]$ rman target sys/root@...
分类:
其他好文 时间:
2014-06-22 19:13:14
阅读次数:
306
PMON: Process Monitor 用自动注册动态监听,处理异常进程。
SMON: System Monitor 用于instance recovery。
LCKn:仅使用于RAC数据库,用于instance之间的封锁。
RECO:用于分布式数据库的恢复,全称是Distributed Database Recovery。
CKPT: Check Point 由ORACLE的FAST...
分类:
数据库 时间:
2014-06-22 12:22:00
阅读次数:
232
web工程目录结构
pom/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.a...
分类:
编程语言 时间:
2014-06-22 08:53:25
阅读次数:
187
One of the most important use-case in any cloud is provisioning a VM . In this article we shall do a walk through about an instance(VM) being provisio...
分类:
其他好文 时间:
2014-06-21 16:59:43
阅读次数:
376
Instance|Public:获取公共的的实例属性(非静态的) Instance|NonPublic:获取非公共的的实例属性(非静态的)。(private/protect/internal) Static|Public:获取公共的静态属性 Static|NonPublic:获取非公共的静态属性。(...
分类:
其他好文 时间:
2014-06-21 09:10:31
阅读次数:
259