Interface StartTestInput
- All Superinterfaces:
org.opendaylight.yangtools.binding.Augmentable<StartTestInput>,org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>,org.opendaylight.yangtools.binding.BindingObject,org.opendaylight.yangtools.binding.DataContainer,org.opendaylight.yangtools.binding.DataObject,org.opendaylight.yangtools.binding.RpcInput
@Generated("mdsal-binding-generator")
public interface StartTestInput
extends org.opendaylight.yangtools.binding.RpcInput, org.opendaylight.yangtools.binding.Augmentable<StartTestInput>
This class represents the following YANG schema fragment defined in module rpcbenchmark
input input {
leaf operation {
type enumeration {
enum GLOBAL-RTC {
value 1;
}
enum ROUTED-RTC {
value 2;
}
}
}
leaf num-clients {
type uint32;
default 1;
}
leaf num-servers {
type uint32;
default 1;
}
leaf payload-size {
type uint32;
default 1;
}
leaf iterations {
type uint32;
default 1;
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThis class represents the following YANG schema fragment defined in module rpcbenchmark -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbindingEquals(@NonNull StartTestInput thisObj, Object obj) Default implementation ofObject.equals(Object)contract for this interface.static intbindingHashCode(@NonNull StartTestInput obj) Default implementation ofObject.hashCode()contract for this interface.static StringbindingToString(@NonNull StartTestInput obj) Default implementation ofObject.toString()contract for this interface.org.opendaylight.yangtools.yang.common.Uint32Return iterations, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint32Return numClients, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint32Return numServers, ornullif it is not present.Return operation, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint32Return payloadSize, ornullif it is not present.default Class<StartTestInput> default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return iterations, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return numClients, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return numServers, guaranteed to be non-null.default @NonNull StartTestInput.OperationReturn operation, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return payloadSize, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.Augmentable
augmentation, augmentationOrElseThrow, augmentationOrElseThrow, augmentations
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.binding.DataObject- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.binding.RpcInput
-
bindingHashCode
Default implementation ofObject.hashCode()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.- Parameters:
obj- Object for which to generate hashCode() result.- Returns:
- Hash code value of data modeled by this interface.
- Throws:
NullPointerException- ifobjisnull
-
bindingEquals
Default implementation ofObject.equals(Object)contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.- Parameters:
thisObj- Object acting as the receiver of equals invocationobj- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
NullPointerException- ifthisObjisnull
-
bindingToString
Default implementation ofObject.toString()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.- Parameters:
obj- Object for which to generate toString() result.- Returns:
Stringvalue of data modeled by this interface.- Throws:
NullPointerException- ifobjisnull
-
getOperation
StartTestInput.Operation getOperation()Return operation, ornullif it is not present.RPC type and client type to use in the test- Returns:
Operationoperation, ornullif it is not present.
-
requireOperation
Return operation, guaranteed to be non-null.RPC type and client type to use in the test- Returns:
Operationoperation, guaranteed to be non-null.- Throws:
NoSuchElementException- if operation is not present
-
getNumClients
org.opendaylight.yangtools.yang.common.Uint32 getNumClients()Return numClients, ornullif it is not present.Number of clients (test client threads) to start- Returns:
Uint32numClients, ornullif it is not present.
-
requireNumClients
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireNumClients()Return numClients, guaranteed to be non-null.Number of clients (test client threads) to start- Returns:
Uint32numClients, guaranteed to be non-null.- Throws:
NoSuchElementException- if numClients is not present
-
getNumServers
org.opendaylight.yangtools.yang.common.Uint32 getNumServers()Return numServers, ornullif it is not present.Number of RPC server instances. Only valid for routed RPCs.- Returns:
Uint32numServers, ornullif it is not present.
-
requireNumServers
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireNumServers()Return numServers, guaranteed to be non-null.Number of RPC server instances. Only valid for routed RPCs.- Returns:
Uint32numServers, guaranteed to be non-null.- Throws:
NoSuchElementException- if numServers is not present
-
getPayloadSize
org.opendaylight.yangtools.yang.common.Uint32 getPayloadSize()Return payloadSize, ornullif it is not present.Input/Output payload size: number of elements in the list of integers that is the input and output RPC payload- Returns:
Uint32payloadSize, ornullif it is not present.
-
requirePayloadSize
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requirePayloadSize()Return payloadSize, guaranteed to be non-null.Input/Output payload size: number of elements in the list of integers that is the input and output RPC payload- Returns:
Uint32payloadSize, guaranteed to be non-null.- Throws:
NoSuchElementException- if payloadSize is not present
-
getIterations
org.opendaylight.yangtools.yang.common.Uint32 getIterations()Return iterations, ornullif it is not present.Number of calls to the specified RPC server that is to be made by each client- Returns:
Uint32iterations, ornullif it is not present.
-
requireIterations
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireIterations()Return iterations, guaranteed to be non-null.Number of calls to the specified RPC server that is to be made by each client- Returns:
Uint32iterations, guaranteed to be non-null.- Throws:
NoSuchElementException- if iterations is not present
-