Project

General

Profile

機能 #208

ネームサービスに登録する名前のフォーマットに関する改良

Added by n-ando over 14 years ago. Updated almost 8 years ago.

Status:
終了
Priority:
通常
Assignee:
Target version:
-
Start date:
10/16/2008
Due date:
% Done:

100%

Estimated time:

Description

ネームサービスに登録する際の名前の指定子に、ベース名(implementaion_id)と番号も個別に指定できるようにする。
Manager::formatString 関数に以下の5行を追加。

else if (c == 'c')  str = prop["category"];
else if (c == 'i') str = prop["implementation_id"];
else if (c == 'N') {
+ size_t n =
prop["implementation_id"].size();
+ str = prop["instance_name"].substr(n);
}
else if (c == 'h') str += m_config["manager.os.hostname"];

rtc.conf内で
naming.formats: %h.host_cxt/%i-%N.rtc
とすると、
ManipulatorPA10-0
のような名前でネームサーバに登録される。

Associated revisions

Revision 2522 (diff)
Added by n-ando about 9 years ago

[compat,->RELENG_1_1] formatString() for component name format function now supports %i, %N (implementation id, instance #). refs #208

Revision 2522 (diff)
Added by n-ando about 9 years ago

[compat,->RELENG_1_1] formatString() for component name format function now supports %i, %N (implementation id, instance #). refs #208

History

#1 Updated by n-ando about 9 years ago

  • Target version set to RELEASE_1_1_1

#2 Updated by n-ando about 9 years ago

  • Status changed from 新規 to 終了
  • % Done changed from 0 to 100

r2522にて修正。

#3 Updated by n-ando almost 8 years ago

  • Target version deleted (RELEASE_1_1_1)

Also available in: Atom PDF