Search in sources :

Example 1 with BaseContext

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);
}
Also used : PortContext(com.datatorrent.stram.engine.PortContext) Context(com.datatorrent.api.Context) BaseContext(com.datatorrent.stram.api.BaseContext) BaseContext(com.datatorrent.stram.api.BaseContext) Field(java.lang.reflect.Field)

Aggregations

Context (com.datatorrent.api.Context)1 BaseContext (com.datatorrent.stram.api.BaseContext)1 PortContext (com.datatorrent.stram.engine.PortContext)1 Field (java.lang.reflect.Field)1