use of org.apache.nifi.toolkit.cli.impl.result.VariableRegistryResult in project nifi by apache.
the class PGGetVars method doExecute.
@Override
public VariableRegistryResult doExecute(final NiFiClient client, final Properties properties) throws NiFiClientException, IOException, MissingOptionException, CommandException {
final String pgId = getRequiredArg(properties, CommandOption.PG_ID);
final ProcessGroupClient pgClient = client.getProcessGroupClient();
final VariableRegistryEntity varEntity = pgClient.getVariables(pgId);
return new VariableRegistryResult(getResultType(properties), varEntity);
}
Aggregations