Search in sources :

Example 1 with VariableRegistryResult

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

Aggregations

ProcessGroupClient (org.apache.nifi.toolkit.cli.impl.client.nifi.ProcessGroupClient)1 VariableRegistryResult (org.apache.nifi.toolkit.cli.impl.result.VariableRegistryResult)1 VariableRegistryEntity (org.apache.nifi.web.api.entity.VariableRegistryEntity)1