本文整理汇总了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) ;
}
}
示例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;
}
示例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;
}