Search in sources :

Example 1 with GetPrefixShardRoleInputBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.cluster.admin.rev151013.GetPrefixShardRoleInputBuilder in project controller by opendaylight.

the class ClusterAdminRpcServiceTest method getPrefixShardRole.

private RpcResult<GetPrefixShardRoleOutput> getPrefixShardRole(final MemberNode memberNode, final InstanceIdentifier<?> identifier, final BindingNormalizedNodeSerializer serializer) throws Exception {
    final GetPrefixShardRoleInput input = new GetPrefixShardRoleInputBuilder().setDataStoreType(DataStoreType.Config).setShardPrefix(identifier).build();
    final ClusterAdminRpcService service = new ClusterAdminRpcService(memberNode.configDataStore(), memberNode.operDataStore(), serializer);
    return service.getPrefixShardRole(input).get(10, TimeUnit.SECONDS);
}
Also used : GetPrefixShardRoleInput(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.cluster.admin.rev151013.GetPrefixShardRoleInput) GetPrefixShardRoleInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.cluster.admin.rev151013.GetPrefixShardRoleInputBuilder)

Aggregations

GetPrefixShardRoleInput (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.cluster.admin.rev151013.GetPrefixShardRoleInput)1 GetPrefixShardRoleInputBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.cluster.admin.rev151013.GetPrefixShardRoleInputBuilder)1