public class DefaultRemoteDrain extends java.lang.Object implements RemoteDrain
ProcessContextRegistry
and the ProcessContext associated with the given pid.SERVICE_NAME| Constructor and Description |
|---|
DefaultRemoteDrain() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Unregisters this service from the rmi registry.
|
void |
drain(int pid,
DrainType type,
java.lang.String message)
Adapts and delegates the given message to a registered
ProcessContext identified by the given
pid. |
ProcessContextRegistry |
getProcessContextRegistry() |
RMIRegistryService |
getRmiRegistryService() |
void |
init()
Registers this service to the wired rmi
Registry. |
void |
setProcessContextRegistry(ProcessContextRegistry processContextRegistry) |
void |
setRmiRegistryService(RMIRegistryService rmiRegistryService) |
public void drain(int pid,
DrainType type,
java.lang.String message)
throws java.rmi.RemoteException
ProcessContext identified by the given
pid.
Callback method to handle a line of std err/out output of an process.drain in interface RemoteDrainpid - the unique id of a process.type - the type of output we are talking about.message - the actual payload: one line of output.java.rmi.RemoteException - on any technical communication error.RemoteDrain.drain(int, DrainType, String)public void init()
Registry.public void destroy()
public RMIRegistryService getRmiRegistryService()
public void setRmiRegistryService(RMIRegistryService rmiRegistryService)
public ProcessContextRegistry getProcessContextRegistry()
public void setProcessContextRegistry(ProcessContextRegistry processContextRegistry)
Copyright © 2018 SAP SE. All Rights Reserved.