- All Superinterfaces:
Object
Iterates over an IceGrid log file.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Holds the result of operation read.Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Destroys the iterator.default CompletionStage<OutgoingResponse>
dispatch
(IncomingRequest request) Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.static String
Gets the type ID of the associated Slice interface.Read lines from the 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
Destroys the iterator.- Parameters:
current
- The Current object of the incoming request.
-
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::IceGrid::FileIterator"
-
dispatch
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 interfaceObject
- Parameters:
request
- the incoming request- Returns:
- the outgoing response
- Throws:
UserException
- if aUserException
is thrown, Ice will marshal it as the response payload.
-