|
|
|
|||||
|
Shut down the Icepatch2 Server programmatically
Hello. I use Ice-3.1.1 now and IcePatch2 which is included in this distribution. I read in the manual that I can shut down the IcePatch2-Server programmatically if I passed the IcePatch2.Admin.Endpoints endpoint at its start. I read on the page 1465 of the manual:
If this property is not set, the only way to shut down the server is to kill it somehow, such as by interrupting the server from the command line. If this property is set, the server offers an additional interface with a shutdown operation, allowing clients to remotely stop the server. Typically, you would set this property to a port that is not accessible to potentially hostile clients. But how can I access this interface and call the shut down function? Is there a simple way? Or do I have to look into your code in order to find out the name of the admin-servant, its identity and so on to create an appropriate proxy in the client and call the shut down? Greetings Ewgenij |
|
|||||
|
Hello. But to initialize IcePatch2::AdminPrx I have to include some source file where it is defined. Which one is that? I found with grep that class Admin is defined in FileServer.h. Is it the right way?
Greetings Ewgenij |
|
||||||
|
Yes, to use the Admin interface you will need to include IcePatch2/FileServer.h and then link your application with the IcePatch2 library.
|
|
|||||
|
Hello, thank you, guys, for helping me. It works now! Is the usage of this Admin port for closing of IcePatch described somewhere in the manual? I mean with all this includes and linking stuff. I couldn't find it there.
Greetings Ewgenij |
|
||||||
|
Calling on the IcePatch2 server is no different from calling on any other server. You need the slice and you need to know the address & identity of the object you are calling. The include files and library files that you are using are prebuilt and distributed with Ice, however, there is no requirement that you use these. You could compile the slice yourself. All of this information is covered in the various language mapping chapters of the Ice manual.
I think that the only piece of missing information is the identity of the IcePatch2 service admin object. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How add a new Property to the IcePatch2 Server? | Ewgenijkkg | Help Center | 4 | 04-19-2007 01:05 PM |
| IcePatch2-Server adding new functionality | Ewgenijkkg | Help Center | 8 | 04-11-2007 10:35 AM |
| how to shut down a node? | russule | Help Center | 2 | 01-08-2007 05:13 AM |
| Using Properties Programmatically | Oleh Babyak | Help Center | 1 | 11-22-2006 12:33 PM |
| how to create a icepatch2 Server using python? | jeylee | Help Center | 3 | 03-11-2005 05:05 AM |