Search in sources :

Example 1 with TransactionId

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()));
    }
}
Also used : StorageAdminService(org.onosproject.store.service.StorageAdminService) TransactionId(org.onosproject.store.primitives.TransactionId)

Aggregations

TransactionId (org.onosproject.store.primitives.TransactionId)1 StorageAdminService (org.onosproject.store.service.StorageAdminService)1