Now that the QueryOperationListener is ready, we can create the query operation. Here we add a filter that only detects providers with a specific OID and IID.
A requestor uses a query operation to parse the provides it receives in response to interest. It is important to remember that a query operation is a local operation: it is not sent to other nodes, nor will it search the network for providers. It finds only provide operations that the requestor is storing in state on its local system. Because the system will not store provide operations without a matching interest operation, queries are useful only in conjunction with interest.
Once the query is created, the methods in the query operation listener will be called to detect when a provider starts or stops providing.