当前位置: 首页>>代码示例>>Java>>正文


Java AnalysisWebServiceProxy类代码示例

本文整理汇总了Java中org.genepattern.webservice.AnalysisWebServiceProxy的典型用法代码示例。如果您正苦于以下问题:Java AnalysisWebServiceProxy类的具体用法?Java AnalysisWebServiceProxy怎么用?Java AnalysisWebServiceProxy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AnalysisWebServiceProxy类属于org.genepattern.webservice包,在下文中一共展示了AnalysisWebServiceProxy类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: GenePatternServiceProvider

import org.genepattern.webservice.AnalysisWebServiceProxy; //导入依赖的package包/类
public GenePatternServiceProvider(UserCredentials gpUser, String gpUrl, String workingDir, boolean useGrid) {
if (useGrid) {
    //TODO: need to at least namespace property name (i.e. org.cvit.cmef.service.genepattern.usegrid)...
    System.setProperty("grid", "true") ;
} else {
    System.setProperty("grid", "false") ;
}
try {
    TaskIntegratorProxy taskIntegrator = new TaskIntegratorProxy(gpUrl, gpUser.getUsername(), gpUser.getPassword()) ;
    AnalysisWebServiceProxy analysis = new AnalysisWebServiceProxy(gpUrl, gpUser.getUsername(), gpUser.getPassword());
    GPClient gpClient = new GPClient(gpUrl, gpUser.getUsername());
    service = new GenePatternService(taskIntegrator, analysis, gpClient, gpUser, workingDir);
} catch (WebServiceException e) {
    throw new RuntimeException("Exception initializing CMEF Service, see cause.", e) ;
}
   }
 
开发者ID:NCIP,项目名称:digital-model-repository,代码行数:17,代码来源:GenePatternServiceProvider.java

示例2: findChildJobNumber

import org.genepattern.webservice.AnalysisWebServiceProxy; //导入依赖的package包/类
private int findChildJobNumber(HttpServletRequest request, int parentJobNumber, String child_lsid){
  	AnalysisWebServiceProxy analysisProxy = (AnalysisWebServiceProxy)request.getSession().getAttribute("AnalysisWebServiceProxy");
  	if (analysisProxy == null){
	return -1;
}
  	GPClient gpClient = (GPClient)request.getSession().getAttribute("genePatternServer");
  	try {
  		int[] children = analysisProxy.getChildren(parentJobNumber);
  		JobResult result = null;
  		for (int job : children){
  			result = gpClient.createJobResult(job);
  			if (result.getLSID().equalsIgnoreCase(child_lsid)){
  				return result.getJobNumber();
  			}
  		}
  	} catch (WebServiceException we){
  		logger.error("Failed to obtain child job number: " + we.getMessage());
  	}
return -1;
  }
 
开发者ID:NCIP,项目名称:rembrandt,代码行数:21,代码来源:GPProcessAction.java

示例3: CaIntegrator2GPClientImpl

import org.genepattern.webservice.AnalysisWebServiceProxy; //导入依赖的package包/类
/**
 * Constructor for GPClient.
 * @param server of GenePattern.
 * @param username for GenePattern.
 * @param password for GenePattern.
 * @param fileManager to be able to save files retrieved from GenePattern.
 * @throws WebServiceException if unable to connect.
 */
public CaIntegrator2GPClientImpl(String server, String username, String password, FileManager fileManager) 
throws WebServiceException {
    super(server, username, password);
    analysisProxy = new AnalysisWebServiceProxy(server, username, password);
    this.fileManager = fileManager;
}
 
开发者ID:NCIP,项目名称:caintegrator,代码行数:15,代码来源:CaIntegrator2GPClientImpl.java


注:本文中的org.genepattern.webservice.AnalysisWebServiceProxy类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。