public virtual void TestRefreshNodes() { resourceManager.GetClientRMService(); RefreshNodesRequest request = recordFactory.NewRecordInstance <RefreshNodesRequest >(); RefreshNodesResponse response = client.RefreshNodes(request); NUnit.Framework.Assert.IsNotNull(response); }
/// <exception cref="System.IO.IOException"/> /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/> private int RefreshNodes() { // Refresh the nodes ResourceManagerAdministrationProtocol adminProtocol = CreateAdminProtocol(); RefreshNodesRequest request = recordFactory.NewRecordInstance <RefreshNodesRequest >(); adminProtocol.RefreshNodes(request); return(0); }
/// <exception cref="Com.Google.Protobuf.ServiceException"/> public virtual YarnServerResourceManagerServiceProtos.RefreshNodesResponseProto RefreshNodes (RpcController controller, YarnServerResourceManagerServiceProtos.RefreshNodesRequestProto proto) { RefreshNodesRequestPBImpl request = new RefreshNodesRequestPBImpl(proto); try { RefreshNodesResponse response = real.RefreshNodes(request); return(((RefreshNodesResponsePBImpl)response).GetProto()); } catch (YarnException e) { throw new ServiceException(e); } catch (IOException e) { throw new ServiceException(e); } }