use of com.datatorrent.stram.api.BaseContext in project apex-core by apache.
the class TypeDiscoverer method getOperatorAttributes.
/**
* Fetches operator attributes.
*
* @return all operator attributes exposed to user.
* @throws JSONException
* @throws IllegalAccessException
*/
public static JSONObject getOperatorAttributes() throws JSONException, IllegalAccessException {
Field[] fields = Context.OperatorContext.class.getFields();
Collection<Field> attributes = Collections2.filter(Arrays.asList(fields), attrPredicate);
return getAttrDescription(new BaseContext(null, null), attributes);
}
Aggregations