- 授权协议: Apache
- 开发语言:
- 操作系统: 跨平台
- 软件首页: https://github.com/apache/celix
- 软件文档: https://github.com/apache/celix/blob/master/documents/getting_started/readme.md
软件介绍
Apache Celix 是一个使用 C 和 C++ 实现的 OSGi 规范的项目。提供了使用组件和面向服务编程来开发模块化应用的框架。
一个 C 版本的激活器示例:
//${WS}/myproject/bundles/hello_world/private/src/hello_world_activator.c
#include <stdlib.h>
#include <stdio.h>
#include "dm_activator.h"
struct userData {
char * word;
};
celix_status_t dm_create(bundle_context_pt context, void **out) {
celix_status_t status = CELIX_SUCCESS;
struct userData* result = calloc(1, sizeof(*result));
if (result != NULL) {
result->word = "C World";
*out = result;
} else {
status = CELIX_START_ERROR;
}
return status;
}
celix_status_t dm_init(void* userData, bundle_context_pt context, dm_dependency_manager_pt manager) {
struct userData* data = (struct userData *) userData;
printf("Hello %s\n", data->word);
return CELIX_SUCCESS;
}
celix_status_t dm_destroy(void* userData, bundle_context_pt context, dm_dependency_manager_pt manager) {
free(userData);
return CELIX_SUCCESS;
}
Web容量规划的艺术
阿尔斯帕瓦 / 叶飞、罗江华 / 机械工业出版社 / 2010-1 / 29.00元
《Web容量规划的艺术》由John Allspaw(F订ickr的工程运营经理)撰写,结合了他个人在F1ickr成长过程中的许多经历和很多其他产业中同行的洞察力。在衡量增长、预测趋势、成本效益等方面,他们的经验都会给你一些可靠并有效的指导。 网站的成功是以使用和增长来衡量的,而且网站类公司的成败(生死)是依赖于他们是否有能力来衡量决定他们的基础结构,从而适应不断增长的需求。作者通过自身实践给......一起来看看 《Web容量规划的艺术》 这本书的介绍吧!
