Jini Service F Service A Service B Jini
Jiniの提供するサービス Service F Service A Service B Jini連合体 (フェデレーション) Service C Service E Service D Service X
RMIの基本動作 ④ Security. Manager + Naming. rebind(名前, Object) rmiregistry ① 実装 ② rmi: //host: port/名前 rmid クライアント ② ③ ③ ⑤ Activatable Naming. rebind() ① Unicast. Remote. Object Naming. lookup(URL) 実装 Setup Activation. Desc Activatable. register() URL file: //location Naming. lookup(URL) クライアント
Jiniの基礎 Jini. TM discovery & join Jini. TM distributed lease Jini. TM distributed event Jini. TM entry Jini. TM lookup Jini. TM transaction Java. Spaces. TM
Jiniへ参加するプログラム class Sample implements Discovery. Listener { private Service. Regstrar[] s. Registrar; public Sample(){ Lookup. Discovery lookup. Disc = new Lookup. Discovery(Lookup. Discovery. ALL_GROUP); lookup. Disc. add. Discovery. Listener(this) WAIT!! Entry[] attr = new Entry[] { new Service. Info(…. . )} Service. Item s. Item = new Service. Item(null, OBJECT, attr); for( i = 0; s. Registrar. length 回; i++){ Service. Registrar r = s. Registrar[i]; Service. Registration regt = r. register(s. Item, lease. Time); Lease lease = regt. get. Lease(); new Lease. Renewer(lease). start(); } } public void discovered(Discovery. Event e){ s. Registrarr = e. get. Registrars(); } public void discarded(Discovery. Event e){ } }
リソース www. jini. org Java. sun. com/jini Java. sun. com/docs/books/jini/ n The Jini Specification www. java-conf. gr. jp www. iaj. or. jp n Jini BOF(www. java-conf. gr. jp/wg_bof/jini/
- Slides: 21