本文整理汇总了Java中gov.nih.nci.caarray.services.CaArrayServer.getSearchService方法的典型用法代码示例。如果您正苦于以下问题:Java CaArrayServer.getSearchService方法的具体用法?Java CaArrayServer.getSearchService怎么用?Java CaArrayServer.getSearchService使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gov.nih.nci.caarray.services.CaArrayServer
的用法示例。
在下文中一共展示了CaArrayServer.getSearchService方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: main
import gov.nih.nci.caarray.services.CaArrayServer; //导入方法依赖的package包/类
public static void main(String[] args) {
ApiArrayDesignDownload client = new ApiArrayDesignDownload();
try {
CaArrayServer server = new CaArrayServer(BaseProperties.getServerHostname(), BaseProperties
.getServerJndiPort());
server.connect();
CaArraySearchService searchService = server.getSearchService();
System.out.println("Downloading array design details for " + ARRAY_DESIGN_NAME);
client.downloadDetailsFromArrayDesign(server, searchService, ARRAY_DESIGN_NAME);
} catch (ServerConnectionException e) {
System.out.println("Could not connect to server.");
e.printStackTrace();
} catch (Throwable t) {
System.out.println("Generic error.");
t.printStackTrace();
}
}
示例2: main
import gov.nih.nci.caarray.services.CaArrayServer; //导入方法依赖的package包/类
public static void main(String[] args) {
ApiSearchExperimentByExample client = new ApiSearchExperimentByExample();
try {
// Connect to the server.
CaArrayServer server = new CaArrayServer(BaseProperties.getServerHostname(), BaseProperties
.getServerJndiPort());
server.connect();
// Get the search service.
CaArraySearchService searchService = server.getSearchService();
// Search for experiments.
System.out.println("Searching for " + ORGANISM_NAME + " experiments run on the " + PROVIDER_NAME
+ " platform...");
client.searchExperiments(searchService, PROVIDER_NAME, ORGANISM_NAME);
} catch (ServerConnectionException e) {
System.out.println("Could not connect to server.");
e.printStackTrace();
} catch (Throwable t) {
System.out.println("Generic error.");
t.printStackTrace();
}
}
示例3: main
import gov.nih.nci.caarray.services.CaArrayServer; //导入方法依赖的package包/类
public static void main(String[] args) {
ApiLoginAndSearch client = new ApiLoginAndSearch();
try {
CaArrayServer server = new CaArrayServer(BaseProperties.getServerHostname(), BaseProperties
.getServerJndiPort());
CaArraySearchService searchService = null;
System.out.println("Searching for " + ORGANISM_NAME + " experiments run on the " + PROVIDER_NAME
+ " platform.");
System.out.println("Searching as an anonymous user...");
server.connect();
searchService = server.getSearchService();
client.searchExperiments(searchService, PROVIDER_NAME, ORGANISM_NAME);
System.out.println("Searching as credentialled user " + USER_NAME + "...");
server.connect(USER_NAME, PASSWD);
searchService = server.getSearchService();
client.searchExperiments(searchService, PROVIDER_NAME, ORGANISM_NAME);
} catch (ServerConnectionException e) {
System.out.println("Could not connect to server.");
e.printStackTrace();
} catch (Throwable t) {
System.out.println("Generic error.");
t.printStackTrace();
}
}
示例4: 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();
}
}
示例5: main
import gov.nih.nci.caarray.services.CaArrayServer; //导入方法依赖的package包/类
public static void main(String[] args) {
ApiOneFileDataSetDownload client = new ApiOneFileDataSetDownload();
try {
CaArrayServer server = new CaArrayServer(BaseProperties.getServerHostname(), BaseProperties
.getServerJndiPort());
server.connect();
CaArraySearchService searchService = server.getSearchService();
System.out.println("Downloading a data set corresponding to one data file from Experiment "
+ EXPERIMENT_NAME);
client.getDataSetFromExperiment(searchService, EXPERIMENT_NAME);
} catch (ServerConnectionException e) {
System.out.println("Could not connect to server.");
e.printStackTrace();
} catch (Throwable t) {
System.out.println("Generic error.");
t.printStackTrace();
}
}
示例6: main
import gov.nih.nci.caarray.services.CaArrayServer; //导入方法依赖的package包/类
public static void main(String[] args) {
ApiFileDownload client = new ApiFileDownload();
try {
CaArrayServer server = new CaArrayServer(BaseProperties.getServerHostname(), BaseProperties
.getServerJndiPort());
server.connect();
CaArraySearchService searchService = server.getSearchService();
FileRetrievalService fileRetrievalService = server.getFileRetrievalService();
System.out.println("Downloading File Contents from Experiment: " + EXPERIMENT_NAME);
client.downloadFileFromExperiment(searchService, fileRetrievalService, EXPERIMENT_NAME);
} catch (ServerConnectionException e) {
System.out.println("Could not connect to server.");
e.printStackTrace();
} catch (Throwable t) {
System.out.println("Generic error.");
t.printStackTrace();
}
}
示例7: 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();
}
示例8: connectWithLogin
import gov.nih.nci.caarray.services.CaArrayServer; //导入方法依赖的package包/类
private void connectWithLogin() throws ServerConnectionException, FailedLoginException
{
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("caarrayuser","Pass#1234");
loginSearchService = server.getSearchService();
}