Bull DPX/20 Betriebsanweisung Seite 294

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 424
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 293
2-126
SOMobjects Base Toolkit: Programmers Reference Manual
somdRestartServer Method
Purpose
Restarts a server process.
IDL Syntax
ORBStatus somdRestartServer (in string server_alias);
Description
The somdRestartServer method is invoked to restart a server process. If the server
process currently exists, it will be stopped and started again. If the server process does not
exist, a new server process will still be started. If the server process cannot be stopped
and/or started for any reason, the method returns a DSOM error code.
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 restarted.
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 = _somdRestartServer(servmgr, &e, server_alias);
Original Class
SOMDServerMgr
Seitenansicht 293
1 2 ... 289 290 291 292 293 294 295 296 297 298 299 ... 423 424

Kommentare zu diesen Handbüchern

Keine Kommentare