Class PSRpcResponse
- java.lang.Object
-
- org.apache.sysds.runtime.controlprogram.paramserv.rpc.PSRpcObject
-
- org.apache.sysds.runtime.controlprogram.paramserv.rpc.PSRpcResponse
-
public class PSRpcResponse extends PSRpcObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PSRpcResponse.Type
-
Field Summary
-
Fields inherited from class org.apache.sysds.runtime.controlprogram.paramserv.rpc.PSRpcObject
PULL, PUSH
-
-
Constructor Summary
Constructors Constructor Description PSRpcResponse(ByteBuffer buffer)
PSRpcResponse(PSRpcResponse.Type status)
PSRpcResponse(PSRpcResponse.Type status, Object data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deserialize(ByteBuffer buffer)
String
getErrorMessage()
ListObject
getResultModel()
boolean
isSuccessful()
ByteBuffer
serialize()
-
-
-
Constructor Detail
-
PSRpcResponse
public PSRpcResponse(ByteBuffer buffer) throws IOException
- Throws:
IOException
-
PSRpcResponse
public PSRpcResponse(PSRpcResponse.Type status)
-
PSRpcResponse
public PSRpcResponse(PSRpcResponse.Type status, Object data)
-
-
Method Detail
-
isSuccessful
public boolean isSuccessful()
-
getErrorMessage
public String getErrorMessage()
-
getResultModel
public ListObject getResultModel()
-
deserialize
public void deserialize(ByteBuffer buffer) throws IOException
- Specified by:
deserialize
in classPSRpcObject
- Throws:
IOException
-
serialize
public ByteBuffer serialize() throws IOException
- Specified by:
serialize
in classPSRpcObject
- Throws:
IOException
-
-