2-127
DSOM Framework Reference
somdShutdownServer Method
Purpose
Stops a server process.
IDL Syntax
ORBStatus somdShutdownServer (in string server_alias);
Description
The somdShutdownServer method is invoked to stop a server process. If the server
process corresponding to the server alias exists, it will be stopped and a code indicating
success is returned. If the server process does not exist, then the
SOMDERROR_ServerNotFound error is returned.
Note: On AIX, this method will fail to stop the server process if the process owner
executing this method is not the same as that of either the server process or root.
Parameters
receiver A pointer to an object of class SOMDServerMgr.
ev A pointer to the Environment structure for the calling method.
server_alias The implementation alias of the server to be stopped.
Return Value
Returns 0 for success or a DSOM error code for failure.
Example
#include <somd.h>
#include <servmgr.h>
SOMDServerMgr servmgr;
string server_alias = ”MyServer”;
ORBStatus rc;
Environment e;
SOM_InitEnvironment(&e);
SOMD_Init(&e);
servmgr = SOMDServerMgrNew();
rc = _somdShutdownServer(servmgr, &e, server_alias);
Original Class
SOMDServerMgr
Kommentare zu diesen Handbüchern