Arbeiten Sie diese Lerneinheit durch, um aktuelle Service-Rankings und Service-Rankings abzufragen, die für ein Upgrade verfügbar sind.
cd wxs_home/bin
./xscmd.sh -c osgiCurrent -g Grid -ms MapSet -sn myShardListener
Die folgende Ausgabe wird angezeigt:
OSGi Service Name: myShardListener
ObjectGrid Name MapSet Name Server Name Current Ranking
--------------- ----------- ----------- ---------------
Grid MapSet collocatedServer 1
CWXSI0040I: Der Befehl osgiCurrent wurde erfolgreich ausgeführt.
cd wxs_home/bin
./xscmd.sh -c osgiCurrent -g Grid -ms MapSet
Die folgende Ausgabe wird angezeigt:
OSGi Service Name Current Ranking ObjectGrid Name MapSet Name Server Name
----------------- --------------- --------------- ----------- -----------
myProtoBufSerializer 1 Grid MapSet collocatedServer
myShardListener 1 Grid MapSet collocatedServer
CWXSI0040I: Der Befehl osgiCurrent wurde erfolgreich ausgeführt.
cd wxs_home/bin
./xscmd.sh -c osgiAll -sn myShardListener
Die folgende Ausgabe wird angezeigt:
Server: collocatedServer
OSGi Service Name Available Rankings
----------------- ------------------
myShardListener 1
Summary - All servers have the same service rankings.
CWXSI0040I: The command osgiAll has completed successfully.
Die Ausgabe ist nach Server gruppiert.
In diesem Beispiel ist nur der folgende Server vorhanden:
collocatedServer.cd wxs_home/bin
./xscmd.sh -c osgiAll
Die folgende Ausgabe wird angezeigt:
Server: collocatedServer
OSGi Service Name Available Rankings
----------------- ------------------
myProtoBufSerializer 1
myShardListener 1
Summary - All servers have the same service rankings.
cd wxs_home/bin
./xscmd.sh -c osgiAll
Die folgende Ausgabe wird angezeigt:
Server: collocatedServer
OSGi Service Name Available Rankings
----------------- ------------------
myProtoBufSerializer 1, 2
myShardListener 1, 2
Summary - All servers have the same service rankings.
In diesem Lernprogramm haben Sie momentan angegebene und alle verfügbaren Service-Rankings abgefragt. Außerdem haben Sie das Service-Ranking für ein neues Bundle angezeigt, das Sie installiert und gestartet haben.