我正在尝试使用以下方法将应用程序添加到 CP:
addJobStreamInstance(Identifier jobStreamId, java.util.Date inputArrivalTime, java.lang.String alias, Context context)
但我收到错误 AWSJCS011E 发生内部错误。错误如下:“UNSUPPORTED_METHOD”。
我的代码是:
QueryFilter queryFilter = new QueryFilter();
queryFilter.setFilter(JobStreamFilters.JOB_STREAM_NAME, "APNAME");
QueryResult queryResult = model.queryTWSObject(JobStream.class, queryFilter, 5, null);
List<JobStreamHeader> jobStreamHeaderList = queryResult.getList();
Identifier applicationId = jobStreamHeaderList.get(0).getId();
plan.addJobStreamInstance(applicationId, new Date(),jobStreamHeaderList.get(0).getName()+"A1",null);