Search in sources :

Example 1 with ProcessGroupResult

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);
}
Also used : ProcessGroupEntity(org.apache.nifi.web.api.entity.ProcessGroupEntity) ProcessGroupResult(org.apache.nifi.toolkit.cli.impl.result.ProcessGroupResult)

Aggregations

ProcessGroupResult (org.apache.nifi.toolkit.cli.impl.result.ProcessGroupResult)1 ProcessGroupEntity (org.apache.nifi.web.api.entity.ProcessGroupEntity)1