use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.cluster.admin.rev151013.GetShardRoleInputBuilder in project controller by opendaylight.
the class ClusterAdminRpcServiceTest method getShardRole.
private RpcResult<GetShardRoleOutput> getShardRole(final MemberNode memberNode, final BindingNormalizedNodeSerializer serializer, final String shardName) throws Exception {
final GetShardRoleInput input = new GetShardRoleInputBuilder().setDataStoreType(DataStoreType.Config).setShardName(shardName).build();
final ClusterAdminRpcService service = new ClusterAdminRpcService(memberNode.configDataStore(), memberNode.operDataStore(), serializer);
return service.getShardRole(input).get(10, TimeUnit.SECONDS);
}
Aggregations