use of edu.umass.cs.gnsserver.gnsapp.packet.InternalCommandPacket in project GNS by MobilityFirst.
the class ActiveGNSClient method read.
@Override
public JSONObject read(InternalRequestHeader header, String targetGUID, String field) throws ClientException, InternalRequestException {
try {
Request request = this.executeCommand(GNSCommandInternal.fieldRead(targetGUID, field, header));
InternalCommandPacket packet = (InternalCommandPacket) request;
return packet.getResultJSONObject();
} catch (IOException | JSONException e) {
throw new ClientException(e);
}
}
Aggregations