Interface RemoteDrain

  • All Superinterfaces:
    java.rmi.Remote
    All Known Implementing Classes:
    DefaultRemoteDrain

    public interface RemoteDrain
    extends java.rmi.Remote
    Special kind of Drain to communicate callback data from std out/err over RMI into a different JVM.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SERVICE_NAME
      Name of the RMI service registered.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void drain​(int pid, DrainType type, java.lang.String message)
      Callback method to handle a line of std err/out output of an process.
    • Field Detail

      • SERVICE_NAME

        static final java.lang.String SERVICE_NAME
        Name of the RMI service registered.
    • Method Detail

      • drain

        void drain​(int pid,
                   DrainType type,
                   java.lang.String message)
            throws java.rmi.RemoteException
        Callback method to handle a line of std err/out output of an process.
        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:
        java.rmi.RemoteException - on any technical communication error.