Class ProcessExecutorClient

java.lang.Object
de.hybris.platform.mediaconversion.os.process.AbstractProcessExecutor
de.hybris.platform.mediaconversion.os.process.impl.ProcessExecutorClient
All Implemented Interfaces:
ProcessExecutor

public class ProcessExecutorClient extends AbstractProcessExecutor
ProcessExecutor implementation delegating all execution requests to a remote server (a small JVM, which can spawn the processes more efficiently).

The sub process (the server) is executed on construction time of this object and terminated when this object's quit() method is called.

  • Field Details

    • EMMA_COVERAGE_ANNOUNCE

      public static final String EMMA_COVERAGE_ANNOUNCE
      When the remote server has emma test coverage enabled, the started java VM outputs this message (to stdout). This message must be recognized and skipped to correctly receive the server's proprietary start message.
      See Also:
  • Constructor Details

    • ProcessExecutorClient

      public ProcessExecutorClient(org.apache.commons.configuration.Configuration conf, RMIRegistryService rmiReg, ProcessContextRegistry contextReg, String tenantName) throws IOException, NotBoundException
      constructs a new client, starts the ProcessExecutorServer and connects to it.
      Parameters:
      conf - the Configuration containing information how to spawn the server.
      rmiReg - the rmi registry to use
      contextReg - the process context registry to use for call back handling
      tenantName - the current tenant's name
      Throws:
      IOException - if the sub process could not be spawned correctly or the any other communication error occurred.
      NotBoundException - if the server was not correctly bound to the rmi registry
  • Method Details