use of org.apache.nifi.toolkit.cli.impl.result.ProcessGroupResult in project nifi by apache.
the class PGStatus method doExecute.
@Override
public ProcessGroupResult doExecute(final NiFiClient client, final Properties properties) throws NiFiClientException, IOException, MissingOptionException, CommandException {
final String pgId = getRequiredArg(properties, CommandOption.PG_ID);
final ProcessGroupEntity entity = client.getProcessGroupClient().getProcessGroup(pgId);
return new ProcessGroupResult(getResultType(properties), entity);
}
Aggregations