Chapter 5. The ACE Service Configurator Framework
关于ACE的详细介绍,ACE是一种跨平台的网络编程框架
Ru-Brd
关于ACE的详细介绍,ACE是一种跨平台的网络编程框架
Service Configurator framework uses to
configure and control a service
implementation. Control operations
include initializing, suspending,
resuming, and terminating a service.
ACE_Service_Repository A central repository for all services
managed using the ACE Service
Configurator framework. It provides
methods for locating, reporting on, and
controlling all of an application's
configured services.
ACE_Service_Repository_Iterator A portable mechanism for iterating
through all the services in a repository.
ACE_Service_Config Provides an interpreter that parses and
executes scripts specifying which
services to (re)configure into an
application (e.g., by linking and
unlinking DLLs) and which services to
suspend and resume.
The most important relationships between the classes in the ACE Service
Configurator framework are shown in . These classes play the following roles in accordance with the Component Configurator pattern []:
Figure 5.1. The ACE Service Configurator Framework Classes
lConfiguration management layer classes perform application-independent strategies to install, initialize, control, and shut down service objects. The classes in the configuration management layer in the ACE
Service Configurator framework include ACE_Service_Config,
ACE_Service_Repository, and ACE_Service_Repository_Iterator. Application layer classes implement concrete services to perform an application's processing. In the ACE Service Configurator framework,
application layer classes are descendants of ACE_Service_Object, which
in turn inherits from ACE_Event_Handler (), thereby enabling
service objects to be linked and unlinked dynamically, and to participate in
the ACE Reactor framework. l
关于ACE的详细介绍,ACE是一种跨平台的网络编程框架
The ACE Service Configurator framework provides the following benefits:
lFlexibility. The framework allows developers to offer multiple services, and a choice of different implementations of services, that can be assembled at run time. The choices concerning which services to execute on which
network node(s) can be made (and changed) at any point, ranging from
application build time to the actual point when services start running.
Developers can also limit choices (e.g., by not offering dynamically linkable services) where desired.
Configurability. Developers can customize and configure application data for nearly any aspect of a service and for each deployment. Services can be developed to read traditional configuration data, such as port numbers,
network addresses, and file system locations. Moreover, services can allow
tuning and performance decisions to be deferred until the right information
is available to guide them. For example, depending on the run-time
platform's available multithreading facilities and available CPUs, it may be
either more or less efficient to run multiple services in separate threads or
separate processes. The ACE Service Configurator framework enables
applications to be configured by site-knowledgable administrators, or they
can select and tune these behaviors flexibly at run time, when there's
enough information to help match client demands with available system
processing resources.
Managability. All configuration information can be stored in a configuration script file, known as svc.conf. The framework uses these scripts to load
and configure services. An application's installation procedure can record
settings in an svc.conf file. Administrators can also edit and tune this
information as needed, without rebuilding the application itself. Applications can form their own configuration directives and pass them directly to the
ACE Service Configurator framework. The framework groups an application's services into one administrative unit and enables an application to report on its services and their states.
Consistency. The framework imposes a uniform interface for initializing, suspending, resuming, and terminating a service. This uniformity provides
consistency to framework users and allows services to be treated as building blocks that can be assembled flexibly to form complete applications.
Maintainability. The framework's decoupling of service implementation from configuration into networked applications allows service
implementations to evolve over time, independently of which networked
applications they're included in. Each service can be developed and tested
independently, which simplifies subsequent service composition and
increases reuse.
Enhanced dynamism and control. The framework enables a service to be reconfigured dynamically without modifying, recompiling, or statically relinking existing code. Each service can also be reconfigured without lllll
关于ACE的详细介绍,ACE是一种跨平台的网络编程框架
affecting other services or stopping and restarting the server process itself.
These reconfiguration capabilities are often required for high-availability
applications, such as mission-critical systems that perform online transaction processing or telecom call processing.
The remainder of this chapter motivates and describes the capabilities of each class in the ACE Service Configurator framework. We also illustrate how this framework can be used to enhance the extensibility of our networked logging server. If you aren't familiar with the Component Configurator pattern from
POSA2 we recommend that you read about it first before delving into the detailed examples in this chapter.
相关推荐:
- [高中教育]电子线路高频非线性部分2.1
- [高中教育]中班美术活动——我的小手
- [高中教育]常用三极管参数大全
- [高中教育]计算机常见故障及解决办法
- [高中教育]风机基础环水平度控制方法探讨
- [高中教育]机械安全工程(专升本)阶段性作业3
- [高中教育]2009年安徽省高考语文考试说明刍议
- [高中教育]unit5 let's eat公开课教案设
- [高中教育]计算机网络原理课后习题答案
- [高中教育]2016-2022年中国新能源市场研究与投资
- [高中教育]2015-2020年中国会议行业市场评估及投
- [高中教育]经销商大会峰会主持人串词开场白
- [高中教育]2014新版北师大数学三年级上册小熊购物
- [高中教育]七年级第一学期体育与健康全套教案
- [高中教育]第三章:国际金融市场
- [高中教育]六年级下册数学单元测试-2.比例 北师大
- [高中教育]2016年上海海事大学法学院624刑法之《
- [高中教育]中国碳化钙产业竞争现状及未来五年投资
- [高中教育]网络时代,我们怎么玩
- [高中教育]圆锥曲线——高中数学基础知识与典型例
- 高集医院世界艾滋病宣传日活动方案
- 苏教版六年级英语上册期末试卷含答案
- 全民枪战生化英雄模式幽灵怎么玩 生化
- 灿烂的宋元文化一导学案
- 第2章货币资金与应收款项
- 北师大版八年级下册数学第三章《分式》
- 浅析高分子材料成型加工技术
- 华南理工大学2013年度共青团先进集体及
- 教师资格科目二小学教案模板(共合集)
- 工程扩建可研报告
- 中华人民共和国海事局2014年度招录公务
- 提高农村小学生作文能力的教学尝试
- 徒手心肺复苏术操作步骤
- 毛概试题库7-15章
- 2014-2015学年度(上)初中班主任工作计
- 企业驾驶员安全生产责任书
- 第07章 不等式测试题-2016年高考文科数
- 医疗器械经营企业工作程序
- 考研英语必背36篇_彩版_精华
- 初中9月13-15假期作业 (1)




