use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.dsbenchmark.rev150105.TestStatusBuilder in project controller by opendaylight.
the class DsbenchmarkProvider method setTestOperData.
private void setTestOperData(final ExecStatus sts, final long tstCompl) {
TestStatus status = new TestStatusBuilder().setExecStatus(sts).setTestsCompleted(tstCompl).build();
WriteTransaction tx = simpleTxDataBroker.newWriteOnlyTransaction();
tx.put(LogicalDatastoreType.OPERATIONAL, TEST_STATUS_IID, status);
try {
tx.submit().checkedGet();
} catch (final TransactionCommitFailedException e) {
throw new IllegalStateException(e);
}
LOG.debug("DataStore test oper status populated: {}", status);
}
Aggregations