use of org.onosproject.store.primitives.TransactionId in project onos by opennetworkinglab.
the class TransactionsCommand method doExecute.
@Override
protected void doExecute() {
StorageAdminService storageAdminService = get(StorageAdminService.class);
Collection<TransactionId> transactionIds = storageAdminService.getPendingTransactions();
if (outputJson()) {
print("%s", json(transactionIds));
} else {
transactionIds.forEach(id -> print("%s", id.toString()));
}
}
Aggregations