use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.dsbenchmark.rev150105.TestStatus 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);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.dsbenchmark.rev150105.TestStatus in project controller by opendaylight.
the class RpcbenchmarkProvider method testStatus.
@Override
public Future<RpcResult<TestStatusOutput>> testStatus() {
LOG.info("testStatus");
TestStatusOutput output = new TestStatusOutputBuilder().setGlobalServerCnt((long) globalServer.getNumRpcs()).setExecStatus(execStatus.get()).build();
return RpcResultBuilder.success(output).buildFuture();
}
Aggregations