このレッスンを完了して、照会した現行サービス・ランキングを更新します。
cd wxs_home/bin
./xscmd.sh -c osgiUpdate -g Grid -ms MapSet -sr "myShardListener;2,myProtoBufSerializer;2"
以下の出力が表示されます。
Update succeeded for the following service rankings:
Service Ranking
------- -------
myProtoBufSerializer 2
myShardListener 2
CWXSI0040I: The command osgiUpdate has completed successfully.
OSGi コンソールに、次の出力が表示されます。
SystemOut O MyShardListener@326505334(version=2.0.0) order
com.ibm.websphere.samples.xs.serializer.proto.DataObjects2$Order$Builder@
22342234(34) updated
MyShardListener サービスがバージョン 2.0.0 で、それがサービス・ランキング 2 になっていることに注意してください。cd wxs_home/bin
./xscmd.sh -c osgiCurrent -g Grid -ms MapSet
以下の出力が表示されます。
OSGi Service Name Current Ranking ObjectGrid Name MapSet Name Server Name
----------------- --------------- --------------- ----------- -----------
myProtoBufSerializer 2 Grid MapSet collocatedServer
myShardListener 2 Grid MapSet collocatedServer
CWXSI0040I: The command osgiCurrent has completed successfully.
このレッスンでは、myShardListener サービスと myProtoBufSerializer サービスのサービス・ランキングを更新しました。