Etudiez cette leçon pour identifier les classements de services en cours ainsi que les classements de services qui sont disponibles pour la mise à niveau.
cd wxs_home/bin
./xscmd.sh -c osgiCurrent -g Grid -ms MapSet -sn myShardListener
La sortie suivante s'affiche :
OSGi Service Name: myShardListener
ObjectGrid Name MapSet Name Server Name Current Ranking
--------------- ----------- ----------- ---------------
Grid MapSet collocatedServer 1
CWXSI0040I: The command osgiCurrent has completed successfully.
cd wxs_home/bin
./xscmd.sh -c osgiCurrent -g Grid -ms MapSet
La sortie suivante s'affiche :
OSGi Service Name Current Ranking ObjectGrid Name MapSet Name Server Name
----------------- --------------- --------------- ----------- -----------
myProtoBufSerializer 1 Grid MapSet collocatedServer
myShardListener 1 Grid MapSet collocatedServer
CWXSI0040I: The command osgiCurrent has completed successfully.
cd wxs_home/bin
./xscmd.sh -c osgiAll -sn myShardListener
La sortie suivante s'affiche :
Server: collocatedServer
OSGi Service Name Available Rankings
----------------- ------------------
myShardListener 1
Summary - All servers have the same service rankings.
CWXSI0040I: The command osgiAll has completed successfully.
La sortie est regroupée en fonction du serveur. Dans cet exemple, seul le serveur collocatedServer existe.cd wxs_home/bin
./xscmd.sh -c osgiAll
La sortie suivante s'affiche :
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
La sortie suivante s'affiche :
Server: collocatedServer
OSGi Service Name Available Rankings
----------------- ------------------
myProtoBufSerializer 1, 2
myShardListener 1, 2
Summary - All servers have the same service rankings.
Dans ce tutoriel, vous avez interrogé des classements de services spécifiques et les classements de services disponibles. Vous avez également affiché le classement de service d'un nouvel ensemble que vous avez installé et démarré.