Archived

This forum has been archived. Please start a new discussion on GitHub.

Starting servers with IceGrid::Admin

Hi,

I'm using Ice v3.2, and trying to start/stop servers using the IceGrid::Admin interface.

IceGrid::Admin provides two functions: startServer() and stopServer().
If I call startServer() for a server that is already started, it raises a ServerStartException. From the description of ServerStartException, it looks like this is a general-purpose exception that could be called for a number of reasons.

So my question is, is there a way to find out whether or not a server is already started? If I don't know the current state, I have no way of reliably putting it into the 'Started' state. I notice that an isEnabled() function is provided, but not isStarted().

I can see that one way to do it would be to register a NodeObserver, and look at the state of the servers through the nodeInit() function. But this seems pretty cumbersome -- am I missing something?




Thanks,

Alex

Comments