use of com.tencent.angel.ps.server.data.response.UpdateUDFResponse in project angel by Tencent.
the class PSFUpdateHandler method handle.
@Override
public ResponseData handle(RequestHeader header, RequestData data) throws Exception {
UpdateUDFRequest request = (UpdateUDFRequest) data;
Class<? extends UpdateFunc> funcClass = (Class<? extends UpdateFunc>) Class.forName(request.getUpdaterFuncClass());
Constructor<? extends UpdateFunc> constructor = funcClass.getConstructor();
constructor.setAccessible(true);
UpdateFunc func = constructor.newInstance();
func.setPsContext(context);
func.partitionUpdate(request.getPartParam());
return new UpdateUDFResponse();
}
use of com.tencent.angel.ps.server.data.response.UpdateUDFResponse in project angel by Tencent.
the class UpdateUDFHandler method parseResponse.
@Override
public ResponseData parseResponse(ByteBuf in) {
UpdateUDFResponse response = new UpdateUDFResponse();
response.deserialize(in);
return response;
}
Aggregations