本文整理汇总了Java中gov.nih.nci.caarray.services.CaArrayServer.getDataRetrievalService方法的典型用法代码示例。如果您正苦于以下问题:Java CaArrayServer.getDataRetrievalService方法的具体用法?Java CaArrayServer.getDataRetrievalService怎么用?Java CaArrayServer.getDataRetrievalService使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gov.nih.nci.caarray.services.CaArrayServer
的用法示例。
在下文中一共展示了CaArrayServer.getDataRetrievalService方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: main
import gov.nih.nci.caarray.services.CaArrayServer; //导入方法依赖的package包/类
public static void main(String[] args) {
ApiDataSetDownload client = new ApiDataSetDownload();
try {
CaArrayServer server = new CaArrayServer(BaseProperties.getServerHostname(), BaseProperties
.getServerJndiPort());
server.connect();
CaArraySearchService searchService = server.getSearchService();
DataRetrievalService dataService = server.getDataRetrievalService();
System.out.println("Downloading a DataSet from experiment " + EXPERIMENT_NAME + "...");
client.getDataSetFromExperiment(searchService, dataService, EXPERIMENT_NAME, QUANTITATION_TYPES_CSV_STRING);
} catch (ServerConnectionException e) {
System.out.println("Could not connect to server.");
e.printStackTrace();
} catch (Throwable t) {
System.out.println("Generic error.");
t.printStackTrace();
}
}
示例2: connect
import gov.nih.nci.caarray.services.CaArrayServer; //导入方法依赖的package包/类
public void connect() throws Exception
{
String hostName = TestProperties.getJavaServerHostname();
int port = TestProperties.getJavaServerJndiPort();
System.out.println("Connecting to java server: " + hostName + ":" + port);
CaArrayServer server = new CaArrayServer(hostName, port);
server.connect();
javaSearchService = server.getSearchService();
dataService = server.getDataRetrievalService();
arrayDesignService = server.getArrayDesignDetailsService();
fileRetrievalService = server.getFileRetrievalService();
}