Interface DsbenchmarkService

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.RpcService

    @Generated("mdsal-binding-generator")
    public interface DsbenchmarkService
    extends org.opendaylight.yangtools.yang.binding.RpcService
    Interface for implementing the following YANG RPCs defined in module dsbenchmark
     rpc start-test {
       input input {
         leaf operation {
           type enumeration {
             enum PUT {
               value 1;
             }
             enum MERGE {
               value 2;
             }
             enum DELETE {
               value 3;
             }
             enum READ {
               value 4;
             }
           }
         }
         leaf data-format {
           type enumeration {
             enum BINDING-AWARE {
               value 1;
             }
             enum BINDING-INDEPENDENT {
               value 2;
             }
           }
         }
         leaf transaction-type {
           type enumeration {
             enum SIMPLE-TX {
               value 1;
             }
             enum TX-CHAINING {
               value 2;
             }
           }
         }
         leaf data-store {
           type enumeration {
             enum CONFIG {
               value 1;
             }
             enum OPERATIONAL {
               value 2;
             }
             enum BOTH {
               value 3;
             }
           }
         }
         leaf outerElements {
           type uint32;
           default 100000;
         }
         leaf innerElements {
           type uint32;
           default 1;
         }
         leaf putsPerTx {
           type uint32;
           default 1;
         }
         leaf listeners {
           type uint32;
           default 0;
         }
       }
       output output {
         leaf status {
           type enumeration {
             enum OK {
               value 1;
             }
             enum FAILED {
               value 2;
             }
             enum TEST-IN-PROGRESS {
               value 3;
             }
           }
         }
         leaf listBuildTime {
           type int64;
           units microseconds;
         }
         leaf execTime {
           type int64;
           units microseconds;
         }
         leaf txOk {
           type uint32;
         }
         leaf txError {
           type uint32;
         }
         leaf ntfOk {
           type uint32;
         }
         leaf dataChangeEventsOk {
           type uint32;
         }
       }
     }
     rpc cleanup-store {
     }
     
    • Method Detail

      • startTest

        @CheckReturnValue
        com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<StartTestOutput>> startTest​(StartTestInput input)
        Invoke start-test RPC.
             
                 Start a new data store write test run
             
         
        Parameters:
        input - of start-test
        Returns:
        output of start-test
      • cleanupStore

        @CheckReturnValue
        com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CleanupStoreOutput>> cleanupStore​(CleanupStoreInput input)
        Invoke cleanup-store RPC.
             
                 Delete data in the test-exec container that may have been left behind from a
                 previous test run
             
         
        Parameters:
        input - of cleanup-store
        Returns:
        output of cleanup-store