Ice.Process

class Ice.Process

Bases: Object, ABC

A server application managed by a locator implementation such as IceGrid hosts a Process object and registers a proxy to this object with the locator registry. See Ice.LocatorRegistryPrx.setServerProcessProxyAsync().

Notes

The Slice compiler generated this skeleton class from Slice interface ::Ice::Process.

static ice_staticId() str

Obtain the type ID of the Slice interface.

Returns:

The type ID.

Return type:

str

abstractmethod shutdown(current: Current) None | Awaitable[None]

Initiates a graceful shutdown of the server application.

Parameters:

current (Ice.Current) – The Current object for the dispatch.

Returns:

None or an awaitable that completes when the dispatch completes.

Return type:

None | Awaitable[None]

abstractmethod writeMessage(message: str, fd: int, current: Current) None | Awaitable[None]

Writes a message on the server application’s stdout or stderr.

Parameters:
  • message (str) – The message to write.

  • fd (int) – 1 for stdout, 2 for stderr.

  • current (Ice.Current) – The Current object for the dispatch.

Returns:

None or an awaitable that completes when the dispatch completes.

Return type:

None | Awaitable[None]