use of com.datatorrent.stram.api.StramToNodeGetPropertyRequest in project apex-core by apache.
the class StreamingContainerManager method getPhysicalOperatorProperty.
public FutureTask<Object> getPhysicalOperatorProperty(int operatorId, String propertyName, long waitTime) {
PTOperator o = this.plan.getAllOperators().get(operatorId);
StramToNodeGetPropertyRequest request = new StramToNodeGetPropertyRequest();
request.setOperatorId(operatorId);
request.setPropertyName(propertyName);
addOperatorRequest(o, request);
RequestHandler task = new RequestHandler();
task.requestId = nodeToStramRequestIds.incrementAndGet();
task.waitTime = waitTime;
request.requestId = task.requestId;
FutureTask<Object> future = new FutureTask<>(task);
dispatch(future);
return future;
}
Aggregations