Package com.zeroc.Ice

Interface Process

All Superinterfaces:
Object

public interface Process extends Object
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 LocatorRegistryPrx.setServerProcessProxy(java.lang.String, com.zeroc.Ice.ProcessPrx).
  • Method Details

    • shutdown

      void shutdown(Current current)
      Initiates a graceful shutdown of the server application.
      Parameters:
      current - The Current object of the incoming request.
    • writeMessage

      void writeMessage(String message, int fd, Current current)
      Writes a message on the server application's stdout or stderr.
      Parameters:
      message - The message to write.
      fd - 1 for stdout, 2 for stderr.
      current - The Current object of the incoming request.
    • ice_staticId

      static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::Ice::Process"
    • dispatch

      default CompletionStage<OutgoingResponse> dispatch(IncomingRequest request) throws UserException
      Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.
      Specified by:
      dispatch in interface Object
      Parameters:
      request - the incoming request
      Returns:
      the outgoing response
      Throws:
      UserException - if a UserException is thrown, Ice will marshal it as the response payload.