readme
来自「ICE-3.2 一个开源的中间件」· 代码 · 共 36 行
TXT
36 行
To run the demo, first start the IceGrid service:$ icegridnode --Ice.Config=config.gridThis demo contains two application descriptor files. The firstdescriptor, application-single.xml, contains a single server andobject. This object is allocated by the client using theallocateObjectById operation. Only one client can access this objectat a time. All other clients will hang until the object is released.Use the following command to deploy this descriptor:$ icegridadmin --Ice.Config=config.grid -e \ "application add 'application-single.xml'"The second descriptor, application-multiple.xml, contains two servers,each with an object. The clients retrieve these objects usingallocateObjectByType. Since there are two objects available, twoclients can get access simultaneously. Additional clients will hanguntil one of the clients with an allocated object releases it. Use thefollowing command to deploy this descriptor:$ icegridadmin --Ice.Config=config.grid -e \ "application add 'application-multiple.xml'"To run the client type:$ clientIf you have already deployed the application, you can update it to trya different set of descriptors, for example:$ icegridadmin --Ice.Config=config.grid -e \ "application update 'application-multiple.xml'"Messages will be displayed in the IceGrid service window.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?