Class BMPRequest.BMPResponse
java.lang.Object
uk.ac.manchester.spinnaker.messages.scp.SCPResponse
uk.ac.manchester.spinnaker.messages.bmp.BMPRequest.BMPResponse
- Direct Known Subclasses:
BMPRequest.PayloadedResponse
- Enclosing class:
- BMPRequest<T extends BMPRequest.BMPResponse>
public static class BMPRequest.BMPResponse extends SCPResponse
Represents an SCP request thats tailored for the BMP connection. This
basic class handles checking that the result is OK; subclasses manage
deserializing any returned payload.
- See Also:
CheckOKResponse
-
Field Summary
Fields inherited from class uk.ac.manchester.spinnaker.messages.scp.SCPResponse
result, sdpHeader, sequence
-
Constructor Summary
Constructors Constructor Description BMPResponse(String operation, SCPCommand command, ByteBuffer buffer)
Make a response object. -
Method Summary
-
Constructor Details
-
BMPResponse
public BMPResponse(String operation, SCPCommand command, ByteBuffer buffer) throws UnexpectedResponseCodeExceptionMake a response object.- Parameters:
operation
- The operation that this part of.command
- The command that this is a response to.buffer
- The buffer to read the response from.- Throws:
UnexpectedResponseCodeException
- If the response is not a success.
-