Interface FileIterator

All Superinterfaces:
Object

public interface FileIterator extends Object
Iterates over an IceGrid log file.
  • Method Details

    • read

      Read lines from the log file.
      Parameters:
      size - Specifies the maximum number of bytes to be received. The server will ensure that the returned message doesn't exceed the given size.
      current - The Current object of the incoming request.
      Returns:
      An instance of FileIterator.ReadResult.
      Throws:
      FileNotAvailableException - Thrown when the implementation failed to read from the file.
    • destroy

      void destroy(Current current)
      Destroys the iterator.
      Parameters:
      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 "::IceGrid::FileIterator"
    • 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.