Class DefaultRemoteDrain
java.lang.Object
de.hybris.platform.mediaconversion.os.process.impl.DefaultRemoteDrain
- All Implemented Interfaces:
RemoteDrain,Remote
Default implementation of the RemoteDrain. This spring bean registers itself to the RMI Registry to accept all
incoming 'drain requests'. It then adapts and delegates the callback to the underlying
ProcessContextRegistry
and the ProcessContext associated with the given pid.-
Field Summary
Fields inherited from interface de.hybris.platform.mediaconversion.os.process.rmi.RemoteDrain
SERVICE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Unregisters this service from the rmi registry.voidAdapts and delegates the given message to a registeredProcessContextidentified by the givenpid.voidinit()Registers this service to the wired rmiRegistry.voidsetProcessContextRegistry(ProcessContextRegistry processContextRegistry) voidsetRmiRegistryService(RMIRegistryService rmiRegistryService)
-
Constructor Details
-
DefaultRemoteDrain
public DefaultRemoteDrain()
-
-
Method Details
-
drain
Adapts and delegates the given message to a registeredProcessContextidentified by the givenpid.Callback method to handle a line of std err/out output of an process.
- Specified by:
drainin interfaceRemoteDrain- Parameters:
pid- the unique id of a process.type- the type of output we are talking about.message- the actual payload: one line of output.- Throws:
RemoteException- on any technical communication error.- See Also:
-
init
public void init()Registers this service to the wired rmiRegistry. -
destroy
public void destroy()Unregisters this service from the rmi registry. -
getRmiRegistryService
-
setRmiRegistryService
-
getProcessContextRegistry
-
setProcessContextRegistry
-